Bug 198849

Summary: __builtin_constant_p() is broken
Product: [Fedora] Fedora Reporter: Horst H. von Brand <vonbrand>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: 4.1.1-9 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-07-19 20:03:55 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
Test file none

Description Horst H. von Brand 2006-07-14 03:07:58 UTC
Description of problem:
The attached file doesn't compile with "gcc -O", when it should

Version-Release number of selected component (if applicable):
gcc-4.1.1-7

How reproducible:
Dunno.

Steps to Reproduce:
1. Compile attached file with "gcc -O"
2.
3.
  
Actual results:/tmp/tst.c:
In function âmainâ:
/tmp/tst.c:9: error: initializer element is not constant
/tmp/tst.c:9: error: (near initialization for âa[0]â)


Expected results:
Initializer is constant zero, so...

Additional info:

Comment 1 Horst H. von Brand 2006-07-14 03:07:58 UTC
Created attachment 132406 [details]
Test file

Comment 2 Jakub Jelinek 2006-07-17 11:52:34 UTC
http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=114358
http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=114359
Backport seems to work, will include in gcc-4.1.1-9.

Comment 3 Jakub Jelinek 2006-07-19 20:03:55 UTC
Should be fixed in gcc-4.1.1-9 in rawhide.