diff options
author | fx <fx@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-06-15 07:37:33 +0000 |
---|---|---|
committer | fx <fx@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-06-15 07:37:33 +0000 |
commit | 298f96db2201fe2f5f3e8e2d20c17b9d692ab939 (patch) | |
tree | a3ba80223dd6d332b89188fd52d4e3cef4b3c47a /gcc/f/lang-specs.h | |
parent | abce7dcded377b8fc20aaf668f4184d0e8af6b69 (diff) | |
download | gcc-298f96db2201fe2f5f3e8e2d20c17b9d692ab939.tar.gz |
Thu May 28 21:32:18 1998 Craig Burley <burley@gnu.org>
Restore circa-0.5.22 capabilities of `g77' driver:
* Make-lang.in (g77spec.o): Depend on f/version.h.
(g77version.o): New rule to compile g77 version info.
(g77$(exeext)): Depend on and link in g77version.o.
* g77spec.c: Rewrite to be more like 0.5.22 version
of g77.c, making filtering of command line smarter
so mixed Fortran and C (etc.) can be compiled, verbose
version info can be obtained, etc.
* lang-specs.h (f77-version): New "language" to support
"g77 -v" command under new gcc 2.8 regime.
* lex.c (ffelex_file_fixed): If -fnull-version, just
substitute a "source file" that prints out version info.
* top.c, top.h: Support -fnull-version.
* lang-specs.h: Use "%O" instead of OO macro to specify
object extension. Remove old stringizing cruft.
* Make-lang.in (g77.c, g77spec.o, g77.o, g77$(exeext),
g77-cross$(exeext), f771,
$(srcdir)/f/g77.info, $(srcdir)/f/g77.dvi,
$(srcdir)/f/intdoc.texi,
f77.install-common, f77.install-info, f77.install-man,
f77.uninstall, $(G77STAGESTUFF), f77.stage1, f77.stage2,
f77.stage3, f77.stage4, f77.distdir): Don't do anything
unless user specified "f77" or "F77" in $LANGUAGES either
during configuration or explicitly. For convenience of
various tests and to work around lack of the assignment
"LANGUAGES=$(BOOT_LANGUAGES)" in the "make stage1" command
of "make bootstrap" in gcc, use a touch file named "lang-f77"
to communicate whether this is the case.
* Make-lang.in (F77_FLAGS_TO_PASS): Delete this macro,
replace with minimal expansion of its former self in
each of the two instances where it was used.
* Makefile.in (HOST_CC): Delete this definition.
* com.c (index, rindex): Delete these declarations.
* proj.h: (isascii): Delete this.
* Make-lang.in (f77.install-common): Warn if `f77-install-ok'
flag-file exists, since it no longer triggers any activity.
Rename libf2c.a and f2c.h to libg2c.a and g2c.h,
normalize and simplify g77/libg2c build process:
* Make-lang.in: Remove all support for overwriting
/usr/bin/f77 etc., or whatever the actual names are
via $(prefix) and $(local_prefix). (g++ overwrites
/usr/bin/c++, but then it's often the only C++ compiler
on the system; f77 often exists on systems that are
installing g77.)
(f77.realclean): Remove obsolete target.
(g77.c, g77$(exeext)): Minor changes to look more like g++'s
stuff.
(f771): Now built with srcdir=gcc/f, not srcdir=gcc, to be
more like g++ and such.
(f/Makefile): Removed, as g++ doesn't need this rule.
(f77.install-common): No longer install f77, etc.
(f77.install-man): No longer install f77.1.
(f77.uninstall): No longer uninstall f77, f77.1, etc.
(f77.stage1, f77.stage2, f77.stage3, f77.stage4): Do work
only if "f77" appears in $(LANGUAGES).
(Note: gcc's Makefile.in's bootstrap target should set
LANGUAGES=$(BOOT_LANGUAGES) when making the stage1 target.)
* Makefile.in: Update vis-a-vis gcc/cp/Makefile.in.
(none): Remove.
(g77-only): Relocate.
(all.indirect, f771, *.o): Now assumes current directory
is this dir (gcc/f), not the parent directory.
(TAGS): Remove "echo 'parse.y,0' >> TAGS ;" line.
* config-lang.in: Delete commented-out code.
Fix stagestuff definition. Add more stuff to
diff_excludes definition. Don't create any directories.
Set outputs to f/Makefile, to get variable substition
to happen (what does that really do, anyway?!).
* g77spec.c: Rename libf2c to libg2c.
* com.h: Remove all of the gcc back-end decls,
since egcs should have all of them correct.
* com.c: Include "proj.h" before anything else,
as that's how things are supposed to work.
* ste.c: Ditto.
* bad.c: Include "flags.j" here, since some diagnostics
check flag_pedantic_errors.
* Makefile.in (f/*.o): Rebuild dependencies via
deps-kinda.
* output.j: New source file.
* Make-lang.in (F77_SRCS): Update accordingly.
* Makefile.in (OUTPUT_H): Ditto.
(deps-kinda): Ditto.
* com.c: Include "output.j" here.
* lex.c: Ditto.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20506 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/f/lang-specs.h')
-rw-r--r-- | gcc/f/lang-specs.h | 42 |
1 files changed, 26 insertions, 16 deletions
diff --git a/gcc/f/lang-specs.h b/gcc/f/lang-specs.h index eb5c17c81de..bf8786febde 100644 --- a/gcc/f/lang-specs.h +++ b/gcc/f/lang-specs.h @@ -24,15 +24,6 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA /* This is the contribution to the `default_compilers' array in gcc.c for g77. */ -#ifdef __STDC__ /* Else stringizing of OO below won't work, but in - K&R case we're not building the f77 language. */ - -#ifdef OBJECT_SUFFIX /* Not defined compiling gcc.c prior to 2.7.0. */ -#define OO "%O" -#else -#define OO ".o" -#endif - {".F", {"@f77-cpp-input"}}, {".fpp", {"@f77-cpp-input"}}, {"@f77-cpp-input", @@ -60,7 +51,7 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA %{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}}\ %{S:%W{o*}%{!o*:-o %b.s}}%{!S:-o %{|!pipe:%g.s}} |\n\ %{!S:as %a %Y\ - %{c:%W{o*}%{!o*:-o %w%b" OO "}}%{!c:-o %d%w%u" OO "}\ + %{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}\ %{!pipe:%g.s} %A\n }}}}"}}, {".r", {"@ratfor"}}, {"@ratfor", @@ -75,7 +66,7 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA %{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}}\ %{S:%W{o*}%{!o*:-o %b.s}}%{!S:-o %{|!pipe:%g.s}} |\n\ %{!S:as %a %Y\ - %{c:%W{o*}%{!o*:-o %w%b" OO "}}%{!c:-o %d%w%u" OO "}\ + %{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}\ %{!pipe:%g.s} %A\n }}"}}, {".f", {"@f77"}}, {".for", {"@f77"}}, @@ -88,9 +79,28 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA %{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}}\ %{S:%W{o*}%{!o*:-o %b.s}}%{!S:-o %{|!pipe:%g.s}} |\n\ %{!S:as %a %Y\ - %{c:%W{o*}%{!o*:-o %w%b" OO "}}%{!c:-o %d%w%u" OO "}\ + %{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}\ %{!pipe:%g.s} %A\n }}}}"}}, - -#undef OO - -#endif + {"@f77-version", + {"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 \ + %{ansi:-trigraphs -$ -D__STRICT_ANSI__} \ + %{!undef:%P} -D_LANGUAGE_FORTRAN %{trigraphs} \ + %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}} -traditional \ + %{g*} %{W*} %{w} %{pedantic*} %{H} %{d*} %C %{D*} %{U*} %{i*} %Z \ + /dev/null /dev/null \n\ + f771 -fnull-version %(f771) \ + %{!Q:-quiet} -dumpbase g77-version.f %{d*} %{m*} %{a} \ + %{g*} %{O*} %{W*} %{w} %{pedantic*} \ + -version -fversion %{f*} %{I*} -o %g.s /dev/null \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} \ + %{!A:%{!nostdlib:%{!nostartfiles:%S}}} \ + %{static:} %{L*} %D -lg2c -lm \ + %{!nostdlib:%{!nodefaultlibs:%G %L %G}} \ + %{!A:%{!nostdlib:%{!nostartfiles:%E}}} \ + %{T*} \n\ + %g \n"}}, |