This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug libstdc++/1773] __cplusplus defined to 1, should be 199711L


------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-01-07 18:59 -------
I think that there's a relatively simple solution to this problem: have the C++
front end define __cplusplus to 1, by default, but allow a target configuration
to override that value.  That would allow the systems where it works to definine
it to 199711L to work.  On other systems, leave it set to 1.  Heck, I'll
preapprove a patch to do that.

Yes, it would be nice to take a more elegant approach with Solaris 8.  If that
is really the only system where that is a problem, and someone has a pointer to
a description showing what goes wrong there, complete with a test case for me to
play with, we can look at doing something smarter.  But, I'm not sure I see the
point in investing a lot of effort to fix something for an already somewhat old
version of the OS.

Benjamin raises other issues, such as definining _USE_GNU, and those are valid,
but orthogonal.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1773


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]