Commit f3b45ab7 by Richard Guenther Committed by Richard Biener

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
parent 35f3782f
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
/* { 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" } } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment