This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: exception handling (egsc-1.0.3, linux)
- To: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Subject: Re: exception handling (egsc-1.0.3, linux)
- From: Thomas Binder <binder at iue dot tuwien dot ac dot at>
- Date: Fri, 28 Aug 1998 13:23:14 +0200
- CC: egcs-bugs at cygnus dot com, troger at iue dot tuwien dot ac dot at
- Organization: Institute for Microelectronics, Technical University Vienna
- References: <35E40E6C.4DC7A4D8@iue.tuwien.ac.at> <org1eiqdoy.fsf@iguacu.dcc.unicamp.br>
Alexandre Oliva wrote:
>
> I can't reproduce your problem with egcs 1.0.3 on RedHat Linux
> 5.1/alpha nor RedHat Linux 5.0/x86. Are you sure g++ is really egcs
I actually have a RedHat 4.2 system (kernel 2.0.32).
> 1.0.3? Isn't it linking your program with some other version of
> libstdc++ or libgcc? What does the command below print?
>
> g++ -v -Wl,-v bug.cc -o bug
>
Here's the output of the compiler command:
binder@in10:~$ eg++ -v -Wl,-v bug.cc -o bug
Reading specs from
/usr/local/egcs-1.0.3a/lib/gcc-lib/i686-pc-linux-gnulibc1/egcs-2.90.29/specs
gcc version egcs-2.90.29 980515 (egcs-1.0.3 release)
/usr/local/egcs-1.0.3a/lib/gcc-lib/i686-pc-linux-gnulibc1/egcs-2.90.29/cpp
-lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=90
-Di386 -D__ELF__ -Dunix -Dlinux -D__i386__ -D__ELF__ -D__unix__ -D__linux__
-D__i386 -D__unix -D__linux -Asystem(posix) -D__EXCEPTIONS -Di386 -Di686
-Asystem(unix) -Acpu(i386) -Amachine(i386) -D__i386__ -D__i686__ -Asystem(unix)
-Acpu(i386) -Amachine(i386) bug.cc /tmp/cca11717.ii
GNU CPP version egcs-2.90.29 980515 (egcs-1.0.3 release) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
/usr/local/egcs-1.0.3a/include/g++
/usr/local/include
/usr/local/egcs-1.0.3a/i686-pc-linux-gnulibc1/include
/usr/local/egcs-1.0.3a/lib/gcc-lib/i686-pc-linux-gnulibc1/egcs-2.90.29/include
/usr/include
End of search list.
/usr/local/egcs-1.0.3a/lib/gcc-lib/i686-pc-linux-gnulibc1/egcs-2.90.29/cc1plus
/tmp/cca11717.ii -quiet -dumpbase bug.cc -version -o /tmp/cca11717.s
GNU C++ version egcs-2.90.29 980515 (egcs-1.0.3 release)
(i686-pc-linux-gnulibc1) compiled by GNU C version egcs-2.90.29 980515
(egcs-1.0.3 release).
as -V -Qy -o /tmp/cca117171.o /tmp/cca11717.s
GNU assembler version 970202 (i586-pc-linux-gnu), using BFD version 2.7.0.9
/usr/local/egcs-1.0.3a/lib/gcc-lib/i686-pc-linux-gnulibc1/egcs-2.90.29/ld -m
elf_i386 -dynamic-linker /lib/ld-linux.so.1 -o bug /usr/lib/crt1.o
/usr/lib/crti.o
/usr/local/egcs-1.0.3a/lib/gcc-lib/i686-pc-linux-gnulibc1/egcs-2.90.29/crtbegin.o
-L/usr/local/egcs-1.0.3a/lib/gcc-lib/i686-pc-linux-gnulibc1/egcs-2.90.29
-L/usr/local/egcs-1.0.3a/i686-pc-linux-gnulibc1/lib -L/usr/local/egcs-1.0.3a/lib
-v /tmp/cca117171.o -lstdc++ -lm -lgcc -lc -lgcc
/usr/local/egcs-1.0.3a/lib/gcc-lib/i686-pc-linux-gnulibc1/egcs-2.90.29/crtend.o
/usr/lib/crtn.o
collect2 version egcs-2.90.29 980515 (egcs-1.0.3 release) (i386 Linux/ELF)
/usr/bin/ld -m elf_i386 -dynamic-linker /lib/ld-linux.so.1 -o bug
/usr/lib/crt1.o /usr/lib/crti.o
/usr/local/egcs-1.0.3a/lib/gcc-lib/i686-pc-linux-gnulibc1/egcs-2.90.29/crtbegin.o
-L/usr/local/egcs-1.0.3a/lib/gcc-lib/i686-pc-linux-gnulibc1/egcs-2.90.29
-L/usr/local/egcs-1.0.3a/i686-pc-linux-gnulibc1/lib -L/usr/local/egcs-1.0.3a/lib
-v /tmp/cca117171.o -lstdc++ -lm -lgcc -lc -lgcc
/usr/local/egcs-1.0.3a/lib/gcc-lib/i686-pc-linux-gnulibc1/egcs-2.90.29/crtend.o
/usr/lib/crtn.o
GNU ld version cygnus-2.7.1 (with BFD 2.7.0.9)
When the program is started you get the following ouput:
binder@in10:~$ ./bug
Caught ERR
IOT trap/Abort
regards,
Tom
--
\\\|///
\\ ~ ~ //
( @ @ )
/------------------------oOOo-(_)-oOOo-----------------------------------------\
| Thomas Binder | |
| Institute for Microelectronics|phone: ++43/1/58801-5239 (till Sept.6,1998) |
| Technical University Vienna | ++43/1/58801-36036 (after Sept.6,1998)|
| Gusshausstrasse 27-29 / E360 |fax : ++43/1/5059224 (till Sept.6,1998) |
| A-1040 Vienna | ++43/1/58801-36099 (after Sept.6,1998)|
| A U S T R I A |email: binder@iue.tuwien.ac.at |
\---------------------------------Oooo.----------------------------------------/
.oooO ( )
( ) ) /
\ ( (_/
\_)