[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#151675: gcc: infinite loop with -O on arm



reassign 151675 gcc-2.95
tags 151675 + fixed
retitle 151675 [fixed in gcc-3.x] gcc: infinite loop with -O on arm 
thanks

Gerrit Pape writes:
> Package: gcc
> Severity: normal
> 
> Hello,
> 
> compiling tryulong32.c on arm with gcc-2.95.2-13.1 and the -O option seems
> to cause an infinite loop in cc1, it compiles fine without -O, it also
> compiles fine on other architectures:
> 
> pape@debussy:~/bglibs-1.001$ gcc -W -Wall -o tryulong32.o -c tryulong32.c 
> tryulong32.c:2: warning: return type of `main' is not `int'
> pape@debussy:~/bglibs-1.001$ 
> 
> pape@debussy:~/bglibs-1.001$ gcc -W -Wall -O -o tryulong32.o -c tryulong32.c &
> tryulong32.c:2: warning: return type of `main' is not `int'
> [...wait...]
> pape@debussy:~/bglibs-1.001$ ps
>   PID TTY          TIME CMD
> 31587 pts/1    00:00:00 bash
> 31835 pts/1    00:00:00 gcc
> 31837 pts/1    00:29:40 cc1
> 31874 pts/1    00:00:00 ps
> pape@debussy:~/bglibs-1.001$ 
> 
> This also seems to be an issue with gcc-2.95.4, please see this build log:
> http://buildd.debian.org/fetch.php?&pkg=bglibs&ver=1.001-1&arch=arm&stamp=1025238522&file=log&as=raw
> 
> tryulong32.c
> ---
> void main()
> {
>   unsigned long u;
>   u = 1;
>   u += u; u += u; u += u; u += u; u += u; u += u; u += u; u += u;
>   u += u; u += u; u += u; u += u; u += u; u += u; u += u; u += u;
>   u += u; u += u; u += u; u += u; u += u; u += u; u += u; u += u;
>   u += u; u += u; u += u; u += u; u += u; u += u; u += u; u += u;
>   if (!u) _exit(0);
>   _exit(1);
> }
> ---
> 
> Regards, Gerrit.
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-gcc-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


-- 
To UNSUBSCRIBE, email to debian-gcc-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: