Restore msp430 build.
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 3 Nov 2013 10:20:40 +0000 (10:20 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 3 Nov 2013 10:20:40 +0000 (10:20 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/wide-int@204331 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/config/msp430/msp430.c

index fe692ca..f4b2280 100644 (file)
@@ -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 char *name, tree decl)
                     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);