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] RISC-V: Fix elfutils testsuite unwind failures.


On Mon, 4 Feb 2019, DJ Delorie wrote:

> Joseph Myers <joseph@codesourcery.com> writes:
> >> Hmm... that's new in gcc 5, so color me surprised.  As that is glibc's
> >> minimum build version, I retract my comment.
> >
> > It's a C99 feature that I implemented for GCC 3.0.
> 
> Perhaps having it as the default is new in gcc 5 then.  GCC 4 compiles
> without that feature by default:

Yes, the default standard version changed from -std=gnu89 to -std=gnu11 in 
GCC 5.  (glibc has used explicit -std= options to build for a long time:

2002-10-05  Roland McGrath  <roland@redhat.com>

	[...]
        * Makeconfig (CFLAGS): Prepend -std=gnu99.

(with later changes to add -fgnu89-inline, and to move to -std=gnu11).)

-- 
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]