diff options
author | Richard Stallman <rms@gnu.org> | 1993-03-02 19:57:36 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1993-03-02 19:57:36 +0000 |
commit | 4b3f0a5b28cd7a835bfed0999fae7dde3723a8ab (patch) | |
tree | 31ec8654c9ee27225a7c9be4a18b3cbb8f6dffe9 /gcc | |
parent | 780f491fa4475604a5f9e7bf14bc2b4c4065266c (diff) | |
download | gcc-4b3f0a5b28cd7a835bfed0999fae7dde3723a8ab.zip gcc-4b3f0a5b28cd7a835bfed0999fae7dde3723a8ab.tar.gz gcc-4b3f0a5b28cd7a835bfed0999fae7dde3723a8ab.tar.bz2 |
(link_command_spec): Do nothing if -fsyntax-only.
From-SVN: r3598
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/gcc.c | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -576,25 +576,28 @@ static int n_default_compilers #ifdef LINK_LIBGCC_SPECIAL_1 /* Have gcc do the search for libgcc.a, but generate -L options as usual. */ static char *link_command_spec = "\ -%{!c:%{!M:%{!MM:%{!E:%{!S:ld %l %X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} \ +%{!fsyntax-only: + %{!c:%{!M:%{!MM:%{!E:%{!S:ld %l %X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} \ %{r} %{s} %{T*} %{t} %{u*} %{x} %{z}\ %{!A:%{!nostdlib:%S}} %{static:}\ - %{L*} %D %o %{!nostdlib:libgcc.a%s %L libgcc.a%s %{!A:%E}}\n }}}}}"; + %{L*} %D %o %{!nostdlib:libgcc.a%s %L libgcc.a%s %{!A:%E}}\n }}}}}}"; #else #ifdef LINK_LIBGCC_SPECIAL /* Have gcc do the search for libgcc.a, and don't generate -L options. */ static char *link_command_spec = "\ -%{!c:%{!M:%{!MM:%{!E:%{!S:ld %l %X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} \ +%{!fsyntax-only: + %{!c:%{!M:%{!MM:%{!E:%{!S:ld %l %X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} \ %{r} %{s} %{T*} %{t} %{u*} %{x} %{z}\ %{!A:%{!nostdlib:%S}} %{static:}\ - %{L*} %o %{!nostdlib:libgcc.a%s %L libgcc.a%s %{!A:%E}}\n }}}}}"; + %{L*} %o %{!nostdlib:libgcc.a%s %L libgcc.a%s %{!A:%E}}\n }}}}}}"; #else /* Use -L and have the linker do the search for -lgcc. */ static char *link_command_spec = "\ -%{!c:%{!M:%{!MM:%{!E:%{!S:ld %l %X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} \ +%{!fsyntax-only: + %{!c:%{!M:%{!MM:%{!E:%{!S:ld %l %X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} \ %{r} %{s} %{T*} %{t} %{u*} %{x} %{z}\ %{!A:%{!nostdlib:%S}} %{static:}\ - %{L*} %D %o %{!nostdlib:-lgcc %L -lgcc %{!A:%E}}\n }}}}}"; + %{L*} %D %o %{!nostdlib:-lgcc %L -lgcc %{!A:%E}}\n }}}}}}"; #endif #endif |