From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6362 invoked by alias); 3 Nov 2013 10:23:26 -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 6351 invoked by uid 89); 3 Nov 2013 10:23:25 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RDNS_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no version=3.3.2 X-HELO: mail-we0-f171.google.com Received: from Unknown (HELO mail-we0-f171.google.com) (74.125.82.171) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sun, 03 Nov 2013 10:23:24 +0000 Received: by mail-we0-f171.google.com with SMTP id t60so1034164wes.16 for ; Sun, 03 Nov 2013 02:23:14 -0800 (PST) X-Received: by 10.194.88.225 with SMTP id bj1mr553174wjb.50.1383474194881; Sun, 03 Nov 2013 02:23:14 -0800 (PST) Received: from localhost ([2.28.235.51]) by mx.google.com with ESMTPSA id qc10sm25451069wic.9.2013.11.03.02.23.14 for (version=TLSv1.2 cipher=AES128-GCM-SHA256 bits=128/128); Sun, 03 Nov 2013 02:23:14 -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 SPARC build Date: Sun, 03 Nov 2013 10:23:00 -0000 Message-ID: <87d2mhiy26.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/msg00131.txt.bz2 ...since I'd forgotten to update it when doing the wi:: stuff. Installed as obvious. Richard Index: gcc/config/sparc/sparc.c =================================================================== --- gcc/config/sparc/sparc.c 2013-11-03 10:04:56.004019113 +0000 +++ gcc/config/sparc/sparc.c 2013-11-03 10:21:25.557126367 +0000 @@ -10621,26 +10621,26 @@ sparc_fold_builtin (tree fndecl, int n_a && TREE_CODE (arg2) == INTEGER_CST) { bool overflow, overall_overflow = false; - wide_int result = wide_int::from_tree (arg2); + wide_int result = arg2; wide_int tmp; unsigned i; for (i = 0; i < VECTOR_CST_NELTS (arg0); ++i) { - wide_int e0 = wide_int::from_tree (VECTOR_CST_ELT (arg0, i)); - wide_int e1 = wide_int::from_tree (VECTOR_CST_ELT (arg1, i)); + tree e0 = VECTOR_CST_ELT (arg0, i); + tree e1 = VECTOR_CST_ELT (arg1, i); - tmp = e1.neg (&overflow); + tmp = wi::neg (e1, &overflow); overall_overflow |= overall_overflow; - tmp = e0.add (tmp, SIGNED, &overflow); + tmp = wi::add (e0, tmp, SIGNED, &overflow); overall_overflow |= overall_overflow; - if (tmp.neg_p ()) + if (wi::neg_p (tmp)) { - tmp = tmp.neg (&overflow); + tmp = wi::neg (tmp, &overflow); overall_overflow |= overall_overflow; } - result = result.add (tmp, SIGNED, &overflow); + result = wi::add (result, tmp, SIGNED, &overflow); overall_overflow |= overall_overflow; }