"Paul@tut.cis.ohio-state.edu (11/15/88)
/*
GNU C version 1.30 (68k, MIT syntax) compiled by GNU C version 1.30.
gcc v1.30 generates the wrong stack offsets when compiling the following
program with the command...
gcc -v -O -S -fomit-frame-pointer -fno-defer-pop bug.c
*/
void main(argc, argv)
int argc;
char **argv;
{
foo( &argc, &argv );
printf("argc=%d\n",argc);
bar(argc, argv );
}
/*
#NO_APP
.text
LC0:
.ascii "argc=%d\12\0"
.even
.globl _main
_main:
pea sp@(8)
pea sp@(8)
jbsr _foo
addqw #8,sp
movel sp@(4),sp@-
pea LC0
jbsr _printf
addqw #8,sp
movel sp@(8),sp@-
movel sp@(4),sp@- *** Think should be: movel sp@(8),sp@- ***
jbsr _bar
addqw #8,sp
rts
*/