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