[Bug tree-optimization/47391] [4.5 Regression] read from const volatile incorrectly eliminated
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Apr 7 18:23:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47391
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-04-07 18:22:54 UTC ---
Author: jakub
Date: Thu Apr 7 18:22:50 2011
New Revision: 172112
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=172112
Log:
PR tree-optimization/47391
* tree-ssa-ccp.c (get_symbol_constant_value): Don't optimize
if sym is volatile.
Backport from mainline
2011-01-21 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/47391
* gcc.dg/pr47391.c: New test.
Added:
branches/gcc-4_5-branch/gcc/testsuite/gcc.dg/pr47391.c
Modified:
branches/gcc-4_5-branch/gcc/ChangeLog
branches/gcc-4_5-branch/gcc/testsuite/ChangeLog
branches/gcc-4_5-branch/gcc/tree-ssa-ccp.c
More information about the Gcc-bugs
mailing list