Message ID | 201207071230.q67CU9hN026246@d06av02.portsmouth.uk.ibm.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <patch+caf_=linaro-patchwork=canonical.com@linaro.org> X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 04FD423F2A for <patchwork@peony.canonical.com>; Sat, 7 Jul 2012 12:30:18 +0000 (UTC) Received: from mail-gh0-f180.google.com (mail-gh0-f180.google.com [209.85.160.180]) by fiordland.canonical.com (Postfix) with ESMTP id BB567A188A6 for <linaro-patchwork@canonical.com>; Sat, 7 Jul 2012 12:30:17 +0000 (UTC) Received: by ghbz12 with SMTP id z12so9953099ghb.11 for <linaro-patchwork@canonical.com>; Sat, 07 Jul 2012 05:30:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:message-id :subject:to:date:from:x-mailer:mime-version:content-type :content-transfer-encoding:x-cbid:x-gm-message-state; bh=c+FJxzqb6K+k376dY1pPMaxLFJ+svFgWF2kQnws0BRo=; b=YiUk/sJAhx0/DFm+cyjKQRaFBGT+S/ea2Sp5MKuwXSkHS/lX00X1m39HNT+uVSyXBb Eydkk/1X2JxPDU4VV22nzuULcTR3Ht0ezJPAOuO7ewwz/E2AndAE3q1S9QCSDkW0nuL0 yLFcLJFPT6r2GkH4MPczPk6XbrhozxE75ikoXtuLeLfhsi9A+YPGvvuA5FTR+TOCsbjF jdxugpLnShk8G4BHNWBQ0lG1f8+foi92jbmAk1ygypd53TAyXp/Zr8OUVbQsXxXYrWqs R4AC4GivzE7OdJY0N6PPEnaZsowkXonHhX3nPWCdx5dRbFwWc31HMbubrTHFhjQT5nA9 gmyQ== Received: by 10.42.155.73 with SMTP id t9mr17248863icw.48.1341664216688; Sat, 07 Jul 2012 05:30:16 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.24.148 with SMTP id v20csp21138ibb; Sat, 7 Jul 2012 05:30:15 -0700 (PDT) Received: by 10.180.104.200 with SMTP id gg8mr15222183wib.14.1341664215309; Sat, 07 Jul 2012 05:30:15 -0700 (PDT) Received: from e06smtp15.uk.ibm.com (e06smtp15.uk.ibm.com. [195.75.94.111]) by mx.google.com with ESMTPS id e56si18167091wef.68.2012.07.07.05.30.14 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 07 Jul 2012 05:30:15 -0700 (PDT) Received-SPF: pass (google.com: domain of uweigand@de.ibm.com designates 195.75.94.111 as permitted sender) client-ip=195.75.94.111; Authentication-Results: mx.google.com; spf=pass (google.com: domain of uweigand@de.ibm.com designates 195.75.94.111 as permitted sender) smtp.mail=uweigand@de.ibm.com Received: from /spool/local by e06smtp15.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for <patches@linaro.org> from <uweigand@de.ibm.com>; Sat, 7 Jul 2012 13:30:13 +0100 Received: from d06nrmr1307.portsmouth.uk.ibm.com (9.149.38.129) by e06smtp15.uk.ibm.com (192.168.101.145) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Sat, 7 Jul 2012 13:30:11 +0100 Received: from d06av02.portsmouth.uk.ibm.com (d06av02.portsmouth.uk.ibm.com [9.149.37.228]) by d06nrmr1307.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q67CUBFS2523178 for <patches@linaro.org>; Sat, 7 Jul 2012 13:30:11 +0100 Received: from d06av02.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q67CUAnF026261 for <patches@linaro.org>; Sat, 7 Jul 2012 06:30:10 -0600 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with SMTP id q67CU9hN026246 for <patches@linaro.org>; Sat, 7 Jul 2012 06:30:09 -0600 Message-Id: <201207071230.q67CU9hN026246@d06av02.portsmouth.uk.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Sat, 07 Jul 2012 14:30:09 +0200 Subject: [PATCH] Fix undefined behaviour in combine.c:force_to_mode To: patches@linaro.org Date: Sat, 7 Jul 2012 14:30:09 +0200 (CEST) From: "Ulrich Weigand" <uweigand@de.ibm.com> X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit x-cbid: 12070712-0342-0000-0000-00000237E83E X-Gm-Message-State: ALoCoQmqv0Ys3IUK//0kJZdCxBO44aYgpczkXUiw6bNDJa/06eagj7I4vwczABfzKF9blqZjWo8q |
=== modified file 'gcc/combine.c' --- gcc/combine.c 2012-02-22 12:22:43 +0000 +++ gcc/combine.c 2012-07-03 19:46:18 +0000 @@ -8432,6 +8432,7 @@ in OP_MODE. */ if (CONST_INT_P (XEXP (x, 1)) + && INTVAL (XEXP (x, 1)) >= 0 && INTVAL (XEXP (x, 1)) < HOST_BITS_PER_WIDE_INT && HWI_COMPUTABLE_MODE_P (op_mode)) {