From 9e7270cda36572fe35dcd154de6b48ba12405df5 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 27 Sep 1993 23:01:26 +0000 Subject: [PATCH] If NO_BUILTIN_SIZE_TYPE defined, don't refer to SIZE_TYPE. Likewise for PTRDIFF_TYPE From-SVN: r5490 --- gcc/cccp.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gcc/cccp.c b/gcc/cccp.c index 3be2bfa1799..7233ed7587a 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); -- 2.30.2