Force the use of -ggnu-pubnames when using -gsplit-dwarf.
authorccoutant <ccoutant@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 13 May 2014 17:55:30 +0000 (17:55 +0000)
committerccoutant <ccoutant@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 13 May 2014 17:55:30 +0000 (17:55 +0000)
gcc/
* opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@210395 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/opts.c

index a8a538b..3074f9c 100644 (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...
index f15852d..269cd93 100644 (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