]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR rtl-optimization/33653 (volatile memory access optimized away)
authorMichael Matz <matz@suse.de>
Thu, 4 Oct 2007 13:35:06 +0000 (13:35 +0000)
committerMichael Matz <matz@gcc.gnu.org>
Thu, 4 Oct 2007 13:35:06 +0000 (13:35 +0000)
        PR rtl-optimization/33653
        * gcc.dg/pr33653.c: New.

From-SVN: r129007

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr33653.c [new file with mode: 0644]

index cd6596ef763aa9e86f7fc0d62de5c6aca3cce618..45881bf26fae2e284449d791dd0f74ce87affce6 100644 (file)
@@ -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 (file)
index 0000000..91274c2
--- /dev/null
@@ -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" } } */