Poison ENABLE_CHECKING macro
authorMartin Liska <mliska@suse.cz>
Mon, 29 Feb 2016 15:40:20 +0000 (16:40 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Mon, 29 Feb 2016 15:40:20 +0000 (15:40 +0000)
* system.h: Poison ENABLE_CHECKING macro.

From-SVN: r233817

gcc/ChangeLog
gcc/system.h

index 9c7e149..966e06d 100644 (file)
 
 2016-02-29  Martin Liska  <mliska@suse.cz>
 
+       * system.h: Poison ENABLE_CHECKING macro.
+
+2016-02-29  Martin Liska  <mliska@suse.cz>
+
        * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
        is presented in dump flags.
        * hsa-regalloc.c (linear_scan_regalloc): Likewise.
index 445073c..cb54541 100644 (file)
@@ -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