OSDN Git Service

PR debug/48041
authormark <mark@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 25 Mar 2011 09:35:41 +0000 (09:35 +0000)
committermark <mark@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 25 Mar 2011 09:35:41 +0000 (09:35 +0000)
* dwarf2out.c (output_abbrev_section): Only write table when
abbrev_die_table_in_use > 1.

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

gcc/ChangeLog
gcc/dwarf2out.c

index 0ba4304..05877e1 100644 (file)
@@ -1,3 +1,9 @@
+2011-03-24  Mark Wielaard  <mjw@redhat.com>
+
+       PR debug/48041
+       * dwarf2out.c (output_abbrev_section): Only write table when
+       abbrev_die_table_in_use > 1.
+
 2011-02-24  Richard Henderson  <rth@redhat.com>
 
        * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
index aa6f6b6..06dcf9c 100644 (file)
@@ -11056,6 +11056,9 @@ output_abbrev_section (void)
 {
   unsigned long abbrev_id;
 
+  if (abbrev_die_table_in_use == 1)
+    return;
+
   for (abbrev_id = 1; abbrev_id < abbrev_die_table_in_use; ++abbrev_id)
     {
       dw_die_ref abbrev = abbrev_die_table[abbrev_id];