re PR rtl-optimization/33653 (volatile memory access optimized away)

PR rtl-optimization/33653
        * gcc.dg/pr33653.c: New.

From-SVN: r129007
This commit is contained in:
Michael Matz 2007-10-04 13:35:06 +00:00 committed by Michael Matz
parent 0a64eecaf4
commit b88e26b0f9
2 changed files with 15 additions and 0 deletions

View 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

View File

@ -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" } } */