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

Bug#405065: gcc-4.1: gcc takes all the memory and crashes with -O2 -ftrapv



tags 29534 + upstream
forwarded 29534 http://gcc.gnu.org/PR29534
thanks

* Vincent Lefevre <vincent@vinc17.org> [2006-12-30 22:12]:
> I can reproduce the crash on this simple example:
> 
> int main (void)
> {
>   int i;
>   for (i = 31 ; i >= 0 ; i--)
>     {
>       volatile int x = 0;
>     }
>   return 0;
> }
> 
> $ gcc -O2 -ftrapv -c gcc-bug.c
> gcc-bug.c: In function 'main':
> gcc-bug.c:6: warning: unused variable 'x'
> gcc: Internal error: Segmentation fault (program cc1)

This is PR29534.
-- 
Martin Michlmayr
http://www.cyrius.com/



Reply to: