🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #1943

Bug in gcc 1.30, sun 3

#1943
From: Paul
Date: Tue, 15 Nov 1988 13:07
40 lines
1049 bytes
/*
    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
*/
Technical Details
Message-ID: <8811151307.AA07169@marvin.moncam.uucp>
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!mcdchg!rutgers!tut.cis.ohio-state.edu!"Paul

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!mcdchg!rutgers!tut.cis.ohio-state.edu!"Paul
From: "Paul@tut.cis.ohio-state.edu
Newsgroups: gnu.gcc.bug
Subject: Bug in gcc 1.30, sun 3
Message-ID: <8811151307.AA07169@marvin.moncam.uucp>
Date: 15 Nov 88 13:07:33 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 40