[PATCH] [gfortran] fix driver so that it will use the target's define
Andrew Pinski
pinskia@physics.uc.edu
Fri Apr 23 13:50:00 GMT 2004
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
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: temp.diff.txt
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20040423/186df4ee/attachment.txt>
More information about the Fortran
mailing list