Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 17215 - gcc Internal compiler error in final_scan_insn (only with optimization turned on)
Summary: gcc Internal compiler error in final_scan_insn (only with optimization turned...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PPC Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-10 08:04 UTC by M. Krzewicki
Modified: 2006-02-04 06:03 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description M. Krzewicki 2003-03-10 08:04:44 UTC
when trying to compile the CWP/SU package from 
http://www.cwp.mines.edu/cwpcodes/ with gcc-3.2.1-r6 i get this error on compiling 
susort.c: 
 
cc -I/home/SU/include -mcpu=750 -O3 -fomit-frame-pointer -fprefetch-loop-arrays 
-D_POSIX_SOURCE  -DCWP_BIG_ENDIAN  susort.c -llapack -lf77blas -lcblas -latlas 
-L/home/SU/lib -lsu -lpar -lcwp -lm  -o /home/SU/bin/susort 
susort.c: In function `negval': 
susort.c:304: could not split insn 
(insn 170 44 41 (set (reg:SI 11 r11) 
        (const_int 4294901760 [0xffff0000])) 296 {*movsi_internal1} (nil) 
    (nil)) 
susort.c:304: Internal compiler error in final_scan_insn, at final.c:2622 
Please submit a full bug report, 
 
with optimization turned off it compiles fine. 

Reproducible: Always
Steps to Reproduce:
1.in Makefile.conf turn on ANY optimization, -Ox 
2.make install 
3. 
Actual Results:  
the above mentioned error 

Expected Results:  
compile!!!! 

gcc-3.2.1-r6
Comment 1 Mark Guertin 2003-03-10 11:57:15 UTC
so you say only with optimization turned on?  As in the mcpu=750?  If so thats a 
known problem here, gcc 3.2 and mcpu=750 do _not_ make a good 
combination. 
 
I would suggest to turn off the optimization and/.or try gcc-3.2.2 (it is ~ppc in 
portage) 
Comment 2 M. Krzewicki 2003-03-10 12:14:12 UTC
i did try with only -O3 and -O2, without -mcpu=750 with the same result. i wanted to try gcc-3.2.2 but ran out of /tmp space for the merge, so i'll try that again tonight and report when it's done
Comment 3 M. Krzewicki 2003-03-10 21:37:34 UTC
ok, tried 3.2.2. it's a bug, all combo's of options i had the patience to try produce the same 
failure at 'splitting insn'. Well, i'll go for unoptimized code for the time being... 
Comment 4 Mark Guertin 2003-03-10 22:24:20 UTC
There is a gcc 3.3 release due any day from what I understand so hopefully 
these things are caught with new release.  I know franzo has been laboring 
away at things :) 
Comment 5 Bartosch Pixa (RETIRED) gentoo-dev 2003-04-27 23:24:23 UTC
gcc 3.2.2-r2 got marked stable please try it, if it still doesn't work you should
probably report this to the gcc developers.

closing this bug as we can't realy do something about it
Comment 6 M. Krzewicki 2003-04-28 07:53:32 UTC
will try that, thanks.
Comment 7 Pieter Van den Abeele (RETIRED) gentoo-dev 2003-10-11 04:38:55 UTC
bugzilla strangeness