diff options
author | DJ Delorie <dj@gcc.gnu.org> | 2014-10-14 16:01:39 -0400 |
---|---|---|
committer | DJ Delorie <dj@gcc.gnu.org> | 2014-10-14 16:01:39 -0400 |
commit | e1217ac7f26aca7f383229eea72dc895007cb8a8 (patch) | |
tree | c94d725f3481d8765bbdcc11e86fc86d8605905e /gcc | |
parent | 78a7c3172fe2e6cd959abb8bfc69f6b0dc747d49 (diff) | |
download | gcc-e1217ac7f26aca7f383229eea72dc895007cb8a8.zip gcc-e1217ac7f26aca7f383229eea72dc895007cb8a8.tar.gz gcc-e1217ac7f26aca7f383229eea72dc895007cb8a8.tar.bz2 |
Missed bit of previous commit.
From-SVN: r216221
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/c-family/c-cppbuiltin.c | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/gcc/c-family/c-cppbuiltin.c b/gcc/c-family/c-cppbuiltin.c index aa61b7e..c0fcde7 100644 --- a/gcc/c-family/c-cppbuiltin.c +++ b/gcc/c-family/c-cppbuiltin.c @@ -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 (); |