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  <ebotca...@adacore.com>

        * 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.

-- 
Eric Botcazou
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

Reply via email to