re PR tree-optimization/50472 (Volatile qualification in data is not enough to avoid...
authorRichard Guenther <rguenther@suse.de>
Mon, 26 Sep 2011 12:58:35 +0000 (12:58 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 26 Sep 2011 12:58:35 +0000 (12:58 +0000)
commitf8a7df459498f6e5c3308e9e3de3252dccecff9a
tree851dba3ea227d9d83fa999a66f6e3c047a8e9978
parentb5bcaa4a74c02648eb45c015ff03c15cdac82fe1
re PR tree-optimization/50472 (Volatile qualification in data is not enough to avoid optimization over pointer to data)

2011-09-26  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/50472
* gimple-fold.c (fold_const_aggregate_ref_1): Do not fold
volatile references.

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

From-SVN: r179196
gcc/ChangeLog
gcc/gimple-fold.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr50472.c [new file with mode: 0644]