PR tree-optimization/29801
* tree-ssa-ccp.c (get_symbol_constant_value): New function. (get_default_value): Use get_symbol_constant_value. (set_lattice_value): ICE when the value of the constant is changed. (visit_assignment): Ignore VDEFs of read-only variables. * gcc.dg/pr29801.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118926 138bc75d-0d04-0410-961f-82ee72b054a4
Loading
Please register or sign in to comment