This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix problem with Fortran, .F files, IMI, etc.


This fixes the cpp.F and cpp-2.F compile failures.  I'd been wondering
if there was anywhere that didn't specify -o, and now I found it!  :-)

It doesn't fix the execute failures on my system, because of a problem
with zero-sized objects.  I'll get to that shortly.

Bootstrapped & tested on powerpc-darwin.

-- 
- Geoffrey Keating <geoffk@apple.com>

====================
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/gcc/f/ChangeLog,v
retrieving revision 1.589
diff -u -p -u -p -r1.589 ChangeLog
--- ChangeLog	10 Jul 2003 20:42:21 -0000	1.589
+++ ChangeLog	14 Jul 2003 19:59:45 -0000
@@ -1,3 +1,7 @@
+2003-07-14  Geoffrey Keating  <geoffk@apple.com>
+
+	* lang-specs.h (f77-cpp-input): Use -o to specify the CPP output file.
+
 2003-07-10  Toon Moene  <toon@moene.indiv.nluug.nl>
 
 	* ffe.texi: Correctly use @var{srcdir}.
Index: lang-specs.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/f/lang-specs.h,v
retrieving revision 1.38
diff -u -p -u -p -r1.38 lang-specs.h
--- lang-specs.h	13 Mar 2003 02:38:00 -0000	1.38
+++ lang-specs.h	14 Jul 2003 19:59:45 -0000
@@ -31,7 +31,7 @@ the Free Software Foundation, 59 Temple 
   {"@f77-cpp-input",
    "cc1 -E -traditional-cpp -D_LANGUAGE_FORTRAN %(cpp_options) \
         %{E|M|MM:%(cpp_debug_options)}\
-        %{!M:%{!MM:%{!E: %|.f |\n\
+        %{!M:%{!MM:%{!E: -o %|.f |\n\
     f771 %|.f %(cc1_options) %{I*} %{!fsyntax-only:%(invoke_as)}}}}", 0},
   {".r", "@ratfor", 0},
   {"@ratfor",
====================


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]