From: Manfred Hollstein Date: Fri, 11 Dec 1998 08:27:07 +0000 (+0000) Subject: cpplib.h (HOST_WIDE_INT): Get definition from "machmode.h" and don't try to define... X-Git-Tag: prereleases/libgcj-0.1~1680 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5e36733735175e0cb805ba6064902092e46f9862;p=thirdparty%2Fgcc.git cpplib.h (HOST_WIDE_INT): Get definition from "machmode.h" and don't try to define it here. � * cpplib.h (HOST_WIDE_INT): Get definition from "machmode.h" and don't try to define it here. * Makefile.in (cppmain.o): Depend on machmode.h. (cpplib.o): Likewise. (cpperror.o): Likewise. (cppexp.o): Likewise. (cppfiles.o): Likewise. (cpphash.o): Likewise. (cppalloc.o): Likewise. (fix-header.o): Likewise. (scan-decls.o): Likewise. From-SVN: r24260 --- diff --git a/gcc/Makefile.in b/gcc/Makefile.in index a08735897237..28a58c58f908 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -1906,9 +1906,9 @@ cppmain$(exeext): cppmain.o libcpp.a $(LIBDEPS) $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o cppmain$(exeext) cppmain.o \ libcpp.a $(LIBS) -cppmain.o: cppmain.c $(CONFIG_H) cpplib.h system.h +cppmain.o: cppmain.c $(CONFIG_H) cpplib.h machmode.h system.h -cpplib.o: cpplib.c $(CONFIG_H) cpplib.h cpphash.h config.status system.h +cpplib.o: cpplib.c $(CONFIG_H) cpplib.h machmode.h cpphash.h config.status system.h $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ -DGCC_INCLUDE_DIR=\"$(libsubdir)/include\" \ -DGPLUSPLUS_INCLUDE_DIR=\"$(gxx_include_dir)\" \ @@ -1917,15 +1917,15 @@ cpplib.o: cpplib.c $(CONFIG_H) cpplib.h cpphash.h config.status system.h -DTOOL_INCLUDE_DIR=\"$(tooldir)/include\" \ -c `echo $(srcdir)/cpplib.c | sed 's,^\./,,'` -cpperror.o: cpperror.c $(CONFIG_H) cpplib.h system.h +cpperror.o: cpperror.c $(CONFIG_H) cpplib.h machmode.h system.h -cppexp.o: cppexp.c $(CONFIG_H) cpplib.h system.h +cppexp.o: cppexp.c $(CONFIG_H) cpplib.h machmode.h system.h -cppfiles.o: cppfiles.c $(CONFIG_H) cpplib.h system.h +cppfiles.o: cppfiles.c $(CONFIG_H) cpplib.h machmode.h system.h -cpphash.o: cpphash.c cpplib.h cpphash.h $(CONFIG_H) system.h +cpphash.o: cpphash.c cpplib.h machmode.h cpphash.h $(CONFIG_H) system.h -cppalloc.o: cppalloc.c $(CONFIG_H) cpplib.h system.h +cppalloc.o: cppalloc.c $(CONFIG_H) cpplib.h machmode.h system.h # Note for the stamp targets, we run the program `true' instead of # having an empty command (nothing following the semicolon). @@ -2142,10 +2142,10 @@ fix-header: fix-header.o scan-decls.o scan.o xsys-protos.h $(HOST_LIBDEPS) \ scan-decls.o scan.o libcpp.a $(HOST_LIBS) fix-header.o: fix-header.c $(srcdir)/../include/obstack.h scan.h \ - xsys-protos.h $(build_xm_file) system.h cpplib.h cpphash.h + xsys-protos.h $(build_xm_file) system.h cpplib.h machmode.h cpphash.h $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/fix-header.c -scan-decls.o: scan-decls.c scan.h cpplib.h $(build_xm_file) system.h +scan-decls.o: scan-decls.c scan.h cpplib.h machmode.h $(build_xm_file) system.h $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/scan-decls.c # stmp-fixproto depends on this, not on fix-header directly. diff --git a/gcc/cpplib.h b/gcc/cpplib.h index 65c286b7e182..390da10cb9b0 100644 --- a/gcc/cpplib.h +++ b/gcc/cpplib.h @@ -668,22 +668,7 @@ typedef struct if_stack IF_STACK_FRAME; Watch out: on some crazy hosts `long' is shorter than `int'. */ #ifndef HOST_WIDE_INT -# if HAVE_INTTYPES_H -# include -# define HOST_WIDE_INT intmax_t -# else -# if (HOST_BITS_PER_LONG <= HOST_BITS_PER_INT \ - && HOST_BITS_PER_LONGLONG <= HOST_BITS_PER_INT) -# define HOST_WIDE_INT int -# else -# if (HOST_BITS_PER_LONGLONG <= HOST_BITS_PER_LONG \ - || ! (defined LONG_LONG_MAX || defined LLONG_MAX)) -# define HOST_WIDE_INT long -# else -# define HOST_WIDE_INT long long -# endif -# endif -# endif +#include "machmode.h" #endif extern void cpp_buf_line_and_col PARAMS((cpp_buffer *, long *, long *));