Bug 146988

Summary: C++ reload ICE.
Product: Red Hat Enterprise Linux 4 Reporter: David Woodhouse <dwmw2>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED CURRENTRELEASE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0CC: rc040203
Target Milestone: ---   
Target Release: ---   
Hardware: powerpc   
OS: Linux   
Whiteboard:
Fixed In Version: 4.0.1-4.fc4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-08-05 21:59:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
preprocessed source. Build with -O2. none

Description David Woodhouse 2005-02-03 13:39:46 UTC
When compiling lib/interaction/src/nodes/SoAntiSquish.c++ from the
Inventor-2.1.5-5.src.rpm in Fedora Extras:

SoAntiSquish.c++: In member function `SbMatrix
SoAntiSquish::getUnsquishingMatrix(SbMatrix, SbBool, SbMatrix&)':
SoAntiSquish.c++:228: error: insn does not satisfy its constraints:
(insn:HI 656 1394 657 24 (set (reg:SF 66 ctr [217])
        (reg:SF 66 ctr [251])) 254 {*movsf_hardfloat} (nil)
    (nil))
SoAntiSquish.c++:228: internal compiler error: in
reload_cse_simplify_operands, at postreload.c:391

Building with -O works, with -O2 does not.

Reproduced with FC3 3.4.2-6 and EL4 3.4.3-9.EL4 compilers

Comment 1 David Woodhouse 2005-02-03 13:40:55 UTC
Created attachment 110593 [details]
preprocessed source. Build with -O2.

Comment 2 Ralf Corsepius 2005-08-02 17:04:53 UTC
(In reply to comment #1)
David, could you please try building Inventor with fc4 or rawhide and standard
RPM_OPT_FLAGS?

FWIW: My powerpc-rtems4.7-g++ (base on FSF gcc-4_0-branch 200505005) doesn't ICE
when cross-building your SoAntiSquish.ii


Comment 3 Ralf Corsepius 2005-08-03 05:19:11 UTC
Seems as if this issue has been resolved for fc4 and rawhide.

At least, building Inventor for fc4 and rawhide for the ppc with default
RPM_OPT_FLAGS (i.e. w/ -01 removed) have just succeeded:
http://buildsys.fedoraproject.org/build-status/job.psp?uid=344
http://buildsys.fedoraproject.org/build-status/job.psp?uid=346

So, I guess, this PR can be closed.