re PR tree-optimization/32328 (-fstrict-aliasing causes skipped code)

2007-08-23  Richard Guenther  <rguenther@suse.de>

        PR tree-optimization/32328
        * testsuite/gcc.dg/pr32328.c: New testcase.

From-SVN: r127736
This commit is contained in:
Richard Guenther 2007-08-23 12:41:59 +00:00 committed by Richard Biener
parent 35f3782f4a
commit f3b45ab712
2 changed files with 22 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2007-08-23 Richard Guenther <rguenther@suse.de>
PR tree-optimization/32328
* testsuite/gcc.dg/pr32328.c: New testcase.
2007-08-23 Rask Ingemann Lambertsen <rask@sygehus.dk>
* gcc.c-torture/execute/simd-4.x: Only run when stdint.h types are

View File

@ -0,0 +1,17 @@
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized" } */
struct barstruct { char const* some_string; };
void changethepointer(struct barstruct**);
void baz()
{
struct barstruct bar1;
struct barstruct* barptr = &bar1;
changethepointer(&barptr);
barptr->some_string = "Everything OK";
}
/* { dg-final { scan-tree-dump "Everything OK" "optimized" } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */