May be bug ? Please help me !

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Sun Dec 26 14:31:00 GMT 1999


>   I find that gcc-2.95.2 don't handle "throw ..." and "try { ... }
> catch" correctly at all  on i386 solaris2.7, but I am using sun's
> assembler (/usr/ccs/bin/as or /opt/SUNWspro/SC4.2/bin/as), not be GNU as
> !

Thanks for your bug report. It might be good if you make a gcc bug
report about this problem; I don't know whether it is known so far.
Please see

http://egcs.cygnus.com/faq.html#bugreport

on information how to write bugreports.

> If I rebuild gcc-2.95.2 using sun's assembler and "--with-gnu-as", all
> are ok, but the "new" gcc always pass "-s" option to gas ? Maybe gcc and
> gas can not work together on i386 solaris 2.7 at all ?

I can't reproduce it, since I don't have i386 solaris 2.7. From just
looking at the sources, I think it "ought to" work. In the compilation
directory/gcc, please look at the file tm.h. It should include
"i386/sol2gas.h", before including "i386/sol2.h". sol2gas.h should
define GAS_REJECTS_MINUS_S, and that, in turn, should result in -s not
being passed to the assembler. Please verify that all these files are
set-up correctly. 

If they are, please try to find out where the "-s" option comes
from. In particular, search the "xgcc" binary using "strings -a
xgcc|grep Qy". Please try to rebuilt from scratch, in case old object
files have been left over.

Regards,
Martin



More information about the Gcc-bugs mailing list