egcs-980221, sunos4 bootstrap failure + patch

Philippe De Muyter phdm@macqel.be
Tue Feb 24 20:44:00 GMT 1998


> 	I had some trouble bootstrapping egcs-980221 on
> sparc-sun-sunos4.1.3 because that platform contains a non-conforming
> prototype of `free' in stdlib.h, and many new files are now including
> stdlib.h whereas previously they did not. 
> 
> 	The following patch adds NEED_DECLARATION_FREE macros to protect
> from this whereever I found it necessary for the bootstrap to succeed. 

Would it not be better to always include your "system.h" instead of
<stdlib.h> + all the #ifdef NEED_DECLARATION_xxx stuff ?

Philippe De Muyter



More information about the Gcc mailing list