public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/11882] New: Should headers default to strict ISO C99?
@ 2010-08-04 18:15 carlos at codesourcery dot com
2010-08-04 18:17 ` [Bug libc/11882] " drepper at redhat dot com
2010-08-04 18:26 ` carlos at codesourcery dot com
0 siblings, 2 replies; 4+ messages in thread
From: carlos at codesourcery dot com @ 2010-08-04 18:15 UTC (permalink / raw)
To: glibc-bugs
The following commit:
http://sourceware.org/git/?p=glibc.git;a=commit;h=3e6b0a28ebc2319262b318790019558f78249c8b
updates the include/features.h headers to default _POSIX_C_SOURCE to 200809L,
this in turn defines __USE_ISOC99 to 1, and this causes the headers to trigger
strict ISO C99 mode which redirects sscanf to __isoc99_sscanf.
Applications that were previously using the sscanf format specifier '%a' (a GNU
extension) stop working. Using -std=gnu89, -std=gnu99 does not allow you to get
back the previous behaviour. Using -std=c89 or -D_GNU_SOURCE restores the
previous behaviour of supporting '%a' (now '%m' in POSIX).
The compiler is still defaulting to -std=gnu89.
Is it glibc's intent to default to strict ISO C99 mode?
--
Summary: Should headers default to strict ISO C99?
Product: glibc
Version: 2.12
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: carlos at codesourcery dot com
CC: glibc-bugs at sources dot redhat dot com
GCC build triplet: arm-none-linux-gnueabi
GCC host triplet: arm-none-linux-gnueabi
GCC target triplet: arm-none-linux-gnueabi
http://sourceware.org/bugzilla/show_bug.cgi?id=11882
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <bug-11882-131@http.sourceware.org/bugzilla/>]
end of thread, other threads:[~2014-06-30 17:24 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-04 18:15 [Bug libc/11882] New: Should headers default to strict ISO C99? carlos at codesourcery dot com
2010-08-04 18:17 ` [Bug libc/11882] " drepper at redhat dot com
2010-08-04 18:26 ` carlos at codesourcery dot com
[not found] <bug-11882-131@http.sourceware.org/bugzilla/>
2014-06-30 17:24 ` fweimer at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).