Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/gnu/usr.bin/gcc Add gcc 2.95.2 build framework, and i386 con...
details: https://anonhg.NetBSD.org/src/rev/901654491415
branches: trunk
changeset: 511366:901654491415
user: tv <tv%NetBSD.org@localhost>
date: Mon Jun 18 16:18:30 2001 +0000
description:
Add gcc 2.95.2 build framework, and i386 config files from toolchain2netbsd.
This should not be used directly for building host tools; rather, the top
level bootstrap (to be committed separately) should be used to build the
entire system including this compiler.
diffstat:
gnu/usr.bin/gcc/Makefile | 19 +
gnu/usr.bin/gcc/Makefile.backend | 17 +
gnu/usr.bin/gcc/Makefile.frontend | 17 +
gnu/usr.bin/gcc/Makefile.inc | 13 +
gnu/usr.bin/gcc/arch/i386/auto-host.h | 370 ++++++++++++++++++++++++++++++++++
gnu/usr.bin/gcc/arch/i386/config.h | 18 +
gnu/usr.bin/gcc/arch/i386/defs.mk | 20 +
gnu/usr.bin/gcc/arch/i386/gencheck.h | 5 +
gnu/usr.bin/gcc/arch/i386/hconfig.h | 18 +
gnu/usr.bin/gcc/arch/i386/options.h | 5 +
gnu/usr.bin/gcc/arch/i386/specs.h | 6 +
gnu/usr.bin/gcc/arch/i386/tconfig.h | 12 +
gnu/usr.bin/gcc/arch/i386/tm.h | 9 +
gnu/usr.bin/gcc/backend/Makefile | 57 +++++
gnu/usr.bin/gcc/cc1/Makefile | 8 +
gnu/usr.bin/gcc/cc1obj/Makefile | 10 +
gnu/usr.bin/gcc/cc1plus/Makefile | 10 +
gnu/usr.bin/gcc/f771/Makefile | 33 +++
gnu/usr.bin/gcc/frontend/Makefile | 22 ++
gnu/usr.bin/gcc/frontend/multilib.h | 13 +
gnu/usr.bin/gcc/g++/Makefile | 15 +
gnu/usr.bin/gcc/g77/Makefile | 15 +
gnu/usr.bin/gcc/gcc/Makefile | 15 +
23 files changed, 727 insertions(+), 0 deletions(-)
diffs (truncated from 819 to 300 lines):
diff -r 824bdc1e9c62 -r 901654491415 gnu/usr.bin/gcc/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/gnu/usr.bin/gcc/Makefile Mon Jun 18 16:18:30 2001 +0000
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.8 2001/06/18 16:18:30 tv Exp $
+
+.include <bsd.own.mk>
+
+.ifdef USE_NEW_TOOLCHAIN
+
+SUBDIR+= backend cc1 cc1obj cc1plus f771 frontend g++ g77 gcc
+
+# Dependencies to allow single-target builds.
+all-cc1 all-cc1obj all-cc1plus all-f771: all-backend
+all-g++ all-g77 all-gcc: all-frontend
+
+.include <bsd.subdir.mk>
+
+.else
+# Do nothing. (PROG undefined)
+MKOBJ=no
+.include <bsd.prog.mk>
+.endif
diff -r 824bdc1e9c62 -r 901654491415 gnu/usr.bin/gcc/Makefile.backend
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/gnu/usr.bin/gcc/Makefile.backend Mon Jun 18 16:18:30 2001 +0000
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile.backend,v 1.1 2001/06/18 16:18:30 tv Exp $
+
+MKMAN= no
+BINDIR= /usr/libexec
+
+CPPFLAGS+= -I${GCCARCH} -I${BACKENDOBJ} \
+ ${G_ALL_CFLAGS:M-D*} ${G_INCLUDES:M-I*:N-I.*}
+
+.include <bsd.own.mk>
+
+LIBIBERTYOBJ!= cd ${.CURDIR}/../../../lib/libiberty && ${PRINTOBJDIR}
+BACKENDOBJ!= cd ${.CURDIR}/../backend && ${PRINTOBJDIR}
+
+DPADD= ${BACKENDOBJ}/libbackend.a ${LIBIBERTYOBJ}/libiberty.a
+LDADD= -L${BACKENDOBJ} -lbackend -L${LIBIBERTYOBJ} -liberty
+
+.include <bsd.prog.mk>
diff -r 824bdc1e9c62 -r 901654491415 gnu/usr.bin/gcc/Makefile.frontend
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/gnu/usr.bin/gcc/Makefile.frontend Mon Jun 18 16:18:30 2001 +0000
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile.frontend,v 1.1 2001/06/18 16:18:31 tv Exp $
+
+MKMAN= no
+BINDIR= /usr/libexec
+
+CPPFLAGS+= -I${GCCARCH} -I${FRONTENDOBJ} \
+ ${G_ALL_CFLAGS:M-D*} ${G_INCLUDES:M-I*:N-I.*}
+
+.include <bsd.own.mk>
+
+LIBIBERTYOBJ!= cd ${.CURDIR}/../../../lib/libiberty && ${PRINTOBJDIR}
+FRONTENDOBJ!= cd ${.CURDIR}/../frontend && ${PRINTOBJDIR}
+
+DPADD= ${FRONTENDOBJ}/libfrontend.a ${LIBIBERTYOBJ}/libiberty.a
+LDADD= -L${FRONTENDOBJ} -lfrontend -L${LIBIBERTYOBJ} -liberty
+
+.include <bsd.prog.mk>
diff -r 824bdc1e9c62 -r 901654491415 gnu/usr.bin/gcc/Makefile.inc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/gnu/usr.bin/gcc/Makefile.inc Mon Jun 18 16:18:30 2001 +0000
@@ -0,0 +1,13 @@
+# $NetBSD: Makefile.inc,v 1.1 2001/06/18 16:18:31 tv Exp $
+
+TOP= ${.CURDIR}/../../..
+DIST= ${TOP}/dist/toolchain
+
+GCCARCH= ${.CURDIR}/../arch/${MACHINE_ARCH}
+
+CPPFLAGS+= -DLOCALEDIR=\"/usr/share/locale\" -DNETBSD_NATIVE
+
+# Don't auto-frob .y or .l files.
+.l.c .y.c .y.h:
+
+.include "${GCCARCH}/defs.mk"
diff -r 824bdc1e9c62 -r 901654491415 gnu/usr.bin/gcc/arch/i386/auto-host.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/gnu/usr.bin/gcc/arch/i386/auto-host.h Mon Jun 18 16:18:30 2001 +0000
@@ -0,0 +1,370 @@
+/* This file is automatically generated. DO NOT EDIT! */
+/* Generated from: NetBSD */
+
+/* auto-host.h. Generated automatically by configure. */
+/* config.in. Generated automatically from configure.in by autoheader. */
+/* Define if you can safely include both <string.h> and <strings.h>. */
+#define STRING_WITH_STRINGS 1
+
+/* Define if printf supports "%p". */
+#define HAVE_PRINTF_PTR 1
+
+/* Define if you want expensive run-time checks. */
+/* #undef ENABLE_CHECKING */
+
+/* Define to 1 if NLS is requested. */
+/* #undef ENABLE_NLS */
+
+/* Define as 1 if you have catgets and don't want to use GNU gettext. */
+/* #undef HAVE_CATGETS */
+
+/* Define as 1 if you have gettext and don't want to use GNU gettext. */
+/* #undef HAVE_GETTEXT */
+
+/* Define if your cpp understands the stringify operator. */
+#define HAVE_CPP_STRINGIFY 1
+
+/* Define if your compiler understands volatile. */
+#define HAVE_VOLATILE 1
+
+/* Define if your assembler supports specifying the maximum number
+ of bytes to skip when using the GAS .p2align command. */
+#define HAVE_GAS_MAX_SKIP_P2ALIGN 1
+
+/* Define if your assembler supports .balign and .p2align. */
+#define HAVE_GAS_BALIGN_AND_P2ALIGN 1
+
+/* Define if your assembler supports .subsection and .subsection -1 starts
+ emitting at the beginning of your section */
+/* #undef HAVE_GAS_SUBSECTION_ORDERING */
+
+/* Define if your assembler uses the old HImode fild and fist notation. */
+/* #undef HAVE_GAS_FILDS_FISTS */
+
+/* Define if you have a working <inttypes.h> header file. */
+/* #undef HAVE_INTTYPES_H */
+
+/* Define if your locale.h file contains LC_MESSAGES. */
+#define HAVE_LC_MESSAGES 1
+
+/* Define as 1 if you have the stpcpy function. */
+/* #undef HAVE_STPCPY */
+
+/* Whether malloc must be declared even if <stdlib.h> is included. */
+/* #undef NEED_DECLARATION_MALLOC */
+
+/* Whether realloc must be declared even if <stdlib.h> is included. */
+/* #undef NEED_DECLARATION_REALLOC */
+
+/* Whether calloc must be declared even if <stdlib.h> is included. */
+/* #undef NEED_DECLARATION_CALLOC */
+
+/* Whether free must be declared even if <stdlib.h> is included. */
+/* #undef NEED_DECLARATION_FREE */
+
+/* Whether bcopy must be declared even if <string.h> is included. */
+/* #undef NEED_DECLARATION_BCOPY */
+
+/* Whether bcmp must be declared even if <string.h> is included. */
+/* #undef NEED_DECLARATION_BCMP */
+
+/* Whether bzero must be declared even if <string.h> is included. */
+/* #undef NEED_DECLARATION_BZERO */
+
+/* Whether index must be declared even if <string.h> is included. */
+/* #undef NEED_DECLARATION_INDEX */
+
+/* Whether rindex must be declared even if <string.h> is included. */
+/* #undef NEED_DECLARATION_RINDEX */
+
+/* Whether getenv must be declared even if <stdlib.h> is included. */
+/* #undef NEED_DECLARATION_GETENV */
+
+/* Whether atol must be declared even if <stdlib.h> is included. */
+/* #undef NEED_DECLARATION_ATOL */
+
+/* Whether atof must be declared even if <stdlib.h> is included. */
+/* #undef NEED_DECLARATION_ATOF */
+
+/* Whether sbrk must be declared even if <stdlib.h> is included. */
+/* #undef NEED_DECLARATION_SBRK */
+
+/* Whether abort must be declared even if <stdlib.h> is included. */
+/* #undef NEED_DECLARATION_ABORT */
+
+/* Whether strerror must be declared even if <string.h> is included. */
+/* #undef NEED_DECLARATION_STRERROR */
+
+/* Whether strsignal must be declared even if <string.h> is included. */
+/* #undef NEED_DECLARATION_STRSIGNAL */
+
+/* Whether strstr must be declared even if <string.h> is included. */
+/* #undef NEED_DECLARATION_STRSTR */
+
+/* Whether getcwd must be declared even if <unistd.h> is included. */
+/* #undef NEED_DECLARATION_GETCWD */
+
+/* Whether getwd must be declared even if <unistd.h> is included. */
+/* #undef NEED_DECLARATION_GETWD */
+
+/* Whether getrlimit must be declared even if <sys/resource.h> is included. */
+/* #undef NEED_DECLARATION_GETRLIMIT */
+
+/* Whether setrlimit must be declared even if <sys/resource.h> is included. */
+/* #undef NEED_DECLARATION_SETRLIMIT */
+
+/* Whether putc_unlocked must be declared even if <stdio.h> is included. */
+/* #undef NEED_DECLARATION_PUTC_UNLOCKED */
+
+/* Whether fputs_unlocked must be declared even if <stdio.h> is included. */
+#define NEED_DECLARATION_FPUTS_UNLOCKED 1
+
+/* Define to enable the use of a default assembler. */
+/* #undef DEFAULT_ASSEMBLER */
+
+/* Define to enable the use of a default linker. */
+/* #undef DEFAULT_LINKER */
+
+/* Define if host mkdir takes a single argument. */
+/* #undef MKDIR_TAKES_ONE_ARG */
+
+/* Define to the name of the distribution. */
+#define PACKAGE "gcc"
+
+/* Define to the version of the distribution. */
+#define VERSION "2.95.3"
+
+/* Define if using alloca.c. */
+/* #undef C_ALLOCA */
+
+/* Define to empty if the keyword does not work. */
+/* #undef const */
+
+/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems.
+ This function is required for alloca.c support on those systems. */
+/* #undef CRAY_STACKSEG_END */
+
+/* Define if you have alloca, as a function or macro. */
+#define HAVE_ALLOCA 1
+
+/* Define if you have <alloca.h> and it should be used (not on Ultrix). */
+/* #undef HAVE_ALLOCA_H */
+
+/* Define if you don't have vprintf but do have _doprnt. */
+/* #undef HAVE_DOPRNT */
+
+/* Define if you have a working `mmap' system call. */
+#define HAVE_MMAP 1
+
+/* Define if you have <sys/wait.h> that is POSIX.1 compatible. */
+#define HAVE_SYS_WAIT_H 1
+
+/* Define if you have <vfork.h>. */
+/* #undef HAVE_VFORK_H */
+
+/* Define if you have the vprintf function. */
+#define HAVE_VPRINTF 1
+
+/* Define as __inline if that's what the C compiler calls it. */
+/* #undef inline */
+
+/* Define to `long' if <sys/types.h> doesn't define. */
+/* #undef off_t */
+
+/* Define to `int' if <sys/types.h> doesn't define. */
+/* #undef pid_t */
+
+/* Define to `unsigned' if <sys/types.h> doesn't define. */
+/* #undef size_t */
+
+/* If using the C implementation of alloca, define if you know the
+ direction of stack growth for your system; otherwise it will be
+ automatically deduced at run-time.
+ STACK_DIRECTION > 0 => grows toward higher addresses
+ STACK_DIRECTION < 0 => grows toward lower addresses
+ STACK_DIRECTION = 0 => direction of growth unknown
+ */
+/* #undef STACK_DIRECTION */
+
+/* Define if you have the ANSI C header files. */
+#define STDC_HEADERS 1
+
+/* Define if `sys_siglist' is declared by <signal.h>. */
+#define SYS_SIGLIST_DECLARED 1
+
+/* Define if you can safely include both <sys/time.h> and <time.h>. */
+#define TIME_WITH_SYS_TIME 1
+
+/* Define vfork as fork if vfork does not work. */
+/* #undef vfork */
+
+/* Define if you have the __argz_count function. */
+/* #undef HAVE___ARGZ_COUNT */
+
+/* Define if you have the __argz_next function. */
+/* #undef HAVE___ARGZ_NEXT */
+
+/* Define if you have the __argz_stringify function. */
+/* #undef HAVE___ARGZ_STRINGIFY */
+
+/* Define if you have the atoll function. */
+#define HAVE_ATOLL 1
+
+/* Define if you have the atoq function. */
+/* #undef HAVE_ATOQ */
Home |
Main Index |
Thread Index |
Old Index