diff options
author | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-04-06 09:54:30 +0000 |
---|---|---|
committer | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-04-06 09:54:30 +0000 |
commit | 7b4db0874bd67cb61a93734a30f68d7e9f94485c (patch) | |
tree | e311b1aae3a8eba00538f1d3bc047ebff6363bcc /gcc | |
parent | 4a58318a271ea1bbafdba0c1290552468a5d9fbf (diff) | |
download | gcc-7b4db0874bd67cb61a93734a30f68d7e9f94485c.tar.gz |
1999-04-06 12:51 -0400 Zack Weinberg <zack@rabi.columbia.edu>
* cppinit.c (install_predefs): Delete function.
(cpp_start_read): Don't call install_predefs.
(cpp_handle_option): Remove case 'u' and all refs to
opts->inhibit_predefs.
(print_help): Don't mention -undef.
(initialize_builtins): Define __HAVE_BUILTIN_SETJMP__, to
match cccp.
* cpplib.h (struct cpp_options): Remove inhibit_predefs
member.
* cccp.c (predefs): Delete variable.
(main): Remove case 'u' in argument parse loop,
'inhibit_predefs' variable, and the code block that would
process CPP_PREDEFINES.
(initialize_builtins): Don't define __OBJC__, the driver will
do that.
* gcc.c (default_compilers): Remove -undef from all specs that
invoke a C preprocessor.
* ch/lang-specs.h: Likewise.
* cp/lang-specs.h: Likewise.
* f/lang-specs.h: Likewise.
* objc/lang-specs.h: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26212 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 26 | ||||
-rw-r--r-- | gcc/cccp.c | 146 | ||||
-rw-r--r-- | gcc/ch/lang-specs.h | 2 | ||||
-rw-r--r-- | gcc/cp/lang-specs.h | 6 | ||||
-rw-r--r-- | gcc/cppinit.c | 58 | ||||
-rw-r--r-- | gcc/cpplib.h | 1 | ||||
-rw-r--r-- | gcc/f/lang-specs.h | 4 | ||||
-rw-r--r-- | gcc/gcc.c | 12 | ||||
-rw-r--r-- | gcc/objc/lang-specs.h | 6 |
9 files changed, 42 insertions, 219 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ce83a028269..20fd4a2f9d3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,29 @@ +1999-04-06 12:51 -0400 Zack Weinberg <zack@rabi.columbia.edu> + + * cppinit.c (install_predefs): Delete function. + (cpp_start_read): Don't call install_predefs. + (cpp_handle_option): Remove case 'u' and all refs to + opts->inhibit_predefs. + (print_help): Don't mention -undef. + (initialize_builtins): Define __HAVE_BUILTIN_SETJMP__, to + match cccp. + * cpplib.h (struct cpp_options): Remove inhibit_predefs + member. + + * cccp.c (predefs): Delete variable. + (main): Remove case 'u' in argument parse loop, + 'inhibit_predefs' variable, and the code block that would + process CPP_PREDEFINES. + (initialize_builtins): Don't define __OBJC__, the driver will + do that. + + * gcc.c (default_compilers): Remove -undef from all specs that + invoke a C preprocessor. + * ch/lang-specs.h: Likewise. + * cp/lang-specs.h: Likewise. + * f/lang-specs.h: Likewise. + * objc/lang-specs.h: Likewise. + Mon Apr 5 11:55:31 1999 Donn Terry (donn@interix.com) * Makefile.in (SUBDIR_FLAGS_TO_PASS): Fix misapplied patch. diff --git a/gcc/cccp.c b/gcc/cccp.c index a849aabd6b3..9cbd82d17b7 100644 --- a/gcc/cccp.c +++ b/gcc/cccp.c @@ -658,13 +658,6 @@ static HASHNODE *hashtab[HASHSIZE]; #define HASHSTEP(old, c) ((old << 2) + c) #define MAKE_POS(v) (v & 0x7fffffff) /* make number positive */ -/* Symbols to predefine. */ - -#ifdef CPP_PREDEFINES -static char *predefs = CPP_PREDEFINES; -#else -static char *predefs = ""; -#endif /* We let tm.h override the types used here, to handle trivial differences such as the choice of unsigned int or long unsigned int for size_t. @@ -1210,7 +1203,6 @@ main (argc, argv) This is preparation for supporting more than one option for making an assertion. */ char **pend_assertion_options; - int inhibit_predefs = 0; int no_standard_includes = 0; int no_standard_cplusplus_includes = 0; int missing_newline = 0; @@ -1659,7 +1651,6 @@ main (argc, argv) on the command line. That way we can get rid of any that were passed automatically in from GCC. */ int j; - inhibit_predefs = 1; for (j = 0; j < i; j++) pend_defs[j] = pend_assertions[j] = 0; } else { @@ -1727,12 +1718,6 @@ main (argc, argv) remap = 1; break; - case 'u': - /* Sun compiler passes undocumented switch "-undef". - Let's assume it means to inhibit the predefined symbols. */ - inhibit_predefs = 1; - break; - case '\0': /* JF handle '-' as file name meaning stdin or stdout */ if (in_fname == NULL) { in_fname = ""; @@ -1783,135 +1768,6 @@ main (argc, argv) and option processing. */ initialize_builtins (fp, &outbuf); - /* Do standard #defines and assertions - that identify system and machine type. */ - - if (!inhibit_predefs) { - char *p = (char *) alloca (strlen (predefs) + 1); - -#ifdef VMS - struct dsc$descriptor_s lcl_name; - struct item_list { - unsigned short length; /* input length */ - unsigned short code; /* item code */ - unsigned long dptr; /* data ptr */ - unsigned long lptr; /* output length ptr */ - }; - - unsigned long syi_length; - char syi_data[16]; - - struct item_list items[] = { - { 16, SYI$_VERSION, 0, 0 }, - { 0, 0, 0, 0 } - }; - - items[0].dptr = (unsigned long)syi_data; - items[0].lptr = (unsigned long)(&syi_length); - - if (SYS$GETSYIW (0, 0, 0, items, NULL, NULL, NULL, NULL) == SS$_NORMAL) - { - unsigned long vms_version_value; - char *vers; - - vers = syi_data; - vms_version_value = 0; - - if (*vers == 'V') - vers++; - if (ISDIGIT (*vers)) - { - vms_version_value = (*vers - '0') * 10000000; - } - vers++; - if (*vers == '.') - { - vers++; - if (ISDIGIT (*vers)) - { - vms_version_value += (*vers - '0') * 100000; - } - } - - if (vms_version_value > 0) - { - char versbuf[32]; - - sprintf (versbuf, "__VMS_VER=%08ld", vms_version_value); - if (debug_output) - output_line_directive (fp, &outbuf, 0, same_file); - make_definition (versbuf); - } - } -#endif - - strcpy (p, predefs); - while (*p) { - char *q; - while (*p == ' ' || *p == '\t') - p++; - /* Handle -D options. */ - if (p[0] == '-' && p[1] == 'D') { - q = &p[2]; - while (*p && *p != ' ' && *p != '\t') - p++; - if (*p != 0) - *p++= 0; - if (debug_output) - output_line_directive (fp, &outbuf, 0, same_file); - make_definition (q); - while (*p == ' ' || *p == '\t') - p++; - } else if (p[0] == '-' && p[1] == 'A') { - /* Handle -A options (assertions). */ - char *assertion; - char *past_name; - char *value; - char *past_value; - char *termination; - int save_char; - - assertion = &p[2]; - past_name = assertion; - /* Locate end of name. */ - while (*past_name && *past_name != ' ' - && *past_name != '\t' && *past_name != '(') - past_name++; - /* Locate `(' at start of value. */ - value = past_name; - while (*value && (*value == ' ' || *value == '\t')) - value++; - if (*value++ != '(') - abort (); - while (*value && (*value == ' ' || *value == '\t')) - value++; - past_value = value; - /* Locate end of value. */ - while (*past_value && *past_value != ' ' - && *past_value != '\t' && *past_value != ')') - past_value++; - termination = past_value; - while (*termination && (*termination == ' ' || *termination == '\t')) - termination++; - if (*termination++ != ')') - abort (); - if (*termination && *termination != ' ' && *termination != '\t') - abort (); - /* Temporarily null-terminate the value. */ - save_char = *termination; - *termination = '\0'; - /* Install the assertion. */ - make_assertion ("-A", assertion); - *termination = (char) save_char; - p = termination; - while (*p == ' ' || *p == '\t') - p++; - } else { - abort (); - } - } - } - /* Now handle the command line options. */ /* Do -U's, -D's and -A's in the order they were seen. */ @@ -10217,8 +10073,6 @@ initialize_builtins (inp, outp) install ((U_CHAR *) "__STDC__", -1, T_CONST, "1", -1); install ((U_CHAR *) "__STDC_VERSION__", -1, T_CONST, "199409L", -1); } - if (objc) - install ((U_CHAR *) "__OBJC__", -1, T_CONST, "1", -1); /* This is supplied using a -D by the compiler driver so that it is present only when truly compiling with GNU C. */ /* install ((U_CHAR *) "__GNUC__", -1, T_CONST, "2", -1); */ diff --git a/gcc/ch/lang-specs.h b/gcc/ch/lang-specs.h index af7b3b3b3f4..a8c0213314c 100644 --- a/gcc/ch/lang-specs.h +++ b/gcc/ch/lang-specs.h @@ -26,7 +26,7 @@ Boston, MA 02111-1307, USA. */ {"@chill", {"cpp -lang-chill %{nostdinc*} %{C} %{v} %{A*} %{I*} %{P} %I\ %{C:%{!E:%eGNU CHILL does not support -C without using -E}}\ - -undef -D__GNUCHILL__=%v1 -D__GNUC_MINOR__=%v2\ + -D__GNUCHILL__=%v1 -D__GNUC_MINOR__=%v2\ %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:-D__OPTIMIZE__} %{traditional} %{ftraditional:-traditional}\ %{traditional-cpp:-traditional} %{!undef:%{!ansi:%p} %P} %{trigraphs}\ %{g*} %{W*} %{w} %{pedantic*} %{H} %{d*} %C %{D*} %{U*} %{i*} %Z\ diff --git a/gcc/cp/lang-specs.h b/gcc/cp/lang-specs.h index 74518b7ab7c..910be7fab77 100644 --- a/gcc/cp/lang-specs.h +++ b/gcc/cp/lang-specs.h @@ -33,7 +33,7 @@ Boston, MA 02111-1307, USA. */ "%{E|M|MM:cpp -lang-c++ %{nostdinc*} %{C} %{v} %{A*} %{I*} %{P} %I\ %{C:%{!E:%eGNU C++ does not support -C without using -E}}\ %{M} %{MM} %{MD:-MD %b.d} %{MMD:-MMD %b.d} %{MG}\ - -undef -D__GNUC__=%v1 -D__GNUG__=%v1 -D__cplusplus -D__GNUC_MINOR__=%v2\ + -D__GNUC__=%v1 -D__GNUG__=%v1 -D__cplusplus -D__GNUC_MINOR__=%v2\ %{ansi:-trigraphs -D__STRICT_ANSI__} %{!undef:%{!ansi:%p} %P}\ %{!fno-exceptions:-D__EXCEPTIONS}\ %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}} %{trigraphs}\ @@ -43,7 +43,7 @@ Boston, MA 02111-1307, USA. */ %{!E:%{!M:%{!MM:cc1plus %i %1 %2\ -lang-c++ %{nostdinc*} %{C} %{A*} %{I*} %{P} %I\ %{MD:-MD %b.d} %{MMD:-MMD %b.d} %{MG}\ - -undef -D__GNUC__=%v1 -D__GNUG__=%v1 -D__cplusplus\ + -D__GNUC__=%v1 -D__GNUG__=%v1 -D__cplusplus\ -D__GNUC_MINOR__=%v2\ %{ansi:-trigraphs -D__STRICT_ANSI__} %{!undef:%{!ansi:%p} %P}\ %{!fno-exceptions:-D__EXCEPTIONS}\ @@ -64,7 +64,7 @@ Boston, MA 02111-1307, USA. */ {"cpp -lang-c++ %{nostdinc*} %{C} %{v} %{A*} %{I*} %{P} %I\ %{C:%{!E:%eGNU C++ does not support -C without using -E}}\ %{M} %{MM} %{MD:-MD %b.d} %{MMD:-MMD %b.d} %{MG}\ - -undef -D__GNUC__=%v1 -D__GNUG__=%v1 -D__cplusplus -D__GNUC_MINOR__=%v2\ + -D__GNUC__=%v1 -D__GNUG__=%v1 -D__cplusplus -D__GNUC_MINOR__=%v2\ %{ansi:-trigraphs -D__STRICT_ANSI__} %{!undef:%{!ansi:%p} %P}\ %{!fno-exceptions:-D__EXCEPTIONS}\ %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}} %{trigraphs}\ diff --git a/gcc/cppinit.c b/gcc/cppinit.c index 08bbff410b3..0c151434fda 100644 --- a/gcc/cppinit.c +++ b/gcc/cppinit.c @@ -204,10 +204,6 @@ static void append_include_chain PARAMS ((cpp_reader *, struct cpp_pending *, char *, int)); -#ifdef CPP_PREDEFINES -static void install_predefs PARAMS ((cpp_reader *)); -#endif - /* Last argument to append_include_chain: chain to use */ enum { QUOTE = 0, BRACKET, SYSTEM, AFTER }; @@ -627,6 +623,7 @@ initialize_builtins (pfile) cpp_install (pfile, NAME("__WCHAR_TYPE__"), T_CONST, WCHAR_TYPE, -1); cpp_install (pfile, NAME("__USER_LABEL_PREFIX__"), T_CONST, user_label_prefix, -1); cpp_install (pfile, NAME("__REGISTER_PREFIX__"), T_CONST, REGISTER_PREFIX, -1); + cpp_install (pfile, NAME("__HAVE_BUILTIN_SETJMP__"), T_CONST, "1", -1); if (!CPP_TRADITIONAL (pfile)) { cpp_install (pfile, NAME("__STDC__"), T_STDC, 0, -1); @@ -657,44 +654,6 @@ initialize_builtins (pfile) } } -/* Subroutine of cpp_start_read. Installs the predefined macros - and assertions found in CPP_PREDEFINES. - - CPP_PREDEFINES is a string of -D and -A options separated by - whitespace, like this: - "-D__unix__ -D__sparc__ -Asystem(unix) -Amachine(sparc)" */ -#ifdef CPP_PREDEFINES -static void -install_predefs (pfile) - cpp_reader *pfile; -{ - char *p = (char *) alloca (strlen (CPP_PREDEFINES) + 1); - char *q; - strcpy (p, CPP_PREDEFINES); - - while (*p) - { - while (*p == ' ' || *p == '\t') p++; - if (*p != '-') - abort(); - p = q = p + 2; - - while (*p && *p != ' ' && *p != '\t') p++; - if (*p != 0) - *p++= 0; - if (CPP_OPTIONS (pfile)->debug_output) - output_line_command (pfile, 0, same_file); - - if (q[-1] == 'D') - cpp_define (pfile, q); - else if (q[-1] == 'A') - cpp_assert (pfile, q); - else - abort (); - } -} -#endif - /* Another subroutine of cpp_start_read. This one sets up to do dependency-file output. */ static void @@ -850,13 +809,6 @@ cpp_start_read (pfile, fname) and option processing. */ initialize_builtins (pfile); -#ifdef CPP_PREDEFINES - /* Do standard #defines and assertions - that identify system and machine type. */ - if (!opts->inhibit_predefs) - install_predefs (pfile); -#endif - /* Do -U's, -D's and -A's in the order they were seen. */ p = opts->pending->define_head; while (p) @@ -1621,8 +1573,6 @@ cpp_handle_option (pfile, argc, argv) opts->pending->assert_tail = NULL; opts->pending->define_head = NULL; opts->pending->define_tail = NULL; - - opts->inhibit_predefs = 1; } } break; @@ -1682,11 +1632,6 @@ cpp_handle_option (pfile, argc, argv) opts->remap = 1; break; - case 'u': - if (!strcmp (argv[i], "-undef")) - opts->inhibit_predefs = 1; - break; - case '\0': /* JF handle '-' as file name meaning stdin or stdout */ if (opts->in_fname == NULL) opts->in_fname = ""; @@ -1789,7 +1734,6 @@ Switches:\n\ -D<macro>=<val> Define a <macro> with <val> as its value\n\ -A<question> (<answer>) Assert the <answer> to <question>\n\ -U<macro> Undefine <macro> \n\ - -u or -undef Do not predefine any macros\n\ -v Display the version number\n\ -H Print the name of header files as they are used\n\ -C Do not discard comments\n\ diff --git a/gcc/cpplib.h b/gcc/cpplib.h index 9af3b4b6343..ccf8f929642 100644 --- a/gcc/cpplib.h +++ b/gcc/cpplib.h @@ -453,7 +453,6 @@ struct cpp_options { char *include_prefix; int include_prefix_len; - char inhibit_predefs; char no_standard_includes; char no_standard_cplusplus_includes; diff --git a/gcc/f/lang-specs.h b/gcc/f/lang-specs.h index ba777ebee92..5f2031c8861 100644 --- a/gcc/f/lang-specs.h +++ b/gcc/f/lang-specs.h @@ -38,7 +38,7 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA {"cpp -lang-c %{nostdinc*} %{C} %{v} %{A*} %{I*} %{P} %I\ %{C:%{!E:%eGNU C does not support -C without using -E}}\ %{M} %{MM} %{MD:-MD %b.d} %{MMD:-MMD %b.d} %{MG}\ - -undef -D__GNUC__=%v1 -D__GNUC_MINOR__=%v2\ + -D__GNUC__=%v1 -D__GNUC_MINOR__=%v2\ %{ansi:-trigraphs -$ -D__STRICT_ANSI__}\ %{!undef:%P} -D_LANGUAGE_FORTRAN %{trigraphs} \ %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}} -traditional\ @@ -88,7 +88,7 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA {"cpp -lang-c %{nostdinc*} %{C} %{v} %{A*} %{I*} %{P} %I \ %{C:%{!E:%eGNU C does not support -C without using -E}} \ %{M} %{MM} %{MD:-MD %b.d} %{MMD:-MMD %b.d} %{MG} \ - -undef -D__GNUC__=%v1 -D__GNUC_MINOR__=%v2 \ + -D__GNUC__=%v1 -D__GNUC_MINOR__=%v2 \ %{ansi:-trigraphs -$ -D__STRICT_ANSI__} \ %{!undef:%P} -D_LANGUAGE_FORTRAN %{trigraphs} \ %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}} -traditional \ diff --git a/gcc/gcc.c b/gcc/gcc.c index a56cf114505..dc321422488 100644 --- a/gcc/gcc.c +++ b/gcc/gcc.c @@ -592,7 +592,7 @@ static struct compiler default_compilers[] = %{C} %{v} %{A*} %{I*} %{P} %I\ %{C:%{!E:%eGNU C does not support -C without using -E}}\ %{M} %{MM} %{MD:-MD %b.d} %{MMD:-MMD %b.d} %{MG}\ - -undef -D__GNUC__=%v1 -D__GNUC_MINOR__=%v2\ + -D__GNUC__=%v1 -D__GNUC_MINOR__=%v2\ %{ansi|std=*:%{!std=gnu*:-trigraphs -D__STRICT_ANSI__}}\ %{!undef:%{!ansi:%{!std=*:%p}%{std=gnu*:%p}} %P} %{trigraphs}\ %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}}\ @@ -606,7 +606,7 @@ static struct compiler default_compilers[] = %{std*} %{nostdinc*} %{A*} %{I*} %I\ %{!Q:-quiet} -dumpbase %b.c %{d*} %{m*} %{a*}\ %{MD:-MD %b.d} %{MMD:-MMD %b.d} %{MG}\ - -undef -D__GNUC__=%v1 -D__GNUC_MINOR__=%v2\ + -D__GNUC__=%v1 -D__GNUC_MINOR__=%v2\ %{ansi|std=*:%{!std=gnu*:-trigraphs -D__STRICT_ANSI__}}\ %{!undef:%{!ansi:%{!std=*:%p}%{std=gnu*:%p}} %P} %{trigraphs}\ %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}}\ @@ -629,7 +629,7 @@ static struct compiler default_compilers[] = %{C} %{v} %{A*} %{I*} %{P} %I\ %{C:%{!E:%eGNU C does not support -C without using -E}}\ %{M} %{MM} %{MD:-MD %b.d} %{MMD:-MMD %b.d} %{MG}\ - -undef -D__GNUC__=%v1 -D__GNUC_MINOR__=%v2\ + -D__GNUC__=%v1 -D__GNUC_MINOR__=%v2\ %{ansi|std=*:%{!std=gnu*:-trigraphs -D__STRICT_ANSI__}}\ %{!undef:%{!ansi:%{!std=*:%p}%{std=gnu*:%p}} %P} %{trigraphs}\ %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}}\ @@ -657,7 +657,7 @@ static struct compiler default_compilers[] = %{C} %{v} %{A*} %{I*} %{P} %I\ %{C:%{!E:%eGNU C does not support -C without using -E}}\ %{M} %{MM} %{MD:-MD %b.d} %{MMD:-MMD %b.d} %{MG}\ - -undef -D__GNUC__=%v1 -D__GNUC_MINOR__=%v2\ + -D__GNUC__=%v1 -D__GNUC_MINOR__=%v2\ %{ansi|std=*:%{!std=gnu*:-trigraphs -D__STRICT_ANSI__}}\ %{!undef:%{!ansi:%{!std=*:%p}%{std=gnu*:%p}} %P} %{trigraphs}\ %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}}\ @@ -674,7 +674,7 @@ static struct compiler default_compilers[] = cpp %{nostdinc*} %{C} %{v} %{A*} %{I*} %{P} %I\ %{C:%{!E:%eGNU C does not support -C without using -E}}\ %{M} %{MM} %{MD:-MD %b.d} %{MMD:-MMD %b.d} %{MG}\ - -undef -D__GNUC__=%v1 -D__GNUC_MINOR__=%v2\ + -D__GNUC__=%v1 -D__GNUC_MINOR__=%v2\ %{std=*:%{!std=gnu*:-trigraphs -D__STRICT_ANSI__}}\ %{!undef:%{!std=*:%p}%{std=gnu*:%p} %P} %{trigraphs}\ %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}}\ @@ -705,7 +705,7 @@ static struct compiler default_compilers[] = {"cpp -lang-asm %{nostdinc*} %{C} %{v} %{A*} %{I*} %{P} %I\ %{C:%{!E:%eGNU C does not support -C without using -E}}\ %{M} %{MM} %{MD:-MD %b.d} %{MMD:-MMD %b.d} %{MG} %{trigraphs}\ - -undef -$ %{!undef:%p %P} -D__ASSEMBLER__ \ + -$ %{!undef:%p %P} -D__ASSEMBLER__ \ %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}}\ %{ffast-math:-D__FAST_MATH__}\ %{traditional} %{ftraditional:-traditional}\ diff --git a/gcc/objc/lang-specs.h b/gcc/objc/lang-specs.h index 50c25f5d2ef..b9e187005f1 100644 --- a/gcc/objc/lang-specs.h +++ b/gcc/objc/lang-specs.h @@ -27,7 +27,7 @@ Boston, MA 02111-1307, USA. */ {"%{E|M|MM:cpp -lang-objc %{nostdinc*} %{C} %{v} %{A*} %{I*} %{P} %I\ %{C:%{!E:%eGNU C does not support -C without using -E}}\ %{M} %{MM} %{MD:-MD %b.d} %{MMD:-MMD %b.d} %{MG}\ - -undef -D__OBJC__ -D__GNUC__=%v1 -D__GNUC_MINOR__=%v2\ + -D__OBJC__ -D__GNUC__=%v1 -D__GNUC_MINOR__=%v2\ %{ansi:-trigraphs -D__STRICT_ANSI__}\ %{!undef:%{!ansi:%p} %P} %{trigraphs}\ %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}}\ @@ -40,7 +40,7 @@ Boston, MA 02111-1307, USA. */ "%{!M:%{!MM:%{!E:cc1obj %i %1 \ %{nostdinc*} %{A*} %{I*} %{P} %I\ %{MD:-MD %b.d} %{MMD:-MMD %b.d} %{MG}\ - -undef -D__OBJC__ -D__GNUC__=%v1 -D__GNUC_MINOR__=%v2\ + -D__OBJC__ -D__GNUC__=%v1 -D__GNUC_MINOR__=%v2\ %{!undef:%{!ansi:%p} %P} %{trigraphs}\ %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}}\ %{ffast-math:-D__FAST_MATH__}\ @@ -58,7 +58,7 @@ Boston, MA 02111-1307, USA. */ {"cpp -lang-objc %{nostdinc*} %{C} %{v} %{A*} %{I*} %{P} %I\ %{C:%{!E:%eGNU C does not support -C without using -E}}\ %{M} %{MM} %{MD:-MD %b.d} %{MMD:-MMD %b.d} %{MG}\ - -undef -D__OBJC__ -D__GNUC__=%v1 -D__GNUC_MINOR__=%v2\ + -D__OBJC__ -D__GNUC__=%v1 -D__GNUC_MINOR__=%v2\ %{ansi:-trigraphs -D__STRICT_ANSI__}\ %{!undef:%{!ansi:%p} %P} %{trigraphs}\ %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}}\ |