This patch forces the use of -ggnu-pubnames when using -gsplit-dwarf. This is necessary so that the gold linker can generate .gdb_index version 7.
No new regressions. Committed as trivial (has no effect if you're not using -gsplit-dwarf). -cary 2014-05-13 Cary Coutant <ccout...@google.com> gcc/ * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf. Index: opts.c =================================================================== --- opts.c (revision 210389) +++ opts.c (working copy) @@ -857,9 +857,9 @@ finish_options (struct gcc_options *opts maybe_set_param_value (PARAM_MAX_STORES_TO_SINK, 0, opts->x_param_values, opts_set->x_param_values); - /* The -gsplit-dwarf option requires -gpubnames. */ + /* The -gsplit-dwarf option requires -ggnu-pubnames. */ if (opts->x_dwarf_split_debug_info) - opts->x_debug_generate_pub_sections = 1; + opts->x_debug_generate_pub_sections = 2; } #define LEFT_COLUMN 27