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]

[PATCH] [gfortran] fix driver so that it will use the target's define


The driver for gfortran will not use the target's defines. This is needed to get the
testsuite failures on powerpc-apple-darwin down to the same levels as other targets.
This patch fixes that by including the needed headers for the targets defines.
This patch is parallel to what g++ does also.


OK?

Thanks,
Andrew Pinski

ChangeLog:
	* gfortranspec.c: Include the target headers.

Patch:

Index: gfortranspec.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/fortran/Attic/gfortranspec.c,v
retrieving revision 1.1.2.2
diff -u -p -r1.1.2.2 gfortranspec.c
--- gfortranspec.c	27 Jul 2003 18:40:14 -0000	1.1.2.2
+++ gfortranspec.c	23 Apr 2004 13:23:13 -0000
@@ -48,6 +48,10 @@ Boston, MA 02111-1307, USA.  */
 #include "system.h"
 #include "gcc.h"

+#include "coretypes.h"
+#include "multilib.h" /* before tm.h */
+#include "tm.h"
+
 #ifndef MATH_LIBRARY
 #define MATH_LIBRARY "-lm"
 #endif

Attachment: temp.diff.txt
Description: Text document


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