[Bug tree-optimization/77677] [7 Regression] ICE at -O1 and above in both 32-bit and 64-bit modes on x86_64-linux-gnu (internal compiler error: in set_value_range, at tree-vrp.c:361)

pthaugen at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Sep 23 15:56:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77677

--- Comment #9 from Pat Haugen <pthaugen at gcc dot gnu.org> ---
(In reply to kugan from comment #8)
> Author: kugan
> Date: Fri Sep 23 10:25:09 2016
> New Revision: 240420
> 
> URL: https://gcc.gnu.org/viewcvs?rev=240420&root=gcc&view=rev
> Log:
> Drop TREE_OVERFLOW
> 
> gcc/ChangeLog:
> 
> 2016-09-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
> 
> 	PR ipa/77677
> 	* ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
> 	from constant while creating value range.


Unfortunately this does not fix the problem building 176.gcc on powerpc.
Following is reduced testcase. Failure occurs with 'gcc -O2'.

enum machine_mode { MAX_MACHINE_MODE };
struct {
  int mode : 8
} a;
b;
static fn1();
fn2() { fn1(a, a.mode); }

fn1(x, mode) enum machine_mode mode;
{ int c = b = c; }


More information about the Gcc-bugs mailing list