The error-producing command line is

g++ -Wall -O3 -march=native -c videospeed.cc

videospeed.cc: In function 'int main(int, char**)':
videospeed.cc:275: internal compiler error: in expand_simple_binop, at
optabs.c:1158


Adding -save-temps gives a new warning "SSE instruction set disabled, using 387
arithmetics", and the compile succeeds. Also, changing to -march=i386 or
-march=i686 avoids the problem.

I will attach the g++ -E output, which does trigger the error.


-- 
           Summary: internal compiler error
           Product: gcc
           Version: 4.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ebuddington at wesleyan dot edu
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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

Reply via email to