Message ID | 535937E6.2050307@arm.com |
---|---|
State | New |
Headers | show |
On 14-04-24 12:12 PM, Kyrill Tkachov wrote: > On 24/04/14 14:44, Ryan Mansfield wrote: >> On 14-04-23 11:38 AM, Kyrill Tkachov wrote: >>> http://gcc.gnu.org/ml/gcc-patches/2014-03/msg00934.html >>> (http://gcc.gnu.org/ml/gcc-patches/2014-03/msg01634.html) >> This patch breaks building arm-eabi with a 32bit host gcc. > > Hi Ryan, > > Does this patch fix it for you? > I'll test and bootstrap it on arm. > > Kyrill > > 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com> > > * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): > Use HOST_WIDE_INT_C for mask literal. > (aarch_rev16_shleft_mask_imm_p): Likewise. Yes, your patch resolves the build issues. Thanks. Regards, Ryan Mansfield
On 24/04/14 17:46, Ryan Mansfield wrote: > On 14-04-24 12:12 PM, Kyrill Tkachov wrote: >> On 24/04/14 14:44, Ryan Mansfield wrote: >>> On 14-04-23 11:38 AM, Kyrill Tkachov wrote: >>>> http://gcc.gnu.org/ml/gcc-patches/2014-03/msg00934.html >>>> (http://gcc.gnu.org/ml/gcc-patches/2014-03/msg01634.html) >>> This patch breaks building arm-eabi with a 32bit host gcc. >> Hi Ryan, >> >> Does this patch fix it for you? >> I'll test and bootstrap it on arm. >> >> Kyrill >> >> 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com> >> >> * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): >> Use HOST_WIDE_INT_C for mask literal. >> (aarch_rev16_shleft_mask_imm_p): Likewise. > Yes, your patch resolves the build issues. Thanks. Thanks for testing. Regtest on cross arm-none-eabi passes. Bootstrap in progress. Ok to commit if no issues then? Kyrill > Regards, > > Ryan Mansfield > >
On Thu, Apr 24, 2014 at 5:50 PM, Kyrill Tkachov <kyrylo.tkachov@arm.com> wrote: > On 24/04/14 17:46, Ryan Mansfield wrote: >> >> On 14-04-24 12:12 PM, Kyrill Tkachov wrote: >>> >>> On 24/04/14 14:44, Ryan Mansfield wrote: >>>> >>>> On 14-04-23 11:38 AM, Kyrill Tkachov wrote: >>>>> >>>>> http://gcc.gnu.org/ml/gcc-patches/2014-03/msg00934.html >>>>> (http://gcc.gnu.org/ml/gcc-patches/2014-03/msg01634.html) >>>> >>>> This patch breaks building arm-eabi with a 32bit host gcc. >>> >>> Hi Ryan, >>> >>> Does this patch fix it for you? >>> I'll test and bootstrap it on arm. Ok - can people remember to build and test before applying their patches even though they are OK'd ? Ramana >>> >>> Kyrill >>> >>> 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com> >>> >>> * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): >>> Use HOST_WIDE_INT_C for mask literal. >>> (aarch_rev16_shleft_mask_imm_p): Likewise. >> >> Yes, your patch resolves the build issues. Thanks. > > > Thanks for testing. > Regtest on cross arm-none-eabi passes. Bootstrap in progress. > Ok to commit if no issues then? > > Kyrill > >> Regards, >> >> Ryan Mansfield >> >> > >
commit 83b40d14694e0c89f293f19071f006c11a54ad22 Author: Kyrylo Tkachov <kyrylo.tkachov@arm.com> Date: Thu Apr 24 15:33:57 2014 +0100 [ARM] Use HOST_WIDE_INT_C diff --git a/gcc/config/arm/aarch-common.c b/gcc/config/arm/aarch-common.c index 884d4b3..d31191a 100644 --- a/gcc/config/arm/aarch-common.c +++ b/gcc/config/arm/aarch-common.c @@ -195,14 +195,18 @@ bool aarch_rev16_shright_mask_imm_p (rtx val, enum machine_mode mode) { return CONST_INT_P (val) - && INTVAL (val) == trunc_int_for_mode (0xff00ff00ff00ff, mode); + && INTVAL (val) + == trunc_int_for_mode (HOST_WIDE_INT_C (0xff00ff00ff00ff), + mode); } bool aarch_rev16_shleft_mask_imm_p (rtx val, enum machine_mode mode) { return CONST_INT_P (val) - && INTVAL (val) == trunc_int_for_mode (0xff00ff00ff00ff00, mode); + && INTVAL (val) + == trunc_int_for_mode (HOST_WIDE_INT_C (0xff00ff00ff00ff00), + mode); }