Re: [PATCH] Fix 78550 ICE with bit-field initialization

2016-12-09 Thread Richard Biener
On Thu, Dec 8, 2016 at 5:38 PM, Nathan Sidwell wrote: > This patch fixes 78550, where we ICE in varasm as we discover a > code-generating NOP_EXPR of an INTEGER_CST. output_constructor (varasm.c) > has a STRIP_NOPs, but that leaves the NOP alone, as it is truncating a > regular QI mode operand to

[PATCH] Fix 78550 ICE with bit-field initialization

2016-12-08 Thread Nathan Sidwell
This patch fixes 78550, where we ICE in varasm as we discover a code-generating NOP_EXPR of an INTEGER_CST. output_constructor (varasm.c) has a STRIP_NOPs, but that leaves the NOP alone, as it is truncating a regular QI mode operand to a 1 bit type. That tree is generated in convert.c: