------- 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