[BACK]Return to pcc.diff CVS log [TXT][DIR] Up to [local] / OpenXM / src / pcc

File: [local] / OpenXM / src / pcc / pcc.diff (download)

Revision 1.2, Wed May 18 03:29:02 2011 UTC (13 years ago) by ohara
Branch: MAIN
Changes since 1.1: +13 -0 lines

Fixed a bug of pcc for gcc v2.95.

diff -ubBr cc/cpp/Makefile.in.orig cc/cpp/Makefile.in
--- cc/cpp/Makefile.in.orig	2010-12-19 00:22:13.000000000 +0900
+++ cc/cpp/Makefile.in	2011-01-14 22:05:51.000000000 +0900
@@ -12,7 +12,7 @@
 prefix = @prefix@
 exec_prefix = @exec_prefix@
 bindir = @bindir@
-libexecdir = @libexecdir@
+libexecdir = @bindir@
 datarootdir = @datarootdir@
 mandir = @mandir@
 strip = @strip@
@@ -30,7 +30,7 @@
 
 OBJS=cpp.o cpy.o token.o compat.o
 HEADERS=cpp.h
-DEST=@BINPREFIX@cpp$(EXEEXT)
+DEST=@BINPREFIX@ox_cpp$(EXEEXT)
 
 MIPDIR=$(top_srcdir)/mip
 MDIR=$(top_srcdir)/arch/$(TARGMACH)
@@ -89,8 +89,6 @@
 		strip ${DESTDIR}${libexecdir}/${DEST} ;	\
 		echo strip ${DESTDIR}${libexecdir}/${DEST} ;	\
 	fi
-	test -z "${DESTDIR}$(mandir)/man1" || mkdir -p "${DESTDIR}$(mandir)/man1"       
-	${INSTALL} $(srcdir)/cpp.1 ${DESTDIR}${mandir}/man1/$(DEST).1
 
 clean:
 	/bin/rm -f $(OBJS) $(DEST) lex.yy.c y.tab.[ch] tests/run*
diff -ubBr mip/node.h.orig mip/node.h
--- mip/node.h.orig	2010-08-11 23:08:44.000000000 +0900
+++ mip/node.h	2011-05-18 12:21:30.000000000 +0900
@@ -42,7 +42,7 @@
 struct attr {
 	struct attr *next;
 	int atype;
-	union aarg aa[];
+	union aarg aa[1];
 };
 
 /*