This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH 4/4] Poison ENABLE_CHECKING macro
- From: marxin <mliska at suse dot cz>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 25 Feb 2016 11:11:11 +0100
- Subject: [PATCH 4/4] Poison ENABLE_CHECKING macro
- Authentication-results: sourceware.org; auth=none
- References: <cover dot 1456409352 dot git dot mliska at suse dot cz>
- Resent-user-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1
gcc/ChangeLog:
2016-02-25 Martin Liska <mliska@suse.cz>
* system.h: Poison ENABLE_CHECKING macro.
---
gcc/system.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/gcc/system.h b/gcc/system.h
index 445073c..cb54541 100644
--- a/gcc/system.h
+++ b/gcc/system.h
@@ -1014,6 +1014,10 @@ extern void fancy_abort (const char *, int, const char *) ATTRIBUTE_NORETURN;
#undef rindex
#pragma GCC poison bcopy bzero bcmp rindex
+/* Poison ENABLE_CHECKING macro that should be replaced with
+ 'if (flag_checking)', or with CHECKING_P macro. */
+#pragma GCC poison ENABLE_CHECKING
+
#endif /* GCC >= 3.0 */
/* This macro allows casting away const-ness to pass -Wcast-qual
--
2.7.0