------- Comment #3 from gcc at breakpoint dot cc  2009-04-22 18:41 -------
Wasn't 

# echo 'int main(void) { return 0; }' > file.c

not enough or did you overlook that part? 

The -E output is pretty much the same, it is:

$ cat test.i 
# 1 "test.c"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "test.c"
int main(void)
{
 return 0;
}


---
The -S output (I guess you meant that) would be:

$ m68k-linux-gnu-gcc -o test.S test.c -static -pg -S && cat test.S 
#NO_APP
        .file   "test.c"
        .text
        .align  2
        .globl  main
        .type   main, @function
main:
        link.w %fp,#0
        .data
        .align  2
.LP2:
        .long   0
        .text
        lea (.LP2,%pc),%a1
        jbsr _mcount
        clr.l %d0
        unlk %fp
        rts
        .size   main, .-main
        .ident  "GCC: (Sourcery G++ Lite 4.3-43) 4.3.2"
        .section        .note.GNU-stack,"",@progbits
---- 

And my rec for the fix was to get rid of the lea before the branch to the
_mcount call. However someone might need it, I'm not sure.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36047

Reply via email to