RFA: Fix some gcc tests for 16-bit targets

2014-02-17 Thread Nick Clifton
Hi Guys, There are several tests in the gcc testsuite which implicitly assume a 32-bit (or larger) target. The patch below provides fixes for these tests in a variety of different ways. Where possible I have tried to recode the test so that it will compile on a 16-bit target, but in a

Re: RFA: Fix some gcc tests for 16-bit targets

2014-02-17 Thread DJ Delorie
> struct S > { >int f0:15; > - int f1:29; > + long int f1:29; > }; IIRC if you change one field here, you need to change both as some targets won't pack fields together if the types don't match. Likewise for other struct-field cases.

Re: RFA: Fix some gcc tests for 16-bit targets

2014-02-17 Thread Richard Biener
On February 17, 2014 6:03:56 PM GMT+01:00, Nick Clifton wrote: >Hi Guys, > > There are several tests in the gcc testsuite which implicitly assume a > 32-bit (or larger) target. The patch below provides fixes for these > tests in a variety of different ways. Where possible I have tried to > r

Re: RFA: Fix some gcc tests for 16-bit targets

2014-02-18 Thread nick clifton
Hi Richard, Instead of modifying testcases I'd be less nervous if you'd make them require 32bit. Otherwise you should reproduce the original issues with the modified testcases. OK, I can do that. How about this patch. OK to apply ? Cheers Nick gcc/testsuite/ChangeLog 2014-02-18 Nick C

Re: RFA: Fix some gcc tests for 16-bit targets

2014-02-19 Thread Richard Biener
On Tue, Feb 18, 2014 at 5:39 PM, nick clifton wrote: > Hi Richard, > > >> Instead of modifying testcases I'd be less nervous if you'd make them >> require 32bit. Otherwise you should reproduce the original issues with the >> modified testcases. > > > OK, I can do that. How about this patch. > > >