From patchwork Fri Oct 14 17:57:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Botcazou X-Patchwork-Id: 682388 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 3swb1W1rYlz9s9c for ; Sat, 15 Oct 2016 04:58:22 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=bEUy9ooJ; 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:from :to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=WfhfmWT6WeX1jCt5 KM9Lw/V9vg03Iv3xBZxGQVO9Oc/yqQRnfmgUD56Nj3TvyGgs78GW291euwrCUG7Y KApjix78akNiywi3GO1FJzKFDMFWFaMEcXbVxtf8sXo1WCL8Saj0MMal+Lm4bQRH 0FBRZ2h4nEGhCI4Zf+YHprV3Q8U= 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 :content-transfer-encoding; s=default; bh=UvYCMZb5+bVOq2H5MBEXnZ jPKQw=; b=bEUy9ooJ3afa6fp3z9Ebp7j9bU0NVaGhMhtgkthlEf6jhc2/d0C1UT WrLcgYocGEm1onJ42DW0wnd2L+SdiqHdmjQX2tbc/2AYYVSbJA811ylBOxoy2WsP UC6kjG2PAd3kuOcgF+g/u+t9u4NJBLvxsrDY8TcLWvxs5B6VjL18c= Received: (qmail 72469 invoked by alias); 14 Oct 2016 17:58:14 -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 72459 invoked by uid 89); 14 Oct 2016 17:58:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.0 required=5.0 tests=AWL, BAYES_00, KAM_ASCII_DIVIDERS, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=no version=3.3.2 spammy=Small, 77, 7, 7, adb X-HELO: smtp.eu.adacore.com Received: from mel.act-europe.fr (HELO smtp.eu.adacore.com) (194.98.77.210) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 14 Oct 2016 17:58:04 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id E1F70812E7 for ; Fri, 14 Oct 2016 19:58:01 +0200 (CEST) Received: from smtp.eu.adacore.com ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LIW1dxZbJlui for ; Fri, 14 Oct 2016 19:58:01 +0200 (CEST) Received: from polaris.localnet (bon31-6-88-161-99-133.fbx.proxad.net [88.161.99.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.eu.adacore.com (Postfix) with ESMTPSA id BD9A9812E3 for ; Fri, 14 Oct 2016 19:58:00 +0200 (CEST) From: Eric Botcazou To: gcc-patches@gcc.gnu.org Subject: [testsuite] Small tweaks to gnat.dg/debug[789].adb Date: Fri, 14 Oct 2016 19:57:51 +0200 Message-ID: <2677222.f8Ea1NvrK1@polaris> User-Agent: KMail/4.14.10 (Linux/3.16.7-42-desktop; KDE/4.14.9; x86_64; ; ) MIME-Version: 1.0 This removes redundant switches, reorders them and adds missing final -margs. Tested on x86_64-suse-linux and SPARC/Solaris, applied on the mainline. 2016-10-14 Eric Botcazou * gnat.dg/debug7.adb (dg-options): Remove -g. * gnat.dg/debug8.adb (dg-options): Add -margs. * gnat.dg/debug9.adb (dg-options): Remove -g and add -margs. Index: gnat.dg/debug7.adb =================================================================== --- gnat.dg/debug7.adb (revision 241147) +++ gnat.dg/debug7.adb (working copy) @@ -1,5 +1,5 @@ -- { dg-do compile } --- { dg-options "-cargs -g -gdwarf-2 -gstrict-dwarf -dA -margs" } +-- { dg-options "-cargs -gdwarf-2 -gstrict-dwarf -dA -margs" } -- { dg-final { scan-assembler "DW_TAG_imported_decl" } } package body Debug7 is Index: gnat.dg/debug8.adb =================================================================== --- gnat.dg/debug8.adb (revision 241147) +++ gnat.dg/debug8.adb (working copy) @@ -1,5 +1,5 @@ -- { dg-do compile } --- { dg-options "-cargs -g -fgnat-encodings=minimal -dA" } +-- { dg-options "-cargs -g -fgnat-encodings=minimal -dA -margs" } -- { dg-final { scan-assembler-not "DW_OP_const4u" } } -- { dg-final { scan-assembler-not "DW_OP_const8u" } } Index: gnat.dg/debug9.adb =================================================================== --- gnat.dg/debug9.adb (revision 241147) +++ gnat.dg/debug9.adb (working copy) @@ -7,7 +7,7 @@ -- some hackish way to check that types are output in the proper context (i.e. -- at global or local scope). -- --- { dg-options "-g -gdwarf-4 -cargs -fdebug-types-section -dA" } +-- { dg-options "-cargs -gdwarf-4 -fdebug-types-section -dA -margs" } -- { dg-final { scan-assembler-times "\\(DIE \\(0x\[a-f0-9\]*\\) DW_TAG_type_unit\\)" 0 } } procedure Debug9 is