diff options
author | Geoff Keating <geoffk@cygnus.com> | 2000-06-23 20:05:55 +0000 |
---|---|---|
committer | Geoffrey Keating <geoffk@gcc.gnu.org> | 2000-06-23 20:05:55 +0000 |
commit | 3e0abe15d14d78cd9b00e422082178a69a2fa272 (patch) | |
tree | f7d46e1f2a630caf82a788c880e071b187d02dab /gcc/alias.c | |
parent | 56e3dd2cea5979ccedbb18968098f07ffb6b5f95 (diff) | |
download | gcc-3e0abe15d14d78cd9b00e422082178a69a2fa272.zip gcc-3e0abe15d14d78cd9b00e422082178a69a2fa272.tar.gz gcc-3e0abe15d14d78cd9b00e422082178a69a2fa272.tar.bz2 |
alias.c (fixed_scalar_and_varying_struct_p): Don't examine struct vs.
* alias.c (fixed_scalar_and_varying_struct_p): Don't examine
struct vs. scalar-ness when -fno-strict-aliasing.
and a test case to test it, gcc.dg/20000623-1.c.
From-SVN: r34668
Diffstat (limited to 'gcc/alias.c')
-rw-r--r-- | gcc/alias.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/alias.c b/gcc/alias.c index 07f8701..55cc212 100644 --- a/gcc/alias.c +++ b/gcc/alias.c @@ -1523,6 +1523,9 @@ fixed_scalar_and_varying_struct_p (mem1, mem2, mem1_addr, mem2_addr, varies_p) rtx mem1_addr, mem2_addr; int (*varies_p) PARAMS ((rtx)); { + if (! flag_strict_aliasing) + return NULL_RTX; + if (MEM_SCALAR_P (mem1) && MEM_IN_STRUCT_P (mem2) && !varies_p (mem1_addr) && varies_p (mem2_addr)) /* MEM1 is a scalar at a fixed address; MEM2 is a struct at a |