patchGNU Autoconf Archive - Patches: patch #10317, ax_cc_tentdef.m4

 
 

patch #10317: ax_cc_tentdef.m4

Submitter:  David Stes <stes>
Submitted:  Sat 04 Mar 2023 09:38:27 AM UTC
   
 
Priority:  5 - Normal Status:  None
Assigned to:  None Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 02 Apr 2023 01:44:52 PM UTC, comment #1: 

Any news please about this submission ? If required, please point me to some other location (like github.com) if submissions/patches should be submitted on github instead of savannah.gnu.org, please ...  Thanks, David Stes

David Stes <stes>
Sat 04 Mar 2023 09:38:27 AM UTC, original submission:  


Hello,

I'm submitting an old test that I wrote back in 1996 for configure tests to see whether the C compiler supports "tentative definitions".

This topic is again relevant because gcc (the C compiler) switched model as discussed in
  https://gcc.gnu.org/gcc-10/porting_to.html

The configure script can test with

SYNOPSIS
   AX_CC_TENTDEF

DESCRIPTION

Determine whether the C compiler supports C tentative defintions.
See K&R book Appendix A10.2 on extern and tentative definitions.

A second test checks whether the $CC compiler understands _attribute_ ((_common_)).

In both cases the configure script can take action depending on the tests and results (outcome of the tests) to change the Makefile accordingly, which involves both changes to the C code and to the Makefile on how object files are being compiled and linked.

Regards,
David Stes

David Stes <stes>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #54436:  ax_cc_tentdef.m4 added by stes (3KiB - application/x-m4)
file #54437:  ax_cc_attrcommon.m4 added by stes (2KiB - application/x-m4)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by stes (Submitted the item)
  •  

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-03-04 stes Attached File- Added ax_cc_tentdef.m4, #54436
        Attached File- Added ax_cc_attrcommon.m4, #54437

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code