diff mbox

wide-int, msp430

Message ID AF995D79-EC45-4FEC-B042-1B102C9D3F14@comcast.net
State New
Headers show

Commit Message

Mike Stump Nov. 23, 2013, 7:22 p.m. UTC
Richi has asked the we break the wide-int patch so that the individual port and front end maintainers can review their parts without have to go through the entire patch.    This patch covers the msp430 port.

Ok?
* config/msp430/msp430.c
	(msp430_attr): Use wide-int interfaces.

Comments

DJ Delorie Nov. 28, 2013, 4:39 a.m. UTC | #1
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,
>
diff mbox

Patch

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,