diff options
author | Neil Booth <neil@daikokuya.co.uk> | 2003-03-11 06:42:21 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2003-03-11 06:42:21 +0000 |
commit | cb60f38d5b06fd610dbf5216d8751f8db0274edd (patch) | |
tree | 4a61a1ebad36b280444ec7dd62765959ac5bd940 /gcc/gcc.c | |
parent | 5858cd26b2a70d195dd6cac584a154a6550d8cf0 (diff) | |
download | gcc-cb60f38d5b06fd610dbf5216d8751f8db0274edd.zip gcc-cb60f38d5b06fd610dbf5216d8751f8db0274edd.tar.gz gcc-cb60f38d5b06fd610dbf5216d8751f8db0274edd.tar.bz2 |
Makefile.in: Update.
* Makefile.in: Update.
* c-common.c: Don't include real.h or except.h.
(REGISTER_PREFIX): Remove.
(builtin_define_std, builtin_define_with_value,
builtin_define_with_int_value, builtin_define_with_hex_fp_value,
builtin_define_type_max, builtin_define_type_precision,
builtin_define_float_constants): Move to c-cppbuiltin.c.
(c_stddef_cpp_builtins): New.
* c-common.h (builtin_define_with_value, c_stddef_cpp_builtins): New.
* c-cppbuiltin.c: New, extracted from c-common.c.
(define__GNUC__): New.
* cppspec.c (lang_specific_driver): Remove support of -no-gcc.
* gcc.c: Remove support of %v1, %v2 and %v3 specs.
(cpp_unique_options): Don't support no-gcc.
(do_spec_1): Remove support of version specs.
* doc/invoke.texi: Remove documentation of %v1, %v2 and %v3.
* doc/passes.texi: Update.
* doc/tm.texi: Update.
cp:
* Make-lang.in (CXX_C_OBJS): Update.
* lang-specs.h: Don't define __GNUG__ here.
From-SVN: r64162
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r-- | gcc/gcc.c | 67 |
1 files changed, 1 insertions, 66 deletions
@@ -466,12 +466,6 @@ or with constant text in a single argument. %X Output the accumulated linker options specified by compilations. %Y Output the accumulated assembler options specified by compilations. %Z Output the accumulated preprocessor options specified by compilations. - %v1 Substitute the major version number of GCC. - (For version 2.5.3, this is 2.) - %v2 Substitute the minor version number of GCC. - (For version 2.5.3, this is 5.) - %v3 Substitute the patch level number of GCC. - (For version 2.5.3, this is 3.) %a process ASM_SPEC as a spec. This allows config.h to specify part of the spec for running as. %A process ASM_FINAL_SPEC as a spec. A capital A is actually @@ -740,14 +734,12 @@ static const char *trad_capable_cpp = therefore no dependency entry, confuses make into thinking a .o file that happens to exist is up-to-date. */ static const char *cpp_unique_options = -"%{C:%{!E:%eGNU C does not support -C without using -E}}\ - %{CC:%{!E:%eGNU C does not support -CC without using -E}}\ +"%{C|CC:%{!E:%eGCC does not support -C or -CC without -E}}\ %{!Q:-quiet} %{nostdinc*} %{C} %{CC} %{v} %{I*} %{P} %I\ %{MD:-MD %{!o:%b.d}%{o*:%.d%*}}\ %{MMD:-MMD %{!o:%b.d}%{o*:%.d%*}}\ %{M} %{MM} %{MF*} %{MG} %{MP} %{MQ*} %{MT*}\ %{!E:%{!M:%{!MM:%{MD|MMD:%{o*:-MQ %*}}}}}\ - %{!no-gcc:-D__GNUC__=%v1 -D__GNUC_MINOR__=%v2 -D__GNUC_PATCHLEVEL__=%v3}\ %{!undef:%{!ansi:%{!std=*:%p}%{std=gnu*:%p}} %P} %{trigraphs}\ %{remap} %{g3:-dD} %{H} %C %{D*&U*&A*} %{i*} %Z %i\ %{E|M|MM:%W{o*}}"; @@ -5305,63 +5297,6 @@ do_spec_1 (spec, inswitch, soft_matched_part) } break; - case 'v': - { - int c1 = *p++; /* Select first or second version number. */ - const char *v = compiler_version; - const char *q; - static const char zeroc = '0'; - - /* The format of the version string is - ([^0-9]*-)?[0-9]+[.][0-9]+([.][0-9]+)?([- ].*)? */ - - /* Ignore leading non-digits. i.e. "foo-" in "foo-2.7.2". */ - while (! ISDIGIT (*v)) - v++; - if (v > compiler_version && v[-1] != '-') - abort (); - - /* If desired, advance to second version number. */ - if (c1 >= '2') - { - /* Set V after the first period. */ - while (ISDIGIT (*v)) - v++; - if (*v != '.') - abort (); - v++; - } - - /* If desired, advance to third version number. - But don't complain if it's not present */ - if (c1 == '3') - { - /* Set V after the second period. */ - while (ISDIGIT (*v)) - v++; - if ((*v != 0) && (*v != ' ') && (*v != '.') && (*v != '-')) - abort (); - if (*v != 0) - v++; - } - - /* Set Q at the next period or at the end. */ - q = v; - while (ISDIGIT (*q)) - q++; - if (*q != 0 && q > v && *q != ' ' && *q != '.' && *q != '-') - abort (); - - if (q > v) - /* Put that part into the command. */ - obstack_grow (&obstack, v, q - v); - else - /* Default to "0" */ - obstack_grow (&obstack, &zeroc, 1); - arg_going = 1; - } - break; - default: error ("spec failure: unrecognized spec option '%c'", c); break; |