This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/40411] New: -std=c99 does not enable c99 mode in Solaris C library
- From: "heydowns at borg dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Jun 2009 22:44:10 -0000
- Subject: [Bug c/40411] New: -std=c99 does not enable c99 mode in Solaris C library
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
On Solaris, the C library does not operate in c99 compliant mode by default.
If c99 compliant operation is desired, the object file
/usr/lib/{32,64}/values-xpg6.o needs to be linked. The details are in the
Solaris standards(5) manpage.
When linking using "gcc -std=c99", gcc does not instruct the linker to include
this object file.
--
Summary: -std=c99 does not enable c99 mode in Solaris C library
Product: gcc
Version: 3.4.6
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: heydowns at borg dot com
GCC build triplet: sparc-sun-solaris2.10
GCC host triplet: sparc-sun-solaris2.10
GCC target triplet: sparc-sun-solaris2.10
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40411