From patchwork Wed Jan 31 09:22:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rainer Orth X-Patchwork-Id: 867869 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-472348-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="b12yvsVV"; dkim-atps=neutral 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 3zWd8M6hv1z9ryT for ; Wed, 31 Jan 2018 20:23:15 +1100 (AEDT) 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:cc:subject:date:message-id:mime-version:content-type; q=dns; s=default; b=xiDcX3bZAApsEOnxh4kZB5P5HsTL8VIE9zyGmZKdoVE5zJ5irh FrwfMJ2yanKwqNu3sZvqeiZHjS/T1UhmcXTiepDxSAXUS1w/wgqb7QfVYWBQPtD4 tGUasCakqWxC9sUUiDpe1c59qpDaY0kkkuh107sAkhtCk2WQuNsS77/a8= 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:cc:subject:date:message-id:mime-version:content-type; s= default; bh=Avwl/4NRIUFKt1Dgz7mTA23bCVU=; b=b12yvsVVdooD8TjSSako GLjgBx5TQV/iN/+pSVLKqMzFrKDuzyQxW+P2apnrwc12jDyypN5IUV5Ca3+niZqV CjRr/mel/fZCDTowLc9O21j/Dt0QZqZXCw65aXk9MmvnOSDxeskWDeW7J+JGz3TZ fpksUWphMLpD89VfBkZNizM= Received: (qmail 110239 invoked by alias); 31 Jan 2018 09:23:08 -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 110151 invoked by uid 89); 31 Jan 2018 09:22:56 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-19.8 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy= X-HELO: smtp.CeBiTec.Uni-Bielefeld.DE Received: from smtp.CeBiTec.Uni-Bielefeld.DE (HELO smtp.CeBiTec.Uni-Bielefeld.DE) (129.70.160.84) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 31 Jan 2018 09:22:50 +0000 Received: from localhost (localhost.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 399A64CD; Wed, 31 Jan 2018 10:22:33 +0100 (CET) Received: from smtp.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (malfoy.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) (amavisd-new, port 10024) with LMTP id SG73Sxa45iAW; Wed, 31 Jan 2018 10:22:31 +0100 (CET) Received: from lokon.CeBiTec.Uni-Bielefeld.DE (lokon.CeBiTec.Uni-Bielefeld.DE [129.70.161.152]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPS id 1C1C14CC; Wed, 31 Jan 2018 10:22:30 +0100 (CET) Received: (from ro@localhost) by lokon.CeBiTec.Uni-Bielefeld.DE (8.15.2+Sun/8.15.2/Submit) id w0V9MNsu006706; Wed, 31 Jan 2018 10:22:23 +0100 (MET) From: Rainer Orth To: gcc-patches@gcc.gnu.org Cc: David Malcolm Subject: Avoid cc1 SEGV in gcc.dg/rtl/x86_64/final.c (PR target/79975) Date: Wed, 31 Jan 2018 10:22:23 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (usg-unix-v) MIME-Version: 1.0 X-IsSubscribed: yes As described in the PR, cc1 SEGVs compiling gcc.dg/rtl/x86_64/final.c on targets that default to -fno-dwarf2-cfi-asm. However, the test is compile-only, so doesn't depend on the toolchain's support for cfi directives. Besides, it scans the output for those, so depends on -fdwarf2-cfi-asm anyway, so I'm adding it explicitly. Tested with the appropriate runtest invocation on i386-pc-solaris2.11 with as (-fno-dwarf2-cfi-asm default), gas (-fdwarf2-cfi-asm default), and x86_64-pc-linux-gnu. Ok for mainline and gcc-7 branch? Rainer # HG changeset patch # Parent 0ad00b4e31e7baacada8d0f469c7e045f49a41ea Avoid cc1 SEGV in gcc.dg/rtl/x86_64/final.c (PR target/79975) diff --git a/gcc/testsuite/gcc.dg/rtl/x86_64/final.c b/gcc/testsuite/gcc.dg/rtl/x86_64/final.c --- a/gcc/testsuite/gcc.dg/rtl/x86_64/final.c +++ b/gcc/testsuite/gcc.dg/rtl/x86_64/final.c @@ -1,5 +1,5 @@ /* { dg-do compile { target { { i?86-*-* x86_64-*-* } && lp64 } } } */ -/* { dg-options "-fdump-rtl-final" } */ +/* { dg-options "-fdwarf2-cfi-asm -fdump-rtl-final" } */ /* Lightly-modified dump of test.c.304r.dwarf2 for x86_64 target, with various NOTE_INSN_CFI deleted by hand for now. */