diff options
author | Michael Matz <matz@suse.de> | 2007-10-04 13:35:06 +0000 |
---|---|---|
committer | Michael Matz <matz@gcc.gnu.org> | 2007-10-04 13:35:06 +0000 |
commit | b88e26b0f93e18b20444baeb69a384cf6ba82087 (patch) | |
tree | 45c513d7e1ebf0c4cc46fe3982f7c40daeec33ac /gcc | |
parent | 0a64eecaf4c81c3a22d49573965d8bf48e556a40 (diff) | |
download | gcc-b88e26b0f93e18b20444baeb69a384cf6ba82087.zip gcc-b88e26b0f93e18b20444baeb69a384cf6ba82087.tar.gz gcc-b88e26b0f93e18b20444baeb69a384cf6ba82087.tar.bz2 |
re PR rtl-optimization/33653 (volatile memory access optimized away)
PR rtl-optimization/33653
* gcc.dg/pr33653.c: New.
From-SVN: r129007
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/pr33653.c | 10 |
2 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index cd6596e..45881bf 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2007-10-04 Michael Matz <matz@suse.de> + + PR rtl-optimization/33653 + * gcc.dg/pr33653.c: New. + 2007-10-04 Richard Guenther <rguenther@suse.de> PR tree-optimization/33627 diff --git a/gcc/testsuite/gcc.dg/pr33653.c b/gcc/testsuite/gcc.dg/pr33653.c new file mode 100644 index 0000000..91274c2 --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr33653.c @@ -0,0 +1,10 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -fdump-rtl-shorten" } */ + +void f (volatile char *p) +{ + char c = p[0]; +} + +/* { dg-final { scan-rtl-dump "mem/v" "shorten" } } */ +/* { dg-final { cleanup-rtl-dump "shorten" } } */ |