This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/41281] New: toplevel asms do not work
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Sep 2009 17:45:55 -0000
- Subject: [Bug lto/41281] New: toplevel asms do not work
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Testcase:
asm(".text\n"
".globl main\n"
"\t.type main,@function\n"
"main:\n"
"\tret\n");
$ ./xgcc -B. -o t t.c -flto
/usr/lib/crt1.o: In function `_start':
/build/buildd-eglibc_2.9-26-i386-ldMK3g/eglibc-2.9/csu/../sysdeps/i386/elf/start.S:115:
undefined reference to `main'
collect2: ld returned 1 exit status
--
Summary: toplevel asms do not work
Product: gcc
Version: lto
Status: UNCONFIRMED
Keywords: wrong-code
Severity: normal
Priority: P3
Component: lto
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rguenth at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41281