[Bug regression/50472] Volatile qualification in data is not enough to avoid optimization over pointer to data

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Sep 26 14:41:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50472

--- Comment #6 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-09-26 14:09:04 UTC ---
Author: rguenth
Date: Mon Sep 26 14:08:53 2011
New Revision: 179200

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=179200
Log:
2011-09-26  Richard Guenther  <rguenther@suse.de>

    PR tree-optimization/50472
    * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not fold
    volatile references.

    * gcc.dg/torture/pr50472.c: New testcase.

Added:
    branches/gcc-4_6-branch/gcc/testsuite/gcc.dg/torture/pr50472.c
Modified:
    branches/gcc-4_6-branch/gcc/ChangeLog
    branches/gcc-4_6-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_6-branch/gcc/tree-ssa-ccp.c



More information about the Gcc-bugs mailing list