From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4382 invoked by alias); 3 Nov 2013 10:21:09 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 4373 invoked by uid 89); 3 Nov 2013 10:21:08 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RDNS_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no version=3.3.2 X-HELO: mail-wi0-f174.google.com Received: from Unknown (HELO mail-wi0-f174.google.com) (209.85.212.174) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sun, 03 Nov 2013 10:21:07 +0000 Received: by mail-wi0-f174.google.com with SMTP id cb5so2661447wib.1 for ; Sun, 03 Nov 2013 02:20:58 -0800 (PST) X-Received: by 10.194.94.33 with SMTP id cz1mr40076wjb.73.1383474058830; Sun, 03 Nov 2013 02:20:58 -0800 (PST) Received: from localhost ([2.28.235.51]) by mx.google.com with ESMTPSA id fr4sm24435221wib.0.2013.11.03.02.20.57 for (version=TLSv1.2 cipher=AES128-GCM-SHA256 bits=128/128); Sun, 03 Nov 2013 02:20:58 -0800 (PST) From: Richard Sandiford To: gcc-patches@gcc.gnu.org Mail-Followup-To: gcc-patches@gcc.gnu.org,Kenneth Zadeck , mikestump@comcast.net, rdsandiford@googlemail.com Cc: Kenneth Zadeck , mikestump@comcast.net Subject: [wide-int] Restore msp430 build Date: Sun, 03 Nov 2013 10:21:00 -0000 Message-ID: <87habtiy5y.fsf@talisman.default> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2013-11/txt/msg00130.txt.bz2 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);