diff mbox

[wide-int] Restore msp430 build

Message ID 87habtiy5y.fsf@talisman.default
State New
Headers show

Commit Message

Richard Sandiford Nov. 3, 2013, 10:20 a.m. UTC
Installed as obvious.

Richard
diff mbox

Patch

Index: gcc/config/msp430/msp430.c
===================================================================
--- gcc/config/msp430/msp430.c	2013-11-03 10:04:56.004019113 +0000
+++ gcc/config/msp430/msp430.c	2013-11-03 10:19:04.928118621 +0000
@@ -1058,7 +1058,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,
@@ -1132,7 +1132,7 @@  msp430_start_function (FILE *file, const
 		     TREE_STRING_POINTER (intr_vector));
 	  else /* TREE_CODE (intr_vector) == INTEGER_CST */
 	    sprintf (buf, "__interrupt_vector_%u",
-		     (unsigned int) TREE_INT_CST_LOW (intr_vector));
+		     (unsigned int) tree_to_hwi (intr_vector));
 
 	  switch_to_section (get_section (buf, SECTION_CODE, decl));
 	  fputs ("\t.word\t", file);