egcs mips patch

Gavin Romig-Koch gavin@cygnus.com
Wed Sep 9 09:36:00 GMT 1998


Martin,

It is possible that the -mips1/-mips2 options don't work in the
Irix ports (I haven't checked), and that an error check and message
should be added for that case.  Either way, my patch is independent
of that case (except that it might make an existing problem more
obvious).

-mips1 and -mips2 both cause -mgp32 to be set in the specs for cc1.
mgp32 in turn causes longs to be 32 bits.  If longs are going
to be 32 bits, __LONG_MAX__ needs to remain undefined so that
the limits.h can set it correctly.

The patch fixes a problem that needs fixing one way or another.
If the patch breaks something, I need to know what exactly it
breaks.

                                       -gavin...



More information about the Gcc-patches mailing list