diff options
author | Richard Henderson <rth@redhat.com> | 2009-09-10 11:01:15 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2009-09-10 11:01:15 -0700 |
commit | 15a15e8dc42b58e92b64924e8c15adceaff9a5ae (patch) | |
tree | 0e4aed5fcd7fb30361333e32d6325a4658355b59 | |
parent | f90f4827aa0ddf3d1a70321ed08e2d2598faacc2 (diff) | |
download | gcc-15a15e8dc42b58e92b64924e8c15adceaff9a5ae.zip gcc-15a15e8dc42b58e92b64924e8c15adceaff9a5ae.tar.gz gcc-15a15e8dc42b58e92b64924e8c15adceaff9a5ae.tar.bz2 |
* c-common.h (c_dialect_cxx, c_dialect_objc): Boolify.
From-SVN: r151601
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/c-common.h | 4 |
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. */ |