]> gcc.gnu.org Git - gcc.git/commitdiff
Missed bit of previous commit.
authorDJ Delorie <dj@gcc.gnu.org>
Tue, 14 Oct 2014 20:01:39 +0000 (16:01 -0400)
committerDJ Delorie <dj@gcc.gnu.org>
Tue, 14 Oct 2014 20:01:39 +0000 (16:01 -0400)
From-SVN: r216221

gcc/c-family/c-cppbuiltin.c

index aa61b7eb5183ffaff1c95891015e91f785c2aae9..c0fcde7604977f9040c6f6446e3caf8f00545e66 100644 (file)
@@ -891,22 +891,23 @@ c_cpp_builtins (cpp_reader *pfile)
   builtin_define_type_max ("__PTRDIFF_MAX__", ptrdiff_type_node);
   builtin_define_type_max ("__SIZE_MAX__", size_type_node);
 
-  for (i = 0; i < NUM_INT_N_ENTS; i ++)
-    if (int_n_enabled_p[i])
-      {
-       char buf[35+20+20];
+  if (c_dialect_cxx ())
+    for (i = 0; i < NUM_INT_N_ENTS; i ++)
+      if (int_n_enabled_p[i])
+       {
+         char buf[35+20+20];
 
-       /* These are used to configure the C++ library.  */
+         /* These are used to configure the C++ library.  */
 
-       if (!flag_iso || int_n_data[i].bitsize == POINTER_SIZE)
-         {
-           sprintf (buf, "__GLIBCXX_TYPE_INT_N_%d=__int%d", i, int_n_data[i].bitsize);
-           cpp_define (parse_in, buf);
+         if (!flag_iso || int_n_data[i].bitsize == POINTER_SIZE)
+           {
+             sprintf (buf, "__GLIBCXX_TYPE_INT_N_%d=__int%d", i, int_n_data[i].bitsize);
+             cpp_define (parse_in, buf);
 
-           sprintf (buf, "__GLIBCXX_BITSIZE_INT_N_%d=%d", i, int_n_data[i].bitsize);
-           cpp_define (parse_in, buf);
-         }
-      }
+             sprintf (buf, "__GLIBCXX_BITSIZE_INT_N_%d=%d", i, int_n_data[i].bitsize);
+             cpp_define (parse_in, buf);
+           }
+       }
 
   /* stdint.h and the testsuite need to know these.  */
   builtin_define_stdint_macros ();
This page took 0.061374 seconds and 5 git commands to generate.