From bd5c3baaa9066243a3eb2e584534277878657b20 Mon Sep 17 00:00:00 2001 From: Cary Coutant Date: Tue, 13 May 2014 17:55:30 +0000 Subject: [PATCH] Force the use of -ggnu-pubnames when using -gsplit-dwarf. gcc/ * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf. From-SVN: r210395 --- gcc/ChangeLog | 4 ++++ gcc/opts.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a8a538b5940..3074f9c70be 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2014-05-13 Cary Coutant + + * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf. + 2014-05-13 David Malcolm * gengtype-parse.c (require3): Eliminate in favor of... diff --git a/gcc/opts.c b/gcc/opts.c index f15852d69a0..269cd93ea69 100644 --- a/gcc/opts.c +++ b/gcc/opts.c @@ -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 -- 2.30.2