This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Correct __GNUC_PREREQ for __const__ and __noreturn__ attributes.
- From: Paul Eggert <eggert at cs dot ucla dot edu>
- To: Kang-Che Sung <explorer09 at gmail dot com>, libc-alpha at sourceware dot org
- Date: Tue, 21 Mar 2017 18:55:13 -0700
- Subject: Re: [PATCH] Correct __GNUC_PREREQ for __const__ and __noreturn__ attributes.
- Authentication-results: sourceware.org; auth=none
- References: <20170320175239.5982-1-explorer09@gmail.com>
For what it's worth, Gnulib code uses __attribute__ ((__noreturn__)) for GCC 2.8
and later, and __attribute__ ((__const__)) for GCC 2.95 and later. I vaguely
recall problems using these attributes in earlier GCC versions, though I'm
afraid I don't remember the details. Perhaps Glibc wouldn't run into the
problems, whatever they were.