On 6/29/19 9:51 AM, Segher Boessenkool wrote: > On Mon, Jun 17, 2019 at 01:13:43PM -0600, Jeff Law wrote: >>> (Hopefully one day GET_MODE_SIZE & co. will assert on BLKmode and VOIDmode.) >> Yea. Not sure why. There's probably a compile-time hit, but I suspect >> it'd turn up some interesting bugs. > > There turn out to be at least twenty or so places in GCC that rely on the > size of BLKmode and VOIDmode being 0, currently. After those I gave up. > > Maybe it's easier to first only handle BLKmode? Or have a > GET_MODE_SIZE_INTERNAL for all places that currently handle size 0 fine? I guess we could split them up, but there's something to be said for getting away from this special behavior. But it's clearly not the most important thing on our list right now.
jeff