This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug inline-asm/33932] miscalculation of asm labels with -g3
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Oct 2007 18:59:31 -0000
- Subject: [Bug inline-asm/33932] miscalculation of asm labels with -g3
- References: <bug-33932-11104@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pinskia at gcc dot gnu dot org 2007-10-28 18:59 -------
Your inline-asm is incorrect as you did not place the symbol in any section so
it just defaults to what ever section is currently there (which in the -g3 case
is the debugging section).
This corrects the issue:
asm (
".text\n"
"__tst:\n"
"movl $1, %eax\n"
"ret\n"
".previous\n");
Or something like that.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33932