aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2015-06-12 13:44:15 +0000
committerAldy Hernandez <aldyh@gcc.gnu.org>2015-06-12 13:44:15 +0000
commitdf649a1c7e07d2b521922aead88d7a1477252762 (patch)
tree95ae80323237812767b399e1ab5694a43989207a
parentd8204b12f67e69835e793d6700b09bf7e1a474a8 (diff)
downloadgcc-df649a1c7e07d2b521922aead88d7a1477252762.zip
gcc-df649a1c7e07d2b521922aead88d7a1477252762.tar.gz
gcc-df649a1c7e07d2b521922aead88d7a1477252762.tar.bz2
* dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
From-SVN: r224431
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/dwarf2out.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index efa166a..052dac2 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
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