This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: wide-int, msp430
- From: DJ Delorie <dj at redhat dot com>
- To: Mike Stump <mikestump at comcast dot net>
- Cc: gcc-patches at gcc dot gnu dot org, nickc at redhat dot com, zadeck at naturalbridge dot com
- Date: Wed, 27 Nov 2013 23:39:16 -0500
- Subject: Re: wide-int, msp430
- Authentication-results: sourceware.org; auth=none
- References: <AF995D79-EC45-4FEC-B042-1B102C9D3F14 at comcast dot net>
Ok
> * config/msp430/msp430.c
> (msp430_attr): Use wide-int interfaces.
>
>
> diff --git a/gcc/config/msp430/msp430.c b/gcc/config/msp430/msp430.c
> index daff4ae..e3f6712 100644
> --- a/gcc/config/msp430/msp430.c
> +++ b/gcc/config/msp430/msp430.c
> @@ -1085,7 +1085,7 @@ msp430_attr (tree * node,
> break;
>
> case INTEGER_CST:
> - if (TREE_INT_CST_LOW (value) > 31)
> + if (wi::gtu_p (value, 31))
> /* Allow the attribute to be added - the linker script
> being used may still recognise this value. */
> warning (OPT_Wattributes,
>