aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2014-05-13 17:55:30 +0000
committerCary Coutant <ccoutant@gcc.gnu.org>2014-05-13 10:55:30 -0700
commitbd5c3baaa9066243a3eb2e584534277878657b20 (patch)
tree747d81aec74f546593c67ffb9c02bee8e49ad8e4
parent6626c52e1a6af7b32200ec1bf22fc790e5717480 (diff)
downloadgcc-bd5c3baaa9066243a3eb2e584534277878657b20.zip
gcc-bd5c3baaa9066243a3eb2e584534277878657b20.tar.gz
gcc-bd5c3baaa9066243a3eb2e584534277878657b20.tar.bz2
Force the use of -ggnu-pubnames when using -gsplit-dwarf.
gcc/ * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf. From-SVN: r210395
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/opts.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a8a538b..3074f9c 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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...
diff --git a/gcc/opts.c b/gcc/opts.c
index f15852d..269cd93 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