[patch #10317] ax_cc_tentdef.m4

David Stes <[email protected]> Sat, 4 Mar 2023 04:38:29 -0500 (EST)
Newsgroups gmane.comp.sysutils.autoconf.archive-maintainers
Message-ID <[email protected]>
URL:
  <https://savannah.gnu.org/patch/?10317>

                 Summary: ax_cc_tentdef.m4
                   Group: GNU Autoconf Archive
               Submitter: stes
               Submitted: Sat 04 Mar 2023 09:38:27 AM UTC
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Sat 04 Mar 2023 09:38:27 AM UTC By: David Stes <stes>

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







    _______________________________________________________
File Attachments:


-------------------------------------------------------
Date: Sat 04 Mar 2023 09:38:27 AM UTC  Name: ax_cc_tentdef.m4  Size: 3KiB  
By: stes

<http://savannah.gnu.org/patch/download.php?file_id=54436>
-------------------------------------------------------
Date: Sat 04 Mar 2023 09:38:27 AM UTC  Name: ax_cc_attrcommon.m4  Size: 2KiB  
By: stes

<http://savannah.gnu.org/patch/download.php?file_id=54437>

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/patch/?10317>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/