This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] unbreak bootstrap for disable-checking
- From: Andreas Tobler <toa at pop dot agri dot ch>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>, Jan Hubicka <jh at suse dot cz>
- Date: Sat, 16 Dec 2006 23:02:56 +0100
- Subject: [patch] unbreak bootstrap for disable-checking
Hi all,
this one fixes a bootstrap problem on builds w/o checking enabled.
Ok ?
Thanks,
Andreas
2006-12-16 Andreas Tobler <a.tobler@schweiz.org>
* passes.c (verify_curr_properties): Define only for ENABLE_CHECKING.
Index: passes.c
===================================================================
--- passes.c (revision 119968)
+++ passes.c (working copy)
@@ -849,12 +849,14 @@
/* Helper function. Verify that the properties has been turn into the
properties expected by the pass. */
+#ifdef ENABLE_CHECKING
static void
verify_curr_properties (void *data)
{
unsigned int props = (size_t)data;
gcc_assert ((cfun->curr_properties & props) == props);
}
+#endif
/* After executing the pass, apply expected changes to the function
properties. */