From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4342 invoked by alias); 9 May 2014 12:29:18 -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 4327 invoked by uid 89); 9 May 2014 12:29:17 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-HELO: mail-qa0-f52.google.com Received: from mail-qa0-f52.google.com (HELO mail-qa0-f52.google.com) (209.85.216.52) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 09 May 2014 12:29:16 +0000 Received: by mail-qa0-f52.google.com with SMTP id cm18so4004817qab.39 for ; Fri, 09 May 2014 05:29:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:content-type; bh=wE8XDmEr4E6eQFcGj9oZ5VBAdwCqMwZqvETuEVfPWYw=; b=kT3wXOKgebA3gii2myK8GE5fOXX9Sfa7RN29ZLUAJiuhUmhPVj5yUq/24Aij+VYjid eNMUX341f6WBeWmO81vvsbR6m9GIjDCJmrhevUEgWvkDgrKT6UQbwAG3VJjfemOO37xO msQp6sU0wM6DOJzHDNKse96/TYjRJgVCp0/XJ+uQGlQAnSSWKAwC079innURPdtQJLxM 3JCj9Txdqb+g8jfJ8ycYTQYCTPHTX2P6CtJ9QqvLEFzi5goVFN/f8Ch3KjHwR2119yJ5 AKsEy5bM/CACC61H+vgVQE/mqpSy5UFSeJ+iJpyRXMnA6EymyLkGDoAnu0tK3uGJnaNm Buxg== X-Gm-Message-State: ALoCoQmW/eLs9v9TZlyzzTq3rhFohrFsno4vIOm7JMl8aNU3s6w34lZE+D+TovUJVJe3yDgC7i2N X-Received: by 10.140.51.172 with SMTP id u41mr13233109qga.69.1399638554236; Fri, 09 May 2014 05:29:14 -0700 (PDT) Received: from [192.168.1.10] (pool-98-113-157-168.nycmny.fios.verizon.net. [98.113.157.168]) by mx.google.com with ESMTPSA id d89sm3948055qga.2.2014.05.09.05.29.13 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 09 May 2014 05:29:13 -0700 (PDT) Message-ID: <536CCA19.9010502@naturalbridge.com> Date: Fri, 09 May 2014 12:29:00 -0000 From: Kenneth Zadeck User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: gcc-patches Subject: [PATCH]: fix pr61111 Fixed width of mask. Content-Type: multipart/mixed; boundary="------------010709000704060709030102" X-SW-Source: 2014-05/txt/msg00591.txt.bz2 This is a multi-part message in MIME format. --------------010709000704060709030102 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 182 2014-05-09 Kenneth Zadeck PR middle-end/61111 * fold-const.c (fold_binary_loc): Changed width of mask. committed as revision 210274. kenny --------------010709000704060709030102 Content-Type: text/x-patch; name="w.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="w.diff" Content-length: 513 Index: gcc/fold-const.c =================================================================== --- gcc/fold-const.c (revision 210253) +++ gcc/fold-const.c (working copy) @@ -11358,7 +11358,7 @@ fold_binary_loc (location_t loc, wide_int c3 = c1.and_not (c2); for (w = BITS_PER_UNIT; w <= width; w <<= 1) { - wide_int mask = wi::mask (width - w, false, + wide_int mask = wi::mask (w, false, TYPE_PRECISION (type)); if (((c1 | c2) & mask) == mask && c1.and_not (mask) == 0) { --------------010709000704060709030102--