Bug 448639 - gcc ICE in simplify_subreg
Summary: gcc ICE in simplify_subreg
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: 9
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-05-28 00:24 UTC by Petr Muller
Modified: 2016-09-20 02:04 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2008-05-29 07:52:19 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
preprocessed source (256 bytes, text/plain)
2008-05-28 00:28 UTC, Petr Muller
no flags Details


Links
System ID Private Priority Status Summary Last Updated
GNU Compiler Collection 36362 0 None None None Never

Description Petr Muller 2008-05-28 00:24:33 UTC
Description of problem: 

following test piece of code (randomly generated C - are those two '!' even 
valid?) makes GCC ICE. 

int main(){
    float c2 = 1.0;
    if ( ! ! c2 * 07ll == 0 ){
    }
}

Version-Release number of selected component (if applicable):
gcc-4.3.0-8.i386

How reproducible:
seems to be reproducible only in 32-bit mode, and without optimizations

Steps to Reproduce:
1. gcc t.c
  
Actual results:
ICE

Expected results:
no ICE

Additional info:
I tried this with RHEL5 and upstream gcc (HEAD cca month back), both were 
affected too.

Comment 1 Petr Muller 2008-05-28 00:27:07 UTC
forgot the ICE itself:

# gcc t.c
t.c: In function ‘main’:
t.c:5: internal compiler error: in simplify_subreg, at simplify-rtx.c:3818
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/cc3kyGnf.out file, please attach this to 
your bugreport.

Comment 2 Petr Muller 2008-05-28 00:28:31 UTC
Created attachment 306863 [details]
preprocessed source

alhough there's nothing much to preprocess, here's preprocessed source


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