From 05a3d06e010e84758cd0ef4cee4a1b40aa3ef505 Mon Sep 17 00:00:00 2001 From: Nix Date: Mon, 21 Aug 2000 18:12:24 +0000 Subject: [PATCH] lang-specs.h: Do not process -o or run the assembler if -fsyntax-only. * lang-specs.h: Do not process -o or run the assembler if -fsyntax-only. From-SVN: r35853 --- gcc/ChangeLog | 1 + gcc/cp/ChangeLog | 5 +++++ gcc/cp/lang-specs.h | 12 +++++++----- gcc/java/ChangeLog | 5 +++++ gcc/java/lang-specs.h | 4 ++-- gcc/objc/lang-specs.h | 14 +++++++------- 6 files changed, 27 insertions(+), 14 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8aabc1dc6b7..8b64c1b9d00 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -18,6 +18,7 @@ * gcc.c (cc1_options): Do not process -o or run the assembler if -fsyntax-only. + * objc/lang-spec.h: Likewise. 2000-08-21 Eli Zaretskii diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 98fb6697fed..5f83fe68acb 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2000-08-21 Nix + + * lang-specs.h: Do not process -o or run the assembler if + -fsyntax-only. + 2000-08-21 Joseph S. Myers * decl.c (flag_hosted, flag_noniso_default_format_attributes): New diff --git a/gcc/cp/lang-specs.h b/gcc/cp/lang-specs.h index 871ac5bff3f..8f8c10dde15 100644 --- a/gcc/cp/lang-specs.h +++ b/gcc/cp/lang-specs.h @@ -37,19 +37,21 @@ Boston, MA 02111-1307, USA. */ %{fnew-abi:-D__GXX_ABI_VERSION=100}\ %{ansi:-trigraphs -$ -D__STRICT_ANSI__}\ %(cpp_options) %(cc1_options) %{+e*}\ - %{!S:-o %{|!pipe:%g.s} |\n\ - as %(asm_options) %{!pipe:%g.s} %A }}}}" + %{!fsyntax-only:%{!S:-o %{|!pipe:%g.s} |\n\ + as %(asm_options) %{!pipe:%g.s} %A }}}}}" #else /* ! USE_CPPLIB */ "cpp0 -lang-c++ %{!no-gcc:-D__GNUG__=%v1}\ %{fnew-abi:-D__GXX_ABI_VERSION=100}\ %{ansi:-trigraphs -$ -D__STRICT_ANSI__} %(cpp_options)\ %{!M:%{!MM:%{!E:%{!pipe:%g.ii} |\n\ - cc1plus %{!pipe:%g.ii} %(cc1_options) %{+e*} %{!S:-o %{|!pipe:%g.s} |\n\ - as %(asm_options) %{!pipe:%g.s} %A }}}}\n" + cc1plus %{!pipe:%g.ii} %(cc1_options) %{+e*}\ + %{!fsyntax-only:%{!S:-o %{|!pipe:%g.s} |\n\ + as %(asm_options) %{!pipe:%g.s} %A }}}}}\n" #endif /* ! USE_CPPLIB */ }, {".ii", "@c++-cpp-output"}, {"@c++-cpp-output", "%{!M:%{!MM:%{!E:\ cc1plus -fpreprocessed %i %(cc1_options) %{+e*}\ - %{!S:-o %{|!pipe:%g.s} |\n as %(asm_options) %{!pipe:%g.s} %A }}}}"}, + %{!fsyntax-only:%{!S:-o %{|!pipe:%g.s} |\n\ + as %(asm_options) %{!pipe:%g.s} %A }}}}}"}, diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 902a6d5e12a..80b1b2aec53 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,8 @@ +2000-08-21 Nix + + * lang-specs.h: Do not process -o or run the assembler if + -fsyntax-only. + 2000-08-09 Tom Tromey * parse.y (check_abstract_method_definitions): Now return `int'. diff --git a/gcc/java/lang-specs.h b/gcc/java/lang-specs.h index c18d9bfd98b..7ebbfb9dbe5 100644 --- a/gcc/java/lang-specs.h +++ b/gcc/java/lang-specs.h @@ -32,5 +32,5 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */ {"@java", "%{fjni:%{femit-class-file:%e-fjni and -femit-class-file are incompatible}}\ %{!E:jc1 %i %(jc1) %(cc1_options) %{+e*} %{I*} %{MD} %{MMD} %{M} %{MM}\ - %{!S:-o %{|!pipe:%g.s} |\n\ - as %(asm_options) %{!pipe:%g.s} %A }}"}, + %{!fsyntax-only:%{!S:-o %{|!pipe:%g.s} |\n\ + as %(asm_options) %{!pipe:%g.s} %A }}}"}, diff --git a/gcc/objc/lang-specs.h b/gcc/objc/lang-specs.h index b0fea5257d4..ccd91940116 100644 --- a/gcc/objc/lang-specs.h +++ b/gcc/objc/lang-specs.h @@ -25,19 +25,19 @@ Boston, MA 02111-1307, USA. */ {"@objective-c", #if USE_CPPLIB "%{E|M|MM:cpp0 -lang-objc %{ansi:-std=c89} %(cpp_options)}\ - %{!E:%{!M:%{!MM:cc1obj -lang-objc %(cpp_options) %(cc1_options)\ - %{gen-decls} %{!S:-o %{|!pipe:%g.s} |\n\ - as %(asm_options) %{!pipe:%g.s} %A }}}}" + %{!E:%{!M:%{!MM:cc1obj -lang-objc %(cpp_options) %(cc1_options) %{gen-decls}\ + %{!fsyntax-only:%{!S:-o %{|!pipe:%g.s} |\n\ + as %(asm_options) %{!pipe:%g.s} %A }}}}}" #else /* ! USE_CPPLIB */ "%(trad_capable_cpp) -lang-objc %{ansi:-std=c89} %(cpp_options)\ %{!M:%{!MM:%{!E:%{!pipe:%g.mi} |\n\ cc1obj -lang-objc %{!pipe:%g.mi} %(cc1_options) %{gen-decls}\ - %{!S:-o %{|!pipe:%g.s} |\n\ - as %(asm_options) %{!pipe:%g.s} %A }}}}\n" + %{!fsyntax-only:%{!S:-o %{|!pipe:%g.s} |\n\ + as %(asm_options) %{!pipe:%g.s} %A }}}}}\n" #endif /* ! USE_CPPLIB */ }, {".mi", "@objc-cpp-output"}, {"@objc-cpp-output", "%{!M:%{!MM:%{!E:cc1obj -lang-objc %i %(cc1_options) %{gen-decls}\ - %{!S:-o %{|!pipe:%g.s} |\n\ - as %(asm_options) %{!pipe:%g.s} %A }}}}"}, + %{!fsyntax-only:%{!S:-o %{|!pipe:%g.s} |\n\ + as %(asm_options) %{!pipe:%g.s} %A }}}}}"}, -- 2.30.2