This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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,committed] Fix "incpath" inclusion in config/darwin (was: [patch, fortran] PR18428: use libcpp for preprocessing (review of C/C++ and fortran maintainers needed))


I committed the following patch as obvious (Rev. 135891)

Tobias


Dominique Dhumieres wrote:
Bootstrap fails on Darwin with:

...
echo '../../gcc-4.4-work/gcc/sdbout.c' >> tmp-gi.list
lsf=""; for f in $lsf; do \
	    echo "#include \"$f\""; \
	done | sed 's|../../gcc-4.4-work/gcc/||' > tmp-specs.h
make[3]: *** No rule to make target `c-incpath.h', needed by `darwin-c.o'.  Stop.
make[3]: *** Waiting for unfinished jobs....
...

The following patch fixes this problem:

[ibook-dhum] f90/bug% diff -u /opt/gcc/_gcc_clean/gcc/config/darwin-c.c /opt/gcc/gcc-4.4-work/gcc/config/darwin-c.c
--- /opt/gcc/_gcc_clean/gcc/config/darwin-c.c 2007-11-07 10:37:52.000000000 +0100
+++ /opt/gcc/gcc-4.4-work/gcc/config/darwin-c.c 2008-05-26 08:16:08.000000000 +0200
@@ -26,7 +26,7 @@
#include "tree.h"
#include "c-pragma.h"
#include "c-tree.h"
-#include "c-incpath.h"
+#include "incpath.h"
#include "c-common.h"
#include "toplev.h"
#include "flags.h"
[ibook-dhum] f90/bug% diff -u /opt/gcc/_gcc_clean/gcc/config/t-darwin /opt/gcc/gcc-4.4-work/gcc/config/t-darwin
--- /opt/gcc/_gcc_clean/gcc/config/t-darwin 2008-03-27 20:52:22.000000000 +0100
+++ /opt/gcc/gcc-4.4-work/gcc/config/t-darwin 2008-05-26 08:17:22.000000000 +0200
@@ -7,7 +7,7 @@
darwin-c.o: $(srcdir)/config/darwin-c.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
$(TM_H) $(CPPLIB_H) $(TREE_H) c-pragma.h $(C_TREE_H) toplev.h $(TM_P_H) \
- c-incpath.h flags.h $(C_COMMON_H)
+ incpath.h flags.h $(C_COMMON_H)
$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(srcdir)/config/darwin-c.c $(PREPROCESSOR_DEFINES)
gt-darwin.h : s-gtype ; @true


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