Patchwork [google/integration] Add -gfission and -gmlt options as synonyms

login
register
mail settings
Submitter Cary Coutant
Date Feb. 6, 2013, 10:32 p.m.
Message ID <CAHACq4rKKWetwnRkxuQJ7HfnxNw_ZOVh0Z-CsUoyLngMBPSayA@mail.gmail.com>
Download mbox | patch
Permalink /patch/218785/
State New
Headers show

Comments

Cary Coutant - Feb. 6, 2013, 10:32 p.m.
This patch adds -g[no-]fission as a synonym for -g[no-]split-dwarf,
and modifies the existing stub we have for -gmlt to make it a synonym
for -g1. The implementation of -gsplit-dwarf is already in trunk (and
therefore g/i), and the implementation of -g1 to produce line tables
will be submitted for google/main shortly, and for trunk when Stage 1
reopens.

Tested with crosstool-validate.

OK for google/integration?

-cary
Diego Novillo - Feb. 6, 2013, 10:41 p.m.
On Wed, Feb 6, 2013 at 5:32 PM, Cary Coutant <ccoutant@google.com> wrote:
> This patch adds -g[no-]fission as a synonym for -g[no-]split-dwarf,
> and modifies the existing stub we have for -gmlt to make it a synonym
> for -g1. The implementation of -gsplit-dwarf is already in trunk (and
> therefore g/i), and the implementation of -g1 to produce line tables
> will be submitted for google/main shortly, and for trunk when Stage 1
> reopens.
>
> Tested with crosstool-validate.
>
> OK for google/integration?

OK.


Diego.

Patch

Index: opts.c
===================================================================
--- opts.c (revision 195770)
+++ opts.c (working copy)
@@ -1720,8 +1720,9 @@  common_handle_option (struct gcc_options
       break;

     case OPT_gmlt:
-      /* [google/integration] - Empty placeholder.  Real implementation
- in google/main.  */
+      /* [google/integration] Synonym for -g1.  */
+      set_debug_level (NO_DEBUG, DEFAULT_GDB_EXTENSIONS, "1", opts, opts_set,
+       loc);
       break;

     case OPT_gvms:
Index: common.opt
===================================================================
--- common.opt (revision 195770)
+++ common.opt (working copy)
@@ -2398,6 +2398,12 @@  gsplit-dwarf
 Common Driver RejectNegative Var(dwarf_split_debug_info,1)
 Generate debug information in separate .dwo files

+gfission
+Common Driver Alias(gsplit-dwarf)
+
+gno-fission
+Common Driver Alias(gno-split-dwarf)
+
 gstabs
 Common JoinedOrMissing Negative(gstabs+)
 Generate debug information in STABS format