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: Joseph Myers <joseph at codesourcery dot com>
- To: Carlos O'Donell <carlos at redhat dot com>
- Cc: Kang-Che Sung <explorer09 at gmail dot com>, <libc-alpha at sourceware dot org>, Jakub Jelinek <jakub at redhat dot com>, Marek Polacek <mpolacek at redhat dot com>
- Date: Mon, 20 Mar 2017 18:19:19 +0000
- Subject: Re: [PATCH] Correct __GNUC_PREREQ for __const__ and __noreturn__ attributes.
- Authentication-results: sourceware.org; auth=none
- References: <20170320175239.5982-1-explorer09@gmail.com> <43b02c96-57b4-bfd4-57a5-d072fdb61cb1@redhat.com>
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