Force the use of -ggnu-pubnames when using -gsplit-dwarf.

gcc/
	* opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.

From-SVN: r210395
This commit is contained in:
Cary Coutant 2014-05-13 17:55:30 +00:00 committed by Cary Coutant
parent 6626c52e1a
commit bd5c3baaa9
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2014-05-13 Cary Coutant <ccoutant@google.com>
* opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
2014-05-13 David Malcolm <dmalcolm@redhat.com>
* gengtype-parse.c (require3): Eliminate in favor of...

View File

@ -857,9 +857,9 @@ finish_options (struct gcc_options *opts, struct gcc_options *opts_set,
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