------- Comment #9 from joseph at codesourcery dot com 2009-07-04 11:49 ------- Subject: Re: -std=c99 does not enable c99 mode in Solaris C library
On Sat, 4 Jul 2009, ebotcazou at gcc dot gnu dot org wrote: > > I wasn't sure exactly how to handle the various -std=gnu* modes, so I left > > those as they were. > > Joseph, any recommendations about that? I don't know what the exact effects of linking in these various objects are; whether they select between C90 and C99 behavior where those standards specify conflicting semantics for the same function, or disable Solaris extensions that conflict with the standards, or something else. If it's only selecting between the standards where they conflict, then gnu99/gnu9x should select C99, but gnu99/gnu9x should not generally disable extensions. C++ options for C++0x / GNU-extended C++0x (-std=c++0x, -std=gnu++0x) should probably be treated like those for c99/gnu99, since C++0x uses the C99 library (whereas C++98/C++03 uses the C90+AMD1 library). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40411