diff --git a/gcc/config/i386/sco.h b/gcc/config/i386/sco.h index 8f1c8a0533a..a14a5e2949b 100644 --- a/gcc/config/i386/sco.h +++ b/gcc/config/i386/sco.h @@ -19,7 +19,8 @@ /* Use crt1.o as a startup file and crtn.o as a closing file. */ #undef STARTFILE_SPEC -#define STARTFILE_SPEC "%{pg:gcrt1.o%s}%{!pg:%{p:mcrt1.o%s}%{!p:crt1.o%s}} crtbegin.o%s" +#define STARTFILE_SPEC \ + "%{pg:gcrt1.o%s}%{!pg:%{p:mcrt1.o%s}%{!p:crt1.o%s}} crtbegin.o%s" #define ENDFILE_SPEC "crtend.o%s crtn.o%s" @@ -37,6 +38,17 @@ #undef CPP_SPEC #define CPP_SPEC "%{scointl:-DM_INTERNAT}" +/* This spec is used for telling cpp whether char is signed or not. */ + +#undef SIGNED_CHAR_SPEC +#if DEFAULT_SIGNED_CHAR +#define SIGNED_CHAR_SPEC \ + "%{funsigned-char:-D__CHAR_UNSIGNED__ -D_CHAR_UNSIGNED}" +#else +#define SIGNED_CHAR_SPEC \ + "%{!fsigned-char:-D__CHAR_UNSIGNED__ -D_CHAR_UNSIGNED}" +#endif + /* Use atexit for static destructors, instead of defining our own exit function. */ #define HAVE_ATEXIT