This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Correct __GNUC_PREREQ for __const__ and __noreturn__ attributes.


On Mon, 20 Mar 2017, Carlos O'Donell wrote:

> On 03/20/2017 01:52 PM, Kang-Che Sung wrote:
> > Although GCC 2.5 introduced 'const' and 'noreturn' function
> > attributes, the '__const__' and '__noreturn__' were not available
> > until 2.6.2. So check __GNU_PREREQ(2,7) for these.
> > 
> > Note: I'm here only to correct an inaccurate info. Because I guess
> > very few people would use such an old compiler now, I'm not bothered to
> > test, nor add support for __attribute__((const)) just for it's sake.
> 
> Kang-Che,
> 
> So you did not test this change with a gcc-2.5 compiler?

It's not plausible to use glibc 2 with any compiler older than GCC 2.7 
(glibc 2 support was only added for GNU/Linux in some 2.7.2.x point 
release, ELF support for GNU/Linux was only added in 2.7, and I don't 
think ELF support for Hurd was present earlier either).

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]