Irix 6.2 <> 6.3 math.h vs. stdlib.h initstate() prototype mismatch
Matthias Hopf
hopf@immd9.informatik.uni-erlangen.de
Fri May 14 09:40:00 GMT 1999
Hi!
I would like to report a bug about egcs 1.1.2 math.h.
We are using several Machines with IRIX 6.2 and up. Of course, we
compiled egcs on the lowest common system 6.2.
Unfortunately, SGI changed the prototype of initstate() in stdlib.h
from version 6.2 to 6.3 (int -> size_t). The prototype is repeated
in egcs' math.h, thus the compiler complains on 6.3 machines about
mismatching prototypes (for g++, this is fatal). When compiling egcs
on 6.3 machines, this is just vice versa.
The sollution is to include math.h in the very begining of the file
and to comment / remove the initstate() prototype.
A patch is attached, which does exactly this thing. Of course, it cannot
be applied to the source repository, but has to be hand-crofted into the
sources. I don't know enough about gcc sources, sorry. So this patch
is only included for assistance.
For questions, please mail me directly, as I am not subscribed to this
list...
CU and thanks for all the work
Matthias
--
IMMD | Matthias Hopf - Computer Graphics Group, FAU Erlangen/Nuernberg
IX | IMMD IX, Am Weichselgarten 9, 91058 Erlangen, Germany
| Phone 85-29922 Fax 85-29931 EMail hopf@immd9.cs.fau.de
GDV | http://www9.informatik.uni-erlangen.de/Persons/Hopf/
More information about the Gcc-bugs
mailing list