From patchwork Fri Feb 17 13:35:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Biener X-Patchwork-Id: 729178 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 3vPvDm162Fz9s7w for ; Sat, 18 Feb 2017 00:36:07 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="GtZ/OqsS"; 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:date :from:to:subject:message-id:mime-version:content-type; q=dns; s= default; b=YPllRwBJ1pNiFFiNRwXqti0xLiQzN4pYQZtrjRb7ysmC7Dz35gMPC H7z8oAOvGh00b2GfK2mg+4m+NP8iDY+n2BFnOECtbZuuJWiJITNZ97yWOWwUiICw ZtvzPtwiYdZz6zJbXjihuW7oGByTLeTAJ/ElIzDLEDvzjZeoQ8LadU= 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:date :from:to:subject:message-id:mime-version:content-type; s= default; bh=IDvMoJCxk3f3RUb9O58OJwUYfFI=; b=GtZ/OqsS/ycxrmI7veJS QEI6YeVVBDTeTA8suN5igaaCVDwuuWNJggihdStUhpWECcxv+E/GDSZ5Tb8fG6Cn Y4xJdLoYCksEv+9HQ6FaRykzQzCaXi4TfBD0w09JjTkkxITvBIKI5hVbjDrVIMEg TuPyKZpXedm8Ei6cql4eN+M= Received: (qmail 40535 invoked by alias); 17 Feb 2017 13:35:56 -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 40506 invoked by uid 89); 17 Feb 2017 13:35:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.9 required=5.0 tests=BAYES_00, GIT_PATCH_2, GIT_PATCH_3, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=Limit, highly X-HELO: mx2.suse.de Received: from mx2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 17 Feb 2017 13:35:45 +0000 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id A1770AAB2 for ; Fri, 17 Feb 2017 13:35:42 +0000 (UTC) Date: Fri, 17 Feb 2017 14:35:42 +0100 (CET) From: Richard Biener To: gcc-patches@gcc.gnu.org Subject: [PATCH] Fix PR79576 Message-ID: User-Agent: Alpine 2.20 (LSU 67 2015-01-07) MIME-Version: 1.0 The following fixes too deep recursion with insane --param max-ssa-name-query-depth by limiting the param appropriately. Given the search is not width limited it can be highly exponential in complexity thus I limited it fairly low (10). Committed as obvious. Richard. 2017-02-17 Richard Biener PR middle-end/79576 * params.def (max-ssa-name-query-depth): Limit to 10. Index: gcc/params.def =================================================================== --- gcc/params.def (revision 245501) +++ gcc/params.def (working copy) @@ -1237,7 +1237,7 @@ DEFPARAM (PARAM_MAX_SSA_NAME_QUERY_DEPTH "max-ssa-name-query-depth", "Maximum recursion depth allowed when querying a property of an" " SSA name.", - 3, 1, 0) + 3, 1, 10) DEFPARAM (PARAM_MAX_RTL_IF_CONVERSION_INSNS, "max-rtl-if-conversion-insns",