* 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 14a02eade2591a22ef9f7939ddee9e3b2c45ed61..2446011e1587e6f815b31179a7e7c581c1b7eef9 100644 (file)
@@ -1,3 +1,7 @@
+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.
index c97ced3caef06e39758fa1f85f3f57eae7fe0c76..3679f869d04b33c85ce820de53888cb4a4ef4430 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.  */