Bug 236711 - gcc: internal compiler error: in compare_values, at tree-vrp.c
gcc: internal compiler error: in compare_values, at tree-vrp.c
Status: CLOSED UPSTREAM
Product: Fedora
Classification: Fedora
Component: gcc (Show other bugs)
6
ppc64 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-04-17 04:53 EDT by Helmut Tschemernjak
Modified: 2007-11-30 17:12 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-04-19 07:51:13 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
preprocessed source file to demonstrate gcc internal compiler error (493.13 KB, text/plain)
2007-04-17 04:59 EDT, Helmut Tschemernjak
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
GNU Compiler Collection 31632 None None None Never

  None (edit)
Description Helmut Tschemernjak 2007-04-17 04:53:25 EDT
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 04:59:58 EDT
Created attachment 152778 [details]
preprocessed source file to demonstrate gcc internal compiler error
Comment 2 Jakub Jelinek 2007-04-19 07:51:13 EDT
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 *. 

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