From 8df9ac0047ab121db0eba84325df4de1a1fba61b Mon Sep 17 00:00:00 2001 From: law Date: Mon, 21 Aug 2000 18:12:36 +0000 Subject: [PATCH 1/1] * lang-specs.h: Do not process -o or run the assembler if -fsyntax-only. Use %j instead of /dev/null. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35854 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/f/ChangeLog | 5 +++++ gcc/f/lang-specs.h | 16 ++++++++-------- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/gcc/f/ChangeLog b/gcc/f/ChangeLog index a62f8378d69..94ab0525fcb 100644 --- a/gcc/f/ChangeLog +++ b/gcc/f/ChangeLog @@ -1,3 +1,8 @@ +2000-08-21 Nix + + * lang-specs.h: Do not process -o or run the assembler if + -fsyntax-only. Use %j instead of /dev/null. + 2000-08-21 Jakub Jelinek * lang-specs.h: Pass -I* options to f771. diff --git a/gcc/f/lang-specs.h b/gcc/f/lang-specs.h index e1e7d590f36..04fd9de911c 100644 --- a/gcc/f/lang-specs.h +++ b/gcc/f/lang-specs.h @@ -29,27 +29,27 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA {".FPP", "@f77-cpp-input"}, {"@f77-cpp-input", "tradcpp0 -lang-fortran %(cpp_options) %{!M:%{!MM:%{!E:%{!pipe:%g.f |\n\ - f771 %{!pipe:%g.f} %(cc1_options) %{I*} %{!S:-o %{|!pipe:%g.s} |\n\ - as %(asm_options) %{!pipe:%g.s} %A }}}}}\n"}, + f771 %{!pipe:%g.f} %(cc1_options) %{I*} %{!fsyntax-only:%{!S:-o %{|!pipe:%g.s} |\n\ + as %(asm_options) %{!pipe:%g.s} %A }}}}}}\n"}, {".r", "@ratfor"}, {"@ratfor", "%{C:%{!E:%eGNU C does not support -C without using -E}}\ ratfor %{C} %{v} %i %{E:%W{o*}} %{!E: %{!pipe:-o %g.f} |\n\ - f771 %{!pipe:%g.f} %(cc1_options) %{I*} %{!S:-o %{|!pipe:%g.s} |\n\ - as %(asm_options) %{!pipe:%g.s} %A }}\n"}, + f771 %{!pipe:%g.f} %(cc1_options) %{I*} %{!fsyntax-only:%{!S:-o %{|!pipe:%g.s} |\n\ + as %(asm_options) %{!pipe:%g.s} %A }}}\n"}, {".f", "@f77"}, {".for", "@f77"}, {".FOR", "@f77"}, {"@f77", - "%{!M:%{!MM:%{!E:f771 %i %(cc1_options) %{I*} %{!S:-o %{|!pipe:%g.s} |\n\ - as %(asm_options) %{!pipe:%g.s} %A }}}}\n"}, + "%{!M:%{!MM:%{!E:f771 %i %(cc1_options) %{I*} %{!fsyntax-only:%{!S:-o %{|!pipe:%g.s} |\n\ + as %(asm_options) %{!pipe:%g.s} %A }}}}}\n"}, /* XXX This is perverse and should not be necessary. */ {"@f77-version", - "tradcpp0 -lang-fortran %(cpp_options) /dev/null \n\ + "tradcpp0 -lang-fortran %(cpp_options) %j \n\ f771 -fnull-version %1 \ %{!Q:-quiet} -dumpbase g77-version.f %{d*} %{m*} %{a*} \ %{g*} %{O*} %{W*} %{w} %{pedantic*} \ - -version -fversion %{f*} %{I*} -o %g.s /dev/null \n\ + -version -fversion %{f*} %{I*} -o %g.s %j \n\ as %a %Y -o %g%O %g.s %A \n\ ld %l %X -o %g %g%O %{A} %{d} %{e*} %{m} %{N} %{n} \ %{r} %{s} %{t} %{u*} %{x} %{z} %{Z} \ -- 2.11.0