public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/13634] New: ICE when compiling OpenCV.
@ 2004-01-09 18:08 rosbacke at nada dot kth dot se
  2004-01-09 18:43 ` [Bug c/13634] " rosbacke at nada dot kth dot se
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: rosbacke at nada dot kth dot se @ 2004-01-09 18:08 UTC (permalink / raw)
  To: gcc-bugs

When i try to compile OpenCV I get an internal compiler error. The following testcase 
triggers an ICE when compiled with: 
 
gcc -march=i686 -ffast-math -O2 -fPIC -c gcctest2.c 
------------------------------------------------------------------------------------------------- 
double pow(double ,double ); 
 
int icvCubicV( double a2, double a1, double a0, double *squares ) 
{ 
  double p, c2, ro1; 
  double x[6][3]; 
  int i; 
   
  p = a1 - a2 * a2 / 3; 
     
  for( i = 0; i < 6; i++ ) 
    squares[i] = x[i][i % 2]; 
 
  c2 = pow( ro1 , 1. / 3 ) + ( (ro1)<0 ? -1:((ro1)>0?1:0 ) )  *  p / 3.; 
 
  if( !( (ro1) < 1e-8 )) 
    { 
      x[i][1] = c2; 
    }   
} 
------------------------------------------------------------------------------------------------- 
The code might be non-sensible since I've cut out everything except what causes the 
ICE. The original file is OpenCV-0.9.5/cv/src/cvfundam.cpp. Removing any more 
options to gcc will also finish the compilation without error. 
I have tried this on both version 3.3.2 and 3.3-20040105. I get the fault: 
 
[rosbacke@cvap83 gcctest]$ gcc -march=i686 -ffast-math -O2 -fPIC -c gcctest2.c 
gcctest2.c: In function `icvCubicV': 
gcctest2.c:22: internal compiler error: in emit_move_insn_1, at expr.c:3507 
Please submit a full bug report, 
with preprocessed source if appropriate. 
See <URL:http://gcc.gnu.org/bugs.html> for instructions. 
[rosbacke@cvap83 gcctest]$ 
 
Output from gcc -v is: 
 Reading specs 
from /afs/nada.kth.se/home/cvap/rosbacke/install/redhat90/gcc33-20040105/bin/../lib/gcc-lib/i686-pc-linux-gnu/3.3.3/specs 
Configured with: ../gcc-3.3-20040105/configure 
--prefix=/home/cvap/rosbacke/install/redhat90/gcc33-20040105 
Thread model: posix 
gcc version 3.3.3 20040105 (prerelease)

-- 
           Summary: ICE when compiling OpenCV.
           Product: gcc
           Version: 3.3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rosbacke at nada dot kth dot se
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13634


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2004-03-27 16:18 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-09 18:08 [Bug c/13634] New: ICE when compiling OpenCV rosbacke at nada dot kth dot se
2004-01-09 18:43 ` [Bug c/13634] " rosbacke at nada dot kth dot se
2004-01-09 19:07 ` [Bug c/13634] [3.3 regression] ICE in emit_move_insn_1 bangerth at dealii dot org
2004-01-10  4:16 ` [Bug target/13634] " pinskia at gcc dot gnu dot org
2004-01-10  4:17 ` pinskia at gcc dot gnu dot org
2004-01-10 17:39 ` ebotcazou at gcc dot gnu dot org
2004-01-10 18:42 ` gdr at integrable-solutions dot net
2004-01-10 19:00 ` rosbacke at nada dot kth dot se
2004-01-10 20:05 ` ebotcazou at gcc dot gnu dot org
2004-01-10 20:12 ` [Bug optimization/13634] " rosbacke at nada dot kth dot se
2004-01-21  7:37 ` ebotcazou at gcc dot gnu dot org
2004-03-11 11:16 ` ebotcazou at gcc dot gnu dot org
2004-03-27 16:18 ` cvs-commit at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).