public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Richard Sandiford <rdsandiford@googlemail.com>
To: gcc-patches@gcc.gnu.org
Cc: Kenneth Zadeck <zadeck@naturalbridge.com>, mikestump@comcast.net
Subject: [wide-int] Restore msp430 build
Date: Sun, 03 Nov 2013 10:21:00 -0000	[thread overview]
Message-ID: <87habtiy5y.fsf@talisman.default> (raw)

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);

                 reply	other threads:[~2013-11-03 10:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87habtiy5y.fsf@talisman.default \
    --to=rdsandiford@googlemail.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=mikestump@comcast.net \
    --cc=zadeck@naturalbridge.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).