This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: fixinc regression for <math.h> with C++ on Solaris 9
Nathanael Nerode wrote:
> > I'm trying to make the stuff accessible. I am referring to
> > gcc/fixinc/tests/base/math.h:
> >
> >
> >>#ifndef FIXINC_WRAP_MATH_H_SUNOS_MATHERR_DECL
> >>#define FIXINC_WRAP_MATH_H_SUNOS_MATHERR_DECL 1
> >>
> >>struct exception; <<<<<<===== OOPS! comes from sunos_matherr_decl fix
> >>#ifndef FIXINC_WRAP_MATH_H_MATH_EXCEPTION
> >>#define FIXINC_WRAP_MATH_H_MATH_EXCEPTION 1
> >>
> >>#ifdef __cplusplus
> >>#define exception __math_exception
> >>#endif
>
> Could that be the culprit? I'd be much happier if the struct exception;
> was coming from fixincludes (in which case we have to do less
> fixincluding) than if it's coming from bogus Solaris headers (in which
> case we have to do more fixincluding).
>
> Not having Solaris, of course, I can't actually tell....
This is a nit that is most likely theoretical, but nonetheless possible.
The "sunos_matherr_decl" fix must precede the "math_exception" fix.