* dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
authorAldy Hernandez <aldyh@redhat.com>
Fri, 12 Jun 2015 13:44:15 +0000 (13:44 +0000)
committerAldy Hernandez <aldyh@gcc.gnu.org>
Fri, 12 Jun 2015 13:44:15 +0000 (13:44 +0000)
From-SVN: r224431

gcc/ChangeLog
gcc/dwarf2out.c

index efa166a..052dac2 100644 (file)
@@ -1,3 +1,7 @@
+2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
+
+       * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
+
 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
 
        * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
index 92fa340..d2c516a 100644 (file)
@@ -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
 \f
 /* 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