[Bug bootstrap/71071] [7 regression] ICE --enable-checking=fold : fold check: original tree changed by fold
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu May 12 13:15:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71071
--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
commit 6fcaaf9b931078f979a0282d396e78647ea37999
Author: rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Wed May 11 10:24:11 2016 +0000
2016-05-11 Richard Biener <rguenther@suse.de>
PR middle-end/71002
* alias.c (reference_alias_ptr_type): Preserve alias-set zero
if the langhook insists on it.
* fold-const.c (make_bit_field_ref): Add arg for the original
reference and preserve its alias-set.
(decode_field_reference): Take exp by reference and adjust it
to the original memory reference.
(optimize_bit_field_compare): Adjust callers.
(fold_truth_andor_1): Likewise.
* gimplify.c (gimplify_expr): Adjust in-SSA form test.
* g++.dg/torture/pr71002.C: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@236117
138bc75d-0d04-0410-961f-82ee72b054a4
More information about the Gcc-bugs
mailing list