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".
Created attachment 152778 [details] preprocessed source file to demonstrate gcc internal compiler error
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 *.