Re: rtl-optimization: Fix uninitialized use of opaque mode variable ICE [PR98872]

2021-02-15 Thread Peter Bergner via Gcc-patches
On 2/15/21 6:25 AM, Richard Sandiford wrote: > Peter Bergner writes: >> 2021-02-12 Peter Bergner >> >> gcc/ >> PR rtl-optimization/98872 >> * init-regs.c (initialize_uninitialized_regs): Skip initialization >> if CONST0_RTX is NULL. >> >> gcc/testsuite/ >> PR rtl-optimizatio

Re: rtl-optimization: Fix uninitialized use of opaque mode variable ICE [PR98872]

2021-02-15 Thread Richard Sandiford via Gcc-patches
Peter Bergner writes: > 2021-02-12 Peter Bergner > > gcc/ > PR rtl-optimization/98872 > * init-regs.c (initialize_uninitialized_regs): Skip initialization > if CONST0_RTX is NULL. > > gcc/testsuite/ > PR rtl-optimization/98872 > * gcc.target/powerpc/pr98872.c: New

Re: rtl-optimization: Fix uninitialized use of opaque mode variable ICE [PR98872]

2021-02-12 Thread Peter Bergner via Gcc-patches
On 2/12/21 4:21 PM, Peter Bergner wrote: > rtl-optimization: Fix uninitialized use of opaque mode variable ICE [PR98872] > > The initialize_uninitialized_regs function emits (set (reg:) (CONST0_RTX)) > for all uninitialized pseudo uses. However, some modes (eg, opaque modes) >

rtl-optimization: Fix uninitialized use of opaque mode variable ICE [PR98872]

2021-02-12 Thread Peter Bergner via Gcc-patches
e do not ICE on the tests below. */ > > Do the existing tests already check the expected code for this? Yes, our mma-builtin-*.c tests check for expected output. The updated patch below fixes the bug too and is much simpler! :-) rtl-optimization: Fix uninitialized use of opaque mode