c/4317: main() {return 0;} does not compile correctly

Steffen Ryll s.ryll@web.de
Mon Oct 1 09:01:00 GMT 2001


> Synopsis: main() {return 0;} does not compile correctly

> State-Changed-From-To: open->feedback
> State-Changed-By: aoliva
> State-Changed-When: Fri Sep 28 20:52:46 2001
> State-Changed-Why:
>     What is the assembly code you get when you compile this program (gcc -S ...)?  The one I get looks quite reasonable.

> http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=4317&database=gcc

Now I attach the assembly code (produced by 'gcc --save-temps ...') as
well. But unfortunately I've got no idea as far as assembler is
concerned, so I don't know whether it is reasonable or not :-(

However, I conclude that you suspect my 'GNU as' to produce wrong
output. Well, I don't know; I can just tell you that I'm using
binutils 2.11.

Bye,

Steffen
conftest.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: conftest.s
Type: text/x-asm
Size: 244 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20011001/bf30e20b/attachment.bin>


More information about the Gcc-bugs mailing list