assembler fails when compiling "throw()" routines

Peter Simons peter.simons@gmd.de
Tue May 19 12:10:00 GMT 1998


Hi,

I just tried to compile the following program,

 | int
 | main(int, char **) throw()
 | {
 |     return 0;
 | }

but I failed. Here's the snippet:

 | simons@peti:/tmp$ g++ -Wall test.cc -v
 | Reading specs from /usr/local/egcs/lib/gcc-lib/i386-unknown-netbsd1.3/egcs-2.91.29/specs
 | gcc version egcs-2.91.29 19980517 (gcc2 ss-980502 experimental)
 |  /usr/local/egcs/lib/gcc-lib/i386-unknown-netbsd1.3/egcs-2.91.29/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=91 -Dunix -Di386 -D__NetBSD__ -D__unix__ -D__i386__ -D__NetBSD__ -D__unix -D__i386 -Asystem(unix) -Asystem(NetBSD) -Acpu(i386) -Amachine(i386) -D__EXCEPTIONS -Wall test.cc /var/tmp/cc26972a.ii
 | GNU CPP version egcs-2.91.29 19980517 (gcc2 ss-980502 experimental) (80386, BSD syntax)
 | #include "..." search starts here:
 | #include <...> search starts here:
 |  /usr/local/egcs/include/g++
 |  /usr/local/include
 |  /usr/local/egcs/i386-unknown-netbsd1.3/include
 |  /usr/local/egcs/lib/gcc-lib/i386-unknown-netbsd1.3/egcs-2.91.29/include
 |  /usr/include
 | End of search list.
 |  /usr/local/egcs/lib/gcc-lib/i386-unknown-netbsd1.3/egcs-2.91.29/cc1plus /var/tmp/cc26972a.ii -quiet -dumpbase test.cc -Wall -version -o /var/tmp/cc26972a.s
 | GNU C++ version egcs-2.91.29 19980517 (gcc2 ss-980502 experimental) (i386-unknown-netbsd1.3) compiled by GNU C version egcs-2.91.29 19980517 (gcc2 ss-980502 experimental).
 |  as -o /var/tmp/cc26972a1.o /var/tmp/cc26972a.s
 | /var/tmp/cc26972a.s: Assembler messages:
 | /var/tmp/cc26972a.s:138: Error: Local symbol L3 never defined.
 | /var/tmp/cc26972a.s:138: Fatal error:1 error, 0 warnings, no object file generated.

The machine I am using egcs on is a NetBSD/i386 1.3 Unix box.

	-peter



More information about the Gcc-bugs mailing list