* [wide-int] Restore msp430 build
@ 2013-11-03 10:21 Richard Sandiford
0 siblings, 0 replies; only message in thread
From: Richard Sandiford @ 2013-11-03 10:21 UTC (permalink / raw)
To: gcc-patches; +Cc: Kenneth Zadeck, mikestump
Installed as obvious.
Richard
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);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-11-03 10:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-03 10:21 [wide-int] Restore msp430 build Richard Sandiford
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).