This is the mail archive of the gcc@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]

Re: fixinc regression for <math.h> with C++ on Solaris 9


Gerald Pfeifer wrote:
On Mon, 19 Jan 2004, Bruce Korb wrote:

Hmmm.  Odd, that.  The Sol 8 and 9 headers claim to be C++ aware
(they use "__cplusplus"), yet they contain:

struct exception { ...

outside of the protection against C++.  We need to back out that change
and determine which headers (besides glibc) have the unprotected usage
of struct exception.


Yes, I double checked, and it seems you are right.

Nathanael, can you please fix this regression by reverting your change?
Ugh -- I'm not up to date on CVS and my internet connectivity is flaky (new cable modem on Wednesday) so I hope somebody else could do so instead. This has to be done on both the 3.4 branch and mainline of course.

When you revert my change, please add a comment to the math_exception hack regarding the problem:

/* This should be bypassed on __cplusplus, but some supposedly C++
 * C++ aware headers, such as Solaris 8 and 9, don't wrap their struct
 * exception either.  So currently we bypass only for glibc, based on
 * a comment in the fixed glibc header.  Ick. */


(Or will you be able to have CVS access, Bruce? If you have a patch, I can easily apply that for you, by the way, if that's more convenient.)

Thanks,
Gerald


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