aboutsummaryrefslogtreecommitdiff
path: root/gcc/cccp.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>1993-09-27 23:01:26 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>1993-09-27 23:01:26 +0000
commit9e7270cda36572fe35dcd154de6b48ba12405df5 (patch)
tree88a59ef3ab5c9e781243e104a60dbbb131562333 /gcc/cccp.c
parent572ca60a63ccb7e5040251ef83a162b0296f0e10 (diff)
downloadgcc-9e7270cda36572fe35dcd154de6b48ba12405df5.zip
gcc-9e7270cda36572fe35dcd154de6b48ba12405df5.tar.gz
gcc-9e7270cda36572fe35dcd154de6b48ba12405df5.tar.bz2
If NO_BUILTIN_SIZE_TYPE defined, don't refer to SIZE_TYPE.
Likewise for PTRDIFF_TYPE From-SVN: r5490
Diffstat (limited to 'gcc/cccp.c')
-rw-r--r--gcc/cccp.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/cccp.c b/gcc/cccp.c
index 3be2bfa..7233ed7 100644
--- a/gcc/cccp.c
+++ b/gcc/cccp.c
@@ -3686,15 +3686,19 @@ special_symbol (hp, op)
sprintf (buf, "\"%s\"", version_string);
break;
+#ifndef NO_BUILTIN_SIZE_TYPE
case T_SIZE_TYPE:
buf = (char *) alloca (3 + strlen (SIZE_TYPE));
sprintf (buf, "%s", SIZE_TYPE);
break;
+#endif
+#ifndef NO_BUILTIN_PTRDIFF_TYPE
case T_PTRDIFF_TYPE:
buf = (char *) alloca (3 + strlen (PTRDIFF_TYPE));
sprintf (buf, "%s", PTRDIFF_TYPE);
break;
+#endif
case T_WCHAR_TYPE:
buf = (char *) alloca (3 + strlen (WCHAR_TYPE));
@@ -8491,13 +8495,17 @@ initialize_builtins (inp, outp)
output_line_command (inp, outp, 0, same_file);
pass_thru_directive (directive, &directive[strlen (directive)], outp, dp);
+#ifndef NO_BUILTIN_SIZE_TYPE
sprintf (directive, " __SIZE_TYPE__ %s\n", SIZE_TYPE);
output_line_command (inp, outp, 0, same_file);
pass_thru_directive (directive, &directive[strlen (directive)], outp, dp);
+#endif
+#ifndef NO_BUILTIN_PTRDIFF_TYPE
sprintf (directive, " __PTRDIFF_TYPE__ %s\n", PTRDIFF_TYPE);
output_line_command (inp, outp, 0, same_file);
pass_thru_directive (directive, &directive[strlen (directive)], outp, dp);
+#endif
sprintf (directive, " __WCHAR_TYPE__ %s\n", WCHAR_TYPE);
output_line_command (inp, outp, 0, same_file);