Re: [PATCH] varasm: Fix up ICE in narrowing_initializer_constant_valid_p [PR105998]

2022-06-17 Thread Richard Biener via Gcc-patches
> Am 17.06.2022 um 11:20 schrieb Jakub Jelinek via Gcc-patches > : > > On Fri, Jun 17, 2022 at 10:37:45AM +0200, Richard Biener wrote: >>> --- gcc/varasm.cc.jj2022-06-06 12:18:12.792812888 +0200 >>> +++ gcc/varasm.cc2022-06-17 09:49:21.918029072 +0200 >>> @@ -4716,7 +4716,8 @@ narrowi

Re: [PATCH] varasm: Fix up ICE in narrowing_initializer_constant_valid_p [PR105998]

2022-06-17 Thread Jakub Jelinek via Gcc-patches
On Fri, Jun 17, 2022 at 10:37:45AM +0200, Richard Biener wrote: > > --- gcc/varasm.cc.jj2022-06-06 12:18:12.792812888 +0200 > > +++ gcc/varasm.cc2022-06-17 09:49:21.918029072 +0200 > > @@ -4716,7 +4716,8 @@ narrowing_initializer_constant_valid_p ( > > { > > tree inner = TREE_OPERA

Re: [PATCH] varasm: Fix up ICE in narrowing_initializer_constant_valid_p [PR105998]

2022-06-17 Thread Richard Biener via Gcc-patches
> Am 17.06.2022 um 10:11 schrieb Jakub Jelinek via Gcc-patches > : > > Hi! > > The following testcase ICEs because there is NON_LVALUE_EXPR (location > wrapper) around a VAR_DECL and has TYPE_MODE V2SImode and > SCALAR_INT_TYPE_MODE on that ICEs. Or for -m32 -march=i386 TYPE_MODE > is DImod

[PATCH] varasm: Fix up ICE in narrowing_initializer_constant_valid_p [PR105998]

2022-06-17 Thread Jakub Jelinek via Gcc-patches
Hi! The following testcase ICEs because there is NON_LVALUE_EXPR (location wrapper) around a VAR_DECL and has TYPE_MODE V2SImode and SCALAR_INT_TYPE_MODE on that ICEs. Or for -m32 -march=i386 TYPE_MODE is DImode, but SCALAR_INT_TYPE_MODE still uses the raw V2SImode and ICEs too. Fixed thusly, bo