From patchwork Tue Oct 6 16:48:15 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Sidwell X-Patchwork-Id: 526830 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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id D4E31140D72 for ; Wed, 7 Oct 2015 03:48:30 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=shsOWTGv; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to:cc :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=vsmffKRdgNoowlsm1b7FdajBJB4I22U519tjKBDCkgisl9zPaP jOrZA/7l0Rdh9pJN2x0I+9C4jIyv11VIpLol32kfUIg7EQDEQH0ut7a73cp+tkqr sn1HVXGI00OjIdqNiu+4fKoyrCqXHbsOTZXXlqrTaAkEZXAI0gYGIl/70= 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:to:cc :from:subject:message-id:date:mime-version:content-type; s= default; bh=aWwusl2TKhP4C+AoaYhmQuCPJRE=; b=shsOWTGvIOnpTA54SNGF wzOk+rtQUfgiB4lTyEecIETdyI0USPCLN0Fefk4Snvhd/jee3Ags+rHrdYUxIpRW M6VIdWl4wRBSIXrWm5+KjFNfmSG9tYl+VVeGy/P3iHHOez4b8gBYcCCe8/NMUnM7 ZsS/eMdxHXTIjsMTfJvp1Zg= Received: (qmail 130985 invoked by alias); 6 Oct 2015 16:48:21 -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 130976 invoked by uid 89); 6 Oct 2015 16:48:20 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-qg0-f43.google.com Received: from mail-qg0-f43.google.com (HELO mail-qg0-f43.google.com) (209.85.192.43) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Tue, 06 Oct 2015 16:48:19 +0000 Received: by qgez77 with SMTP id z77so180129739qge.1 for ; Tue, 06 Oct 2015 09:48:17 -0700 (PDT) X-Received: by 10.140.152.85 with SMTP id 82mr52302052qhy.8.1444150097023; Tue, 06 Oct 2015 09:48:17 -0700 (PDT) Received: from ?IPv6:2601:181:c000:c497:a2a8:cdff:fe3e:b48? ([2601:181:c000:c497:a2a8:cdff:fe3e:b48]) by smtp.googlemail.com with ESMTPSA id z19sm14227662qge.38.2015.10.06.09.48.16 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Oct 2015 09:48:16 -0700 (PDT) To: GCC Patches Cc: segher@kernel.crashing.org From: Nathan Sidwell Subject: [PR 67861] fix printf_chk folding Message-ID: <5613FB4F.6050609@acm.org> Date: Tue, 6 Oct 2015 12:48:15 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 I've committed this obvious fix. Sorry for the breakage. nathan 2015-10-06 Nathan Sidwell PR 67861 * gimple-fold.c (gimple_fold_builtin): Add break after BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding. Index: gimple-fold.c =================================================================== --- gimple-fold.c (revision 228535) +++ gimple-fold.c (working copy) @@ -2890,6 +2890,7 @@ gimple_fold_builtin (gimple_stmt_iterato n == 3 ? gimple_call_arg (stmt, 2) : NULL_TREE, fcode); + break; case BUILT_IN_ACC_ON_DEVICE: return gimple_fold_builtin_acc_on_device (gsi, gimple_call_arg (stmt, 0));