diff mbox

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

Message ID CAHACq4rKKWetwnRkxuQJ7HfnxNw_ZOVh0Z-CsUoyLngMBPSayA@mail.gmail.com
State New
Headers show

Commit Message

Cary Coutant Feb. 6, 2013, 10:32 p.m. UTC
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

Comments

Diego Novillo Feb. 6, 2013, 10:41 p.m. UTC | #1
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.
diff mbox

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