summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2000-01-12 17:34:22 +0000
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2000-01-12 17:34:22 +0000
commit17d6acc677ae083d8f829038710f3b6ed0dcd4cf (patch)
tree68a380ebaa22916925253a080e8f0cb322ea207d
parent798e37947c85b065069c4c6a2bf59c476f9d21c3 (diff)
downloadgcc-17d6acc677ae083d8f829038710f3b6ed0dcd4cf.tar.gz
* cccp.c: Accept and ignore -lang-fortran.
* f/lang-specs.h: Pass -lang-fortran to preprocessor. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31355 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/cccp.c3
-rw-r--r--gcc/f/ChangeLog4
-rw-r--r--gcc/f/lang-specs.h4
4 files changed, 13 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ebf58570acd..ac8d0b47c50 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2000-01-12 Zack Weinberg <zack@wolery.cumb.org
+
+ * cccp.c: Accept and ignore -lang-fortran.
+
2000-01-12 Robert Lipe <robertl@sco.com>
* i386/sysv5.h (CPP_SPEC, LIBSPEC): Add -pthreadT.
diff --git a/gcc/cccp.c b/gcc/cccp.c
index 0ee216a2c34..16231d9912a 100644
--- a/gcc/cccp.c
+++ b/gcc/cccp.c
@@ -1123,6 +1123,7 @@ print_help ()
printf (" -lang-objc Assume that the input sources are in ObjectiveC\n");
printf (" -lang-objc++ Assume that the input sources are in ObjectiveC++\n");
printf (" -lang-asm Assume that the input sources are in assembler\n");
+ printf (" -lang-fortran Assume that the input sources are in Fortran\n");
printf (" -lang-chill Assume that the input sources are in Chill\n");
printf (" -std=<std name> Specify the conformance standard; one of:\n");
printf (" gnu89, gnu9x, c89, c9x, iso9899:1990,\n");
@@ -1457,6 +1458,8 @@ main (argc, argv)
cplusplus = 1, cplusplus_comments = 1, c89 = 0, c9x = 0, objc = 1;
else if (! strcmp (argv[i], "-lang-asm"))
lang_asm = 1;
+ else if (! strcmp (argv[i], "-lang-fortran"))
+ /* Doesn't actually do anything. */ ;
else if (! strcmp (argv[i], "-lint"))
for_lint = 1;
break;
diff --git a/gcc/f/ChangeLog b/gcc/f/ChangeLog
index 2e33d09e026..b6ed46f3aad 100644
--- a/gcc/f/ChangeLog
+++ b/gcc/f/ChangeLog
@@ -1,3 +1,7 @@
+Wed Jan 12 09:32:59 2000 Zack Weinberg <zack@wolery.cumb.org>
+
+ * lang-specs.h: Pass -lang-fortran to preprocessor.
+
Thu Dec 30 13:14:31 1999 Richard Henderson <rth@cygnus.com>
* stw.h (struct _ffestw_): Change type of uses_ to int.
diff --git a/gcc/f/lang-specs.h b/gcc/f/lang-specs.h
index b41956d8eb2..924802e73d9 100644
--- a/gcc/f/lang-specs.h
+++ b/gcc/f/lang-specs.h
@@ -35,7 +35,7 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
Sun f77, at least) so you test `__unix' rather than `unix'.
-D_LANGUAGE_FORTRAN is used by some compilers like SGI and
might as well be in there. */
- {"cpp -lang-c %{nostdinc*} %{C} %{v} %{A*} %{I*} %{P} %{$} %I\
+ {"cpp -lang-fortran %{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}\
%{!no-gcc:-D__GNUC__=%v1 -D__GNUC_MINOR__=%v2}\
@@ -85,7 +85,7 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
%{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}\
%{!pipe:%g.s} %A\n }}}}"}},
{"@f77-version",
- {"cpp -lang-c %{nostdinc*} %{C} %{v} %{A*} %{I*} %{P} %{$} %I \
+ {"cpp -lang-fortran %{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} \
%{!no-gcc:-D__GNUC__=%v1 -D__GNUC_MINOR__=%v2} \