From patchwork Mon Sep 9 09:24:06 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Sandiford X-Patchwork-Id: 273534 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "www.sourceware.org", Issuer "StartCom Class 1 Primary Intermediate Server CA" (not verified)) by ozlabs.org (Postfix) with ESMTPS id A56F12C0141 for ; Mon, 9 Sep 2013 19:24:18 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:mime-version:content-type; q=dns; s= default; b=p92GCw8CV0d080MlFFVTKcUEckTJk57hmG6rL7pLo/FPLILsAAtcX nL5anzhzR+44fieBMP/eSOMUS1+4LLJ2tfKJEC4WLjc1aj3SaaSO8AnJQLt8N4fi OJIfNa+s3P/2JiLhyYmJXW7AbNO/SfX6xZ8lmF7pv4oNiXcEE9QP2g= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:mime-version:content-type; s= default; bh=efd4SprtW+uI2mfCM+Db3rsWeLg=; b=fHwvzvs/Do7X5EMow8M5 c0DfQzFIvlDe4gIObUnVyE/WKchjSWsgdROn7AbYcKUUSCdK6XDBPgjwdxQJnihm S8QYsojO/LVHMjcw6Z7zFfLsnYCpN62bZUTw9z+ThiDizagAdHl1CtnGCxg3WRtQ 4HscSG69srVZ2oxKPJs0WBI= Received: (qmail 13642 invoked by alias); 9 Sep 2013 09:24:12 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 13584 invoked by uid 89); 9 Sep 2013 09:24:11 -0000 Received: from mail-we0-f176.google.com (HELO mail-we0-f176.google.com) (74.125.82.176) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 09 Sep 2013 09:24:11 +0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=ALL_TRUSTED, AWL, BAYES_00, FREEMAIL_FROM autolearn=ham version=3.3.2 X-HELO: mail-we0-f176.google.com Received: by mail-we0-f176.google.com with SMTP id u56so4996769wes.21 for ; Mon, 09 Sep 2013 02:24:07 -0700 (PDT) X-Received: by 10.180.75.239 with SMTP id f15mr7737526wiw.42.1378718647895; Mon, 09 Sep 2013 02:24:07 -0700 (PDT) Received: from localhost ([2.26.203.233]) by mx.google.com with ESMTPSA id e5sm16199149wiy.2.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 09 Sep 2013 02:24:07 -0700 (PDT) From: Richard Sandiford To: gcc-patches@gcc.gnu.org Mail-Followup-To: gcc-patches@gcc.gnu.org, rdsandiford@googlemail.com Subject: [committed] Use gen_int_mode instead of GEN_INT+trunc_int_for_mode Date: Mon, 09 Sep 2013 10:24:06 +0100 Message-ID: <87r4cygxft.fsf@talisman.default> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) MIME-Version: 1.0 Bootstrapped & regression-tested on x86_64-linxu-gnu. Applied as obvious. Thanks, Richard gcc/ * asan.c (asan_shadow_cst): Use gen_int_mode. Index: gcc/asan.c =================================================================== --- gcc/asan.c 2013-09-08 16:54:50.485108772 +0100 +++ gcc/asan.c 2013-09-08 16:59:51.380477968 +0100 @@ -869,7 +869,7 @@ asan_shadow_cst (unsigned char shadow_by for (i = 0; i < 4; i++) val |= (unsigned HOST_WIDE_INT) shadow_bytes[BYTES_BIG_ENDIAN ? 3 - i : i] << (BITS_PER_UNIT * i); - return GEN_INT (trunc_int_for_mode (val, SImode)); + return gen_int_mode (val, SImode); } /* Clear shadow memory at SHADOW_MEM, LEN bytes. Can't call a library call here