1.1b generates bad assembler code on Solaris 2.5.1/86
Richard Sewards
rsewards@nettestca.gn.com
Sat Sep 19 05:47:00 GMT 1998
Hi,
It appears that egcs-1.1b occasionally generates bad assembler code on
x86 Solaris.
If you compile the attached t.cc with
gcc-egcs1.1b -c -ansi -Wall -Wconversion -Wstrict-prototypes
-Wpointer-arith -fcheck-new -O2 -gstabs+ -pipe t.cc
you will get the following errors from the assembler:
{standard input}: Assembler messages:
{standard input}:3779: Error: ignoring unrecognized symbol type ""
{standard input}:3780: Error: expected comma after name `' in .size directive
{standard input}:3786: Error: ignoring unrecognized symbol type ""
{standard input}:3787: Error: expected comma after name `' in .size directive
Strangely, the assembler doesn't complain if the -pipe is omitted, but if
you use -S and then try to assemble the .s file it fails. The offending
assembler code is:
.stabs "._294:G(0,1)",32,0,12122,0
.globl .
.align 4
.type .,@object
.sizw .,4
.:
.zero 4
.stabs "._295:G(0,1)",32,0,12123,0
.globl .
.align 4
.type .,@object
.size .,4
.:
.zero 4
where the ".globl ." above actually contains some binary characters
instead of a symbol name (it shows up in Emacs as "\214.(^H").
I built the compiler on Solaris 2.5.1/86 with gcc 2.8.1. The
output of "gcc-egcs1.1b -v" is:
Reading specs from
/usr/local.share/egcs/1.1b/H-i386-pc-solaris2.5.1/lib/gcc-lib/i386-pc-solaris2.5.1/egcs-2.91.57/specs
gcc version egcs-2.91.57 19980901 (egcs-1.1 release)
and I am using the GNU assembler 2.9.1.
Thanks,
----------------------------------------------------------------
Richard Sewards richard.sewards@nettestca.gn.com
GN Nettest (Datacom Division) (905) 479-8090, fax:(905) 475-6524
55 Renfrew Drive,
Markham, ON, CANADA, L3R 8H3 =* 121245
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.cc.gz
Type: application/x-gzip
Size: 31990 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/19980919/87cbbefd/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.s.gz
Type: application/x-gzip
Size: 37630 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/19980919/87cbbefd/attachment-0001.bin>
More information about the Gcc-bugs
mailing list