This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: wide-int, msp430


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,
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]