diff mbox

fix darwin bootstrap by avoiding duplicate DIE attributes

Message ID 557AE21C.9050902@redhat.com
State New
Headers show

Commit Message

Aldy Hernandez June 12, 2015, 1:43 p.m. UTC
On 06/12/2015 12:22 AM, Andreas Schwab wrote:
> ../../gcc/dwarf2out.c:5693:1: error: 'void check_die(dw_die_ref)' defined but not used [-Werror=unused-function]
>
> Andreas.
>

Committed as obvious.
commit 76da2378b15ad786e8c2c64ddd8b39c132947738
Author: Aldy Hernandez <aldyh@redhat.com>
Date:   Fri Jun 12 06:42:08 2015 -0700

    	* dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
diff mbox

Patch

diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 92fa340..d2c516a 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -5687,6 +5687,7 @@  debug_dwarf (void)
   print_die (comp_unit_die (), stderr);
 }
 
+#ifdef ENABLE_CHECKING
 /* Sanity checks on DIEs.  */
 
 static void
@@ -5749,6 +5750,7 @@  check_die (dw_die_ref die)
 		    && a->dw_attr != DW_AT_GNU_all_call_sites);
     }
 }
+#endif
 
 /* Start a new compilation unit DIE for an include file.  OLD_UNIT is the CU
    for the enclosing include file, if any.  BINCL_DIE is the DW_TAG_GNU_BINCL