* c-cppbuiltin.c (c_cpp_builtins): Define __EXCEPTIONS for C also.
authorRichard Henderson <rth@redhat.com>
Sat, 7 Jun 2003 22:18:13 +0000 (15:18 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Sat, 7 Jun 2003 22:18:13 +0000 (15:18 -0700)
From-SVN: r67605

gcc/ChangeLog
gcc/c-cppbuiltin.c

index 14a02ea..2446011 100644 (file)
@@ -1,5 +1,9 @@
 2003-06-07  Richard Henderson  <rth@redhat.com>
 
+        * c-cppbuiltin.c (c_cpp_builtins): Define __EXCEPTIONS for C also.
+
+2003-06-07  Richard Henderson  <rth@redhat.com>
+
        * basic-block.h (EDGE_SIBCALL): New.
        (EDGE_ALL_FLAGS): Update.
        * cfg.c (dump_edge_info): Add sibcall name.
index c97ced3..3679f86 100644 (file)
@@ -307,11 +307,11 @@ c_cpp_builtins (pfile)
        cpp_define (pfile, "__GXX_WEAK__=1");
       else
        cpp_define (pfile, "__GXX_WEAK__=0");
-      if (flag_exceptions)
-       cpp_define (pfile, "__EXCEPTIONS");
       if (warn_deprecated)
        cpp_define (pfile, "__DEPRECATED");
     }
+  if (flag_exceptions)
+    cpp_define (pfile, "__EXCEPTIONS");
 
   /* represents the C++ ABI version, always defined so it can be used while
      preprocessing C and assembler.  */