mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-24 08:49:11 +08:00
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:
parent
0a64eecaf4
commit
b88e26b0f9
@ -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
|
||||
|
10
gcc/testsuite/gcc.dg/pr33653.c
Normal file
10
gcc/testsuite/gcc.dg/pr33653.c
Normal 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" } } */
|
Loading…
Reference in New Issue
Block a user