aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/c-common.h4
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 02a645e..c581edc 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2009-09-10 Richard Henderson <rth@redhat.com>
+
+ * c-common.h (c_dialect_cxx, c_dialect_objc): Boolify.
+
2009-09-10 Hariharan Sandanagobalane <hariharan@picochip.com>
* final.c (shorten_branches) : Ignore DEBUG_INSN_P instructions
diff --git a/gcc/c-common.h b/gcc/c-common.h
index d372e70..9b7905b 100644
--- a/gcc/c-common.h
+++ b/gcc/c-common.h
@@ -360,8 +360,8 @@ c_language_kind;
front end. For "ObjC features" or "not C++" use the macros. */
extern c_language_kind c_language;
-#define c_dialect_cxx() (c_language & clk_cxx)
-#define c_dialect_objc() (c_language & clk_objc)
+#define c_dialect_cxx() ((c_language & clk_cxx) != 0)
+#define c_dialect_objc() ((c_language & clk_objc) != 0)
/* Information about a statement tree. */