aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraphunit.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2004-09-09 15:58:21 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2004-09-09 15:58:21 +0000
commit1a2caa7a8018a5f0c3b1df9710ec2baad90c24db (patch)
treec4ffa2ad3dad1e3ec528b5e2c71f6e4281357d6b /gcc/cgraphunit.c
parent282899df0fb5881ddaf70814d095286221d6019e (diff)
downloadgcc-1a2caa7a8018a5f0c3b1df9710ec2baad90c24db.zip
gcc-1a2caa7a8018a5f0c3b1df9710ec2baad90c24db.tar.gz
gcc-1a2caa7a8018a5f0c3b1df9710ec2baad90c24db.tar.bz2
cgraphunit.c (cgraph_mark_functions_to_output): Renable node dumping for development builds.
* cgraphunit.c (cgraph_mark_functions_to_output): Renable node dumping for development builds. * emit-rtl.c (verify_rtx_sharing): Give verbose failure for development builds only. * genattrtab.c (write_eligible_delay): Fix typo in previous commit. * tree.c (iterative_hash_expr): Replace gcc_unreachable with gcc_assert. From-SVN: r87241
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r--gcc/cgraphunit.c18
1 files changed, 15 insertions, 3 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index 81df309..d0048a8 100644
--- a/gcc/cgraphunit.c
+++ b/gcc/cgraphunit.c
@@ -776,9 +776,21 @@ cgraph_mark_functions_to_output (void)
&& !DECL_EXTERNAL (decl))
node->output = 1;
else
- /* We should've reclaimed all functions that are not needed. */
- gcc_assert (node->global.inlined_to || !DECL_SAVED_TREE (decl)
- || DECL_EXTERNAL (decl));
+ {
+ /* We should've reclaimed all functions that are not needed. */
+#ifdef ENABLE_CHECKING
+ if (!node->global.inlined_to && DECL_SAVED_TREE (decl)
+ && !DECL_EXTERNAL (decl))
+ {
+ dump_cgraph_node (stderr, node);
+ internal_error ("failed to reclaim unneeded function");
+ }
+#endif
+ gcc_assert (node->global.inlined_to || !DECL_SAVED_TREE (decl)
+ || DECL_EXTERNAL (decl));
+
+ }
+
}
}