Re: [PATCH]middle-end Fix trapping access in test PR101750

2021-08-03 Thread Richard Biener
On Tue, 3 Aug 2021, Tamar Christina wrote: > Hi All, > > I believe PR101750 to be a testism. The reduced case accesses h[0] but h is > uninitialized and so the changes added in r12-2523 makes the compiler realize > this and replaces the code with a trap. > > This fixes the case by just making th

[PATCH]middle-end Fix trapping access in test PR101750

2021-08-03 Thread Tamar Christina via Gcc-patches
Hi All, I believe PR101750 to be a testism. The reduced case accesses h[0] but h is uninitialized and so the changes added in r12-2523 makes the compiler realize this and replaces the code with a trap. This fixes the case by just making the variable static. regtested on aarch64-none-linux-gnu an