Bug 495469 - internal compiler error: in expand_expr_real_1, at expr.c:9199
Summary: internal compiler error: in expand_expr_real_1, at expr.c:9199
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: gcc
Version: 5.3
Hardware: ppc64
OS: All
low
medium
Target Milestone: rc
: ---
Assignee: Jakub Jelinek
QA Contact: BaseOS QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-04-13 11:00 UTC by IBM Bug Proxy
Modified: 2009-09-02 11:43 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-09-02 11:43:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
preprocessed source (1016.62 KB, application/octet-stream)
2009-04-13 11:00 UTC, IBM Bug Proxy
no flags Details
backport from FSF mainline (2.61 KB, text/plain)
2009-04-13 11:01 UTC, IBM Bug Proxy
no flags Details
minimized testcase (869 bytes, text/plain)
2009-04-13 11:01 UTC, IBM Bug Proxy
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2009:1376 0 normal SHIPPED_LIVE gcc bug fix update 2009-09-01 11:41:20 UTC

Description IBM Bug Proxy 2009-04-13 11:00:47 UTC
=Comment: #0=================================================
William M. Schmidt <will_schmidt.com> - 

preprocessed source

---Problem Description---
During a ppc64 kernel build ,  an ICE is occurring. 

drivers/video/cirrusfb.c: In function ‘cirrusfb_set_par_foo’:
drivers/video/cirrusfb.c:475: internal compiler error: in expand_expr_real_1, at expr.c:9199

 Contact Information = willschm.com 
 
---uname output---
Linux gleep4.rchland.ibm.com 2.6.28 #5 SMP Thu Jan 22 10:22:10 CST 2009 ppc64 ppc64 ppc64 GNU/Linux
 
Machine Type = JS22 
 
=---Steps to Reproduce---
 do a kernel build.
attempt to build using (attached) preprocessed source.

I've hit this with both 
gcc version 4.1.2 20071124 (Red Hat 4.1.2-42)
and
gcc version 4.3.1 20080606 (Advance-Toolchain-05) (GCC)

---GCC - Power Component Data---
=Comment: #1=================================================
Janis M. Johnson <janis.com> - 
The bug exists in FSF GCC 4.3.1 but not in FSF GCC 4.3.2; it was fixed on the 4.3 branch with

    r139032 | jakub | 2008-08-12 18:36:28 +0000 (Tue, 12 Aug 2008) | 7 lines

        PR middle-end/37014
        * expr.c (expand_expr_real_1): Handle TRUTH_ANDIF_EXPR
        and TRUTH_ORIF_EXPR.
        * dojump.c (do_jump): Likewise.
        * gcc.c-torture/compile/20080812-1.c: New test.

    http://gcc.gnu.org/viewcvs?view=rev&rev=139032
I'll append a minimized testcase.
I'll try applying the patch against 4.3 to the FSF 4.1 branch, since the RHEL5 compiler is 4.1.
=Comment: #2=================================================
Janis M. Johnson <janis.com> - 

minimized testcase

The minimized testcase gets the ICE when compiled with -m64 and -Os or -O1.
=Comment: #3=================================================
Janis M. Johnson <janis.com> - 
Jakub's patch to 4.3 backports nicely to 4.1.  I'll attach it after full testing.
=Comment: #4=================================================
Janis M. Johnson <janis.com> - 

backport from FSF mainline
Backported patch, applied to FSF 4.1 branch and bootstrapped on powerpc64-linux for all languages
except Ada and regtested with -m32/-m64.

Comment 1 IBM Bug Proxy 2009-04-13 11:00:57 UTC
Created attachment 339308 [details]
preprocessed source

Comment 2 IBM Bug Proxy 2009-04-13 11:01:01 UTC
Created attachment 339309 [details]
backport from FSF mainline

Comment 3 IBM Bug Proxy 2009-04-13 11:01:06 UTC
Created attachment 339310 [details]
minimized testcase

Comment 6 Petr Muller 2009-05-07 13:45:42 UTC
qe_ack+, there are testcases available

Comment 10 IBM Bug Proxy 2009-07-02 21:01:20 UTC
------- Comment From will_schmidt.com 2009-07-02 16:53 EDT-------
Seems to be working OK with  "gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)" in the 5.4 beta.    the cirrusfb code built without generating an ICE message.

Marking as closed.

Thanks,
-Will

Comment 12 errata-xmlrpc 2009-09-02 11:43:52 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2009-1376.html


Note You need to log in before you can comment on or make changes to this bug.