Article View: gnu.gcc.bug
Article #799bug in gcc
From: Pascal Meheut
Date: Thu, 16 Nov 1989 13:49
Date: Thu, 16 Nov 1989 13:49
40 lines
1391 bytes
1391 bytes
I think you may be interested in the following little program.
main(argc, argv)
int argc;
char **argv;
{
for(argc--, argv++; argc; argc--, argv++) {
switch(argv[0][1]) {
case 'v':
break;
case 's':
break;
case 'f':
case 'O':
case 'g':
break;
default:
printf("ignoring option %s\n", argv[0]);
}
}
exit(0);
}
Compiled on a SUN sparc station 1, with gcc -o -O foo foo.c, and called with
'foo -s' it prints nothing which is correct.
But with gcc -O -fforce-mem -o foo foo.c, it prints "ignoring option -s"
I use gcc-1.35 and maybe the bug is fixed in gcc-1.36, but I have not enough
time to install it.
The problem do not appear with gcc-1.35 used on a SUN 3/50 or gcc-1.34.91 used
on a SUN-386.
I had found this bug in compiling X window (X11R3) on the sparc station. The
problem was with the program 'makedepend'.
I apologize for my bad english and hope you'll fix that bug quickly. (Perhaps
It's done, but I don't know what is the last version of gcc)
Pascal Meheut.
Technical Details
Message-ID:
<8911161349.AA16195@ccv.fr>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watmath!iuvax!cica!tut.cis.ohio-state.edu!ccvi.ccv.fr!pascalShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!iuvax!cica!tut.cis.ohio-state.edu!ccvi.ccv.fr!pascal From: pascal@ccvi.ccv.fr (Pascal Meheut) Newsgroups: gnu.gcc.bug Subject: bug in gcc Message-ID: <8911161349.AA16195@ccv.fr> Date: 16 Nov 89 13:49:29 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 40