Re: [PATCH] Fix selftest for targets where short and int are the same size.

2021-05-25 Thread Jeff Law via Gcc-patches
On 5/25/2021 10:36 AM, Aldy Hernandez wrote: Ok, let's use build_nonstandard_integer_type which works for everyone and gets you unblocked. Just to be clear, I'm not blocked on xstormy16.   The upstream GCC tester flagged the failure and I did enough triage to blame you :-) In my day job I'm

Re: [PATCH] Fix selftest for targets where short and int are the same size.

2021-05-25 Thread Aldy Hernandez via Gcc-patches
Ok, let's use build_nonstandard_integer_type which works for everyone and gets you unblocked. Pushed. Aldy On Tue, May 25, 2021 at 3:15 PM Jeff Law wrote: > > > > On 5/25/2021 12:44 AM, Aldy Hernandez wrote: > > avr-elf seems to use HImode for both integer_type_node and > > signed_char_type_nod

Re: [PATCH] Fix selftest for targets where short and int are the same size.

2021-05-25 Thread Jeff Law via Gcc-patches
On 5/25/2021 12:44 AM, Aldy Hernandez wrote: avr-elf seems to use HImode for both integer_type_node and signed_char_type_node, which is causing the check for different sized VARYING ranges to fail. I've fixed this by using a char which I think should always be smaller than an int. Is there a

[PATCH] Fix selftest for targets where short and int are the same size.

2021-05-24 Thread Aldy Hernandez via Gcc-patches
avr-elf seems to use HImode for both integer_type_node and signed_char_type_node, which is causing the check for different sized VARYING ranges to fail. I've fixed this by using a char which I think should always be smaller than an int. Is there a preferred way of fixing this? Perhaps build_non