Bug 859232
Summary: | The C compiler (cc) dies on a VERY simple program. | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Michael Monagan <mmonagan> | ||||
Component: | gcc | Assignee: | Jakub Jelinek <jakub> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | low | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 16 | CC: | jakub, law | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2012-09-21 08:46:41 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Fixed in GCC 4.7, not going to update GCC 4.6 in F16 this late. |
Created attachment 615119 [details] ccSQoup9.out file (requested to attach) Description of problem: Bug in C compiler Here is the C code #include<stdio.h> int main() { int i,j,a,b,p; a = 997; b = 23; p = 1048573; for( i=0; i<10000; i++ ) { a = a+b; for( j=0; j<10000; j++ ) { b ++; a += a*b; } } printf("a=%d\n",a); } Steps to Reproduce: 1. compile with cc -O3 <file.c> Actual results: divmul.c: In function ‘main’: divmul.c:3:5: internal compiler error: in vect_create_epilog_for_reduction, at tree-vect-loop.c:3739 Please submit a full bug report, with preprocessed source if appropriate. Expected results: compile with no errors Additional info: It compiles okay with other orderings of code e.g. #include<stdio.h> int main() { int i,j,a,b,p; a = 997; b = 23; p = 1048573; for( i=0; i<10000; i++ ) { for( j=0; j<10000; j++ ) { b ++; a += a*b; } a = a+b; } printf("a=%d\n",a); }