Re: [PATCH] Fix PR87691: transparent_union attribute does not work with MODE_PARTIAL_INT

2018-11-07 Thread Marek Polacek
On Tue, Oct 23, 2018 at 08:49:26PM +0100, Jozef Lawrynowicz wrote: > msp430-elf uses the partial int type __int20 for pointers in the large memory > model. __int20 has PSImode, with bitsize of 20. > > A few DejaGNU tests fail when built with -mlarge for msp430-elf, when > transparent unions are us

Re: [PATCH] Fix PR87691: transparent_union attribute does not work with MODE_PARTIAL_INT

2018-11-07 Thread Jeff Law
On 10/23/18 1:49 PM, Jozef Lawrynowicz wrote: > msp430-elf uses the partial int type __int20 for pointers in the large memory > > model. __int20 has PSImode, with bitsize of 20. > > A few DejaGNU tests fail when built with -mlarge for msp430-elf, when > transparent unions are used containing poin

[PATCH] Fix PR87691: transparent_union attribute does not work with MODE_PARTIAL_INT

2018-10-23 Thread Jozef Lawrynowicz
msp430-elf uses the partial int type __int20 for pointers in the large memory model. __int20 has PSImode, with bitsize of 20. A few DejaGNU tests fail when built with -mlarge for msp430-elf, when transparent unions are used containing pointers. These are: - gcc.c-torture/compile/pr34885.c - gcc.d