Bug 236711

Summary: gcc: internal compiler error: in compare_values, at tree-vrp.c
Product: [Fedora] Fedora Reporter: Helmut Tschemernjak <redhat>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6   
Target Milestone: ---   
Target Release: ---   
Hardware: ppc64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-04-19 11:51:13 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 file to demonstrate gcc internal compiler error none

Description Helmut Tschemernjak 2007-04-17 08:53:25 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/419 (KHTML, like Gecko) Safari/419.3

Description of problem:
gcc fails with "internal compiler error: in compare_values, at tree-vrp.c:436"


Version-Release number of selected component (if applicable):
gcc-4.1.1-51.fc6

How reproducible:
Always


Steps to Reproduce:
1. Compile the attached (preprocessed) source file with
"gcc -Wall -fno-strict-aliasing -O2 gccbug.c"


Actual Results:
gcc output:
oieps_itoc_tag.c: In function ‘oiepsDetermineResourceRegions’:
oieps_itoc_tag.c:882: internal compiler error: in compare_values, at tree-vrp.c:436
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/ccHbyP1Q.out file, please attach this to your bugreport.


Expected Results:


Additional info:
The problem does not occur with optimization "-O1".

Comment 1 Helmut Tschemernjak 2007-04-17 08:59:58 UTC
Created attachment 152778 [details]
preprocessed source file to demonstrate gcc internal compiler error

Comment 2 Jakub Jelinek 2007-04-19 11:51:13 UTC
Tracking upstream, PR31632.
But if you fix the source, in oiepsDetermineResourceRegions change
if (max <= NULL)
(or is that if (max <= ((void *)0)) in the source?) to if (max == 0)
or if (max <= 0) etc.
max is unsigned integral type (size_t), while the second operand is void *.