Probable Bug
David N. Williams
David.N.Williams@umich.edu
Thu Apr 20 14:00:00 GMT 2000
I'm using egcs 2.91.66 on a PowerMac G3 under YellowDog Linux
Champion Server 1.1.
Here's the complete source in the file bug.c:
register int TOS asm("r26");
void threehundthou(){
TOS = 300000;
}
Here's the result of compiling:
[hatforth]$ gcc --version
egcs 2.91.66
[hatforth]$ gcc -O2 -c bug.c
gcc: Internal compiler error: program cc1 got fatal signal 11
[hatforth]$ gcc -O1 -c bug.c
[hatforth]$
The problem occurs at -O2 and -03, and not at -O1.
Using a number in the signed, 16-bit range instead of 300,000 causes
no problem at any -O, and the .s output with -S is then correct.
Is this a bug?
--David
_ _________________________________________________________________
(_\(__
_|__) David N. Williams Phone: 1-(734)-764-5236
__|___ University of Michigan Fax: 1-(734)-763-2213
\ |:-) Physics Department Email: David.N.Williams@umich.edu
\| Ann Arbor, MI 48109-1120 Office: 3421 Randall Laboratory
More information about the Gcc-bugs
mailing list