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

Cary Coutant ccoutant@google.com
Wed Feb 6 22:32:00 GMT 2013

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

Tested with crosstool-validate.

OK for google/integration?


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

     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);

     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

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

More information about the Gcc-patches mailing list