This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
EH does not work with 1.0.2 on IRIX
- To: egcs at cygnus dot com
- Subject: EH does not work with 1.0.2 on IRIX
- From: Frank Patz <fp at contact dot de>
- Date: Thu, 09 Apr 1998 12:30:36 +0200
- Organization: CONTACT Software GmbH
Hi!
I just downloaded egcs 1.0.2 and compiled & installed on an IRIX 5.3
box.
I thought exception handling works with egcs, but all I got (even in the
simplest cases) when I try to throw is an abort. Did I miss
something?
------ exc.cc ------
#include <stdio.h>
int
main()
{
try {
printf("try block\n");
int i = 2;
throw i; // program aborts here
} catch (int x) {
printf("caught %d\n", x);
}
return 0;
}
Running the program gives me:
frank@lulu$ ./exc
try block
Abort (core dumped)
This is the output from "c++ -v ...":
frank@lulu$ c++ -v exc.cc -o exc
Reading specs from
/devel/frank/egcs-1.0.2/mips-sgi-irix5.3/INST/lib/gcc-lib/mips-sgi-irix5.3/egcs-2.90.27/specs
gcc version egcs-2.90.27 980315 (egcs-1.0.2 release)
/devel/frank/egcs-1.0.2/mips-sgi-irix5.3/INST/lib/gcc-lib/mips-sgi-irix5.3/egcs-2.90.27/cpp
-lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus
-D__GNUC_MINOR__=90 -Dunix -Dmips -Dsgi -Dhost_mips -DMIPSEB -D_MIPSEB
-DSYSTYPE_SVR4 -D_SVR4_SOURCE -D_MODERN_C -D__DSO__
-D_MIPS_SIM=_MIPS_SIM_ABI32 -D_MIPS_SZPTR=32 -D__unix__ -D__mips__
-D__sgi__ -D__host_mips__ -D__MIPSEB__ -D_MIPSEB -D__SYSTYPE_SVR4__
-D_SVR4_SOURCE -D_MODERN_C -D__DSO__ -D_MIPS_SIM=_MIPS_SIM_ABI32
-D_MIPS_SZPTR=32 -D__unix -D__mips -D__sgi -D__host_mips -D__MIPSEB
-D__SYSTYPE_SVR4 -Asystem(unix) -Asystem(svr4) -Acpu(mips)
-Amachine(sgi) -D__EXCEPTIONS -D__CHAR_UNSIGNED__
-D__LANGUAGE_C_PLUS_PLUS -D_LANGUAGE_C_PLUS_PLUS
-D__SIZE_TYPE__=unsigned int -D__PTRDIFF_TYPE__=int -D__EXTENSIONS__
-D_SGI_SOURCE -D_LONGLONG -D_MIPS_FPSET=16 -D_MIPS_ISA=_MIPS_ISA_MIPS1
-D_MIPS_SZINT=32 -D_MIPS_SZLONG=32 exc.cc /var/tmp/cca005t4.ii
GNU CPP version egcs-2.90.27 980315 (egcs-1.0.2 release) [AL 1.1, MM 40]
SGI running IRIX 5.x
#include "..." search starts here:
#include <...> search starts here:
/devel/frank/egcs-1.0.2/mips-sgi-irix5.3/INST/local-gxxinclude
/devel/frank/egcs-1.0.2/mips-sgi-irix5.3/INST/local-include/include
/devel/frank/egcs-1.0.2/mips-sgi-irix5.3/INST/mips-sgi-irix5.3/include
/devel/frank/egcs-1.0.2/mips-sgi-irix5.3/INST/lib/gcc-lib/mips-sgi-irix5.3/egcs-2.90.27/include
/usr/include
End of search list.
/devel/frank/egcs-1.0.2/mips-sgi-irix5.3/INST/lib/gcc-lib/mips-sgi-irix5.3/egcs-2.90.27/cc1plus
/var/tmp/cca005t4.ii -quiet -dumpbase exc.cc -version -o
/var/tmp/cca005t4.s
GNU C++ version egcs-2.90.27 980315 (egcs-1.0.2 release)
(mips-sgi-irix5.3) compiled by GNU C version egcs-2.90.27 980315
(egcs-1.0.2 release).
as -v -o /var/tmp/cca005t41.o /var/tmp/cca005t4.s
GNU assembler version 2.5.2 (mips-sgi-irix5), using BFD version 2.5
/devel/frank/egcs-1.0.2/mips-sgi-irix5.3/INST/lib/gcc-lib/mips-sgi-irix5.3/egcs-2.90.27/ld
-call_shared -no_unresolved -_SYSTYPE_SVR4 -o exc /usr/lib/crt1.o
-L/devel/frank/egcs-1.0.2/mips-sgi-irix5.3/INST/lib/gcc-lib/mips-sgi-irix5.3/egcs-2.90.27
-L/devel/frank/egcs-1.0.2/mips-sgi-irix5.3/INST/mips-sgi-irix5.3/lib
-L/devel/frank/egcs-1.0.2/mips-sgi-irix5.3/INST/lib /var/tmp/cca005t41.o
-lstdc++ -lm -lgcc -lc -lgcc /usr/lib/crtn.o
--
Frank Patz
CONTACT Software GmbH email: fp@contact.de
Wiener Str. 1-3 phone: +49 421 20153 18
D-28359 Bremen fax: +49 421 20153 41