This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: optimization/5706: Internal error and SEGFAULT for "-O2 -funroll-all-loops"


The following reply was made to PR optimization/5706; it has been noted by GNATS.

From: Reichelt <reichelt@igpm.rwth-aachen.de>
To: gcc-gnats@gcc.gnu.org, valtri@atlas.cz, nobody@gcc.gnu.org,
        rodrigc@gcc.gnu.org
Cc:  
Subject: Re: optimization/5706: Internal error and SEGFAULT for "-O2 -funroll-all-loops"
Date: Mon, 18 Feb 2002 10:47:05 +0100

 Hi,
 
 I was able to reconstruct the attachment to the bug report and reduce it
 quite a bit. The problem boils down to the following lines of code:
 
 ---------------------snip here-------------------------
 int i;
 
 void foo(void)
 {
     while (i) __extension__ ({ if (0) ; else i--; });
 }
 ---------------------snip here-------------------------
 
 Compiled with "gcc -c -O2 -funroll-all-loops" using gcc 3.0.x on an
 i686-pc-linux-gnu the code snipped causes an ICE:
 
 bug.c: In function `foo':
 bug.c:6: Internal error: Segmentation fault
 Please submit a full bug report, [etc.]
 
 The bug does not seem to affect gcc 3.1, however.
 
 Greetings,
 Volker Reichelt
 
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]