Module Name: src Committed By: christos Date: Wed Apr 18 02:52:07 UTC 2012
Added Files: src/external/gpl3/gcc/lib/libmudflap: Makefile config.h shlib_version src/external/gpl3/gcc/lib/libmudflapth: Makefile shlib_version Log Message: add preliminary build glue for mudflap; only the shared libraries work, the static ones will need us to add __real_foo aliases for a bunch of functions in libc. To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 src/external/gpl3/gcc/lib/libmudflap/Makefile \ src/external/gpl3/gcc/lib/libmudflap/config.h \ src/external/gpl3/gcc/lib/libmudflap/shlib_version cvs rdiff -u -r0 -r1.1 src/external/gpl3/gcc/lib/libmudflapth/Makefile \ src/external/gpl3/gcc/lib/libmudflapth/shlib_version Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Added files: Index: src/external/gpl3/gcc/lib/libmudflap/Makefile diff -u /dev/null src/external/gpl3/gcc/lib/libmudflap/Makefile:1.1 --- /dev/null Tue Apr 17 22:52:07 2012 +++ src/external/gpl3/gcc/lib/libmudflap/Makefile Tue Apr 17 22:52:07 2012 @@ -0,0 +1,19 @@ +# $NetBSD: Makefile,v 1.1 2012/04/18 02:52:07 christos Exp $ + +NOLINT=yes # core dumps +UNSUPPORTED_COMPILER.clang= # defined + +.include <bsd.own.mk> + +DIST= ${NETBSDSRCDIR}/external/gpl3/gcc/dist/libmudflap +CPPFLAGS+= -I${.CURDIR} +LINTFLAGS+=-g + +.PATH: ${DIST} + +LIB=mudflap +SRCS=mf-runtime.c mf-heuristics.c mf-hooks1.c mf-hooks2.c +INCS=mf-runtime.h +INCSDIR=/usr/include + +.include <bsd.lib.mk> Index: src/external/gpl3/gcc/lib/libmudflap/config.h diff -u /dev/null src/external/gpl3/gcc/lib/libmudflap/config.h:1.1 --- /dev/null Tue Apr 17 22:52:07 2012 +++ src/external/gpl3/gcc/lib/libmudflap/config.h Tue Apr 17 22:52:07 2012 @@ -0,0 +1,288 @@ +/* config.h. Generated from config.h.in by configure. */ +/* config.h.in. Generated from configure.ac by autoheader. */ + +/* Define to the name of the symbol used for the entry point. */ +#define ENTRY_POINT _start + +/* Define to 1 if you have the `addmntent' function. */ +/* #undef HAVE_ADDMNTENT */ + +/* Define to 1 if you have the <arpa/inet.h> header file. */ +#define HAVE_ARPA_INET_H 1 + +/* Define to 1 if you have the `backtrace' function. */ +/* #undef HAVE_BACKTRACE */ + +/* Define to 1 if you have the `backtrace_symbols' function. */ +/* #undef HAVE_BACKTRACE_SYMBOLS */ + +/* Define to 1 if the target assembler supports thread-local storage. */ +#define HAVE_CC_TLS 1 + +/* Define to 1 if you have the <ctype.h> header file. */ +#define HAVE_CTYPE_H 1 + +/* Define to 1 if you have the `cuserid' function. */ +/* #undef HAVE_CUSERID */ + +/* Define to 1 if you have the <dirent.h> header file. */ +#define HAVE_DIRENT_H 1 + +/* Define to 1 if you have the <dlfcn.h> header file. */ +#define HAVE_DLFCN_H 1 + +/* Define to 1 if you have the `dlvsym' function. */ +#define HAVE_DLVSYM 1 + +/* Define to 1 if you have the <execinfo.h> header file. */ +/* #undef HAVE_EXECINFO_H */ + +/* Define to 1 if you have the `fopen64' function. */ +/* #undef HAVE_FOPEN64 */ + +/* Define to 1 if you have the `freopen64' function. */ +/* #undef HAVE_FREOPEN64 */ + +/* Define to 1 if you have the `fseeko64' function. */ +/* #undef HAVE_FSEEKO64 */ + +/* Define to 1 if you have the `ftello64' function. */ +/* #undef HAVE_FTELLO64 */ + +/* Define to 1 if you have the `gai_strerror' function. */ +#define HAVE_GAI_STRERROR 1 + +/* Define to 1 if you have the `getaddrinfo' function. */ +#define HAVE_GETADDRINFO 1 + +/* Define to 1 if you have the `getgrent' function. */ +#define HAVE_GETGRENT 1 + +/* Define to 1 if you have the `getgrgid' function. */ +#define HAVE_GETGRGID 1 + +/* Define to 1 if you have the `getgrgid_r' function. */ +#define HAVE_GETGRGID_R 1 + +/* Define to 1 if you have the `getgrnam' function. */ +#define HAVE_GETGRNAM 1 + +/* Define to 1 if you have the `getgrnam_r' function. */ +#define HAVE_GETGRNAM_R 1 + +/* Define to 1 if you have the `getlogin' function. */ +#define HAVE_GETLOGIN 1 + +/* Define to 1 if you have the `getlogin_r' function. */ +#define HAVE_GETLOGIN_R 1 + +/* Define to 1 if you have the `getmntent' function. */ +/* #undef HAVE_GETMNTENT */ + +/* Define to 1 if you have the `getprotobyname' function. */ +#define HAVE_GETPROTOBYNAME 1 + +/* Define to 1 if you have the `getprotobynumber' function. */ +#define HAVE_GETPROTOBYNUMBER 1 + +/* Define to 1 if you have the `getprotoent' function. */ +#define HAVE_GETPROTOENT 1 + +/* Define to 1 if you have the `getpwent' function. */ +#define HAVE_GETPWENT 1 + +/* Define to 1 if you have the `getpwnam' function. */ +#define HAVE_GETPWNAM 1 + +/* Define to 1 if you have the `getpwnam_r' function. */ +#define HAVE_GETPWNAM_R 1 + +/* Define to 1 if you have the `getpwuid' function. */ +#define HAVE_GETPWUID 1 + +/* Define to 1 if you have the `getpwuid_r' function. */ +#define HAVE_GETPWUID_R 1 + +/* Define to 1 if you have the `getservbyname' function. */ +#define HAVE_GETSERVBYNAME 1 + +/* Define to 1 if you have the `getservbyport' function. */ +#define HAVE_GETSERVBYPORT 1 + +/* Define to 1 if you have the `getservent' function. */ +#define HAVE_GETSERVENT 1 + +/* Define to 1 if you have the `gettimeofday' function. */ +#define HAVE_GETTIMEOFDAY 1 + +/* Define to 1 if you have the <grp.h> header file. */ +#define HAVE_GRP_H 1 + +/* Define to 1 if you have the `inet_ntoa' function. */ +#define HAVE_INET_NTOA 1 + +/* Define to 1 if you have the <inttypes.h> header file. */ +#define HAVE_INTTYPES_H 1 + +/* Define to 1 if you have the `dl' library (-ldl). */ +/* #undef HAVE_LIBDL */ + +/* Define to 1 if you have the `memmem' function. */ +#define HAVE_MEMMEM 1 + +/* Define to 1 if you have the <memory.h> header file. */ +#define HAVE_MEMORY_H 1 + +/* Define to 1 if you have the `memrchr' function. */ +#define HAVE_MEMRCHR 1 + +/* Define to 1 if you have the `mmap' function. */ +#define HAVE_MMAP 1 + +/* Define to 1 if you have the <mntent.h> header file. */ +/* #undef HAVE_MNTENT_H */ + +/* Define to 1 if you have the `munmap' function. */ +#define HAVE_MUNMAP 1 + +/* Define to 1 if you have the <netdb.h> header file. */ +#define HAVE_NETDB_H 1 + +/* Define to 1 if you have the <netinet/in.h> header file. */ +#define HAVE_NETINET_IN_H 1 + +/* Define to 1 if you have the <pthread.h> header file. */ +#define HAVE_PTHREAD_H 1 + +/* Define to 1 if you have the <pwd.h> header file. */ +#define HAVE_PWD_H 1 + +/* Define to 1 if you have the `setbuf' function. */ +#define HAVE_SETBUF 1 + +/* Define to 1 if you have the `setbuffer' function. */ +#define HAVE_SETBUFFER 1 + +/* Define to 1 if you have the `sethostname' function. */ +#define HAVE_SETHOSTNAME 1 + +/* Define to 1 if you have the `setlinebuf' function. */ +#define HAVE_SETLINEBUF 1 + +/* Define to 1 if you have the `setmntent' function. */ +/* #undef HAVE_SETMNTENT */ + +/* Define to 1 if you have the `setvbuf' function. */ +#define HAVE_SETVBUF 1 + +/* Define to 1 if you have the `signal' function. */ +#define HAVE_SIGNAL 1 + +/* Define to 1 if you have the <signal.h> header file. */ +#define HAVE_SIGNAL_H 1 + +/* Define it socklen_t typedef is in sys/socket.h. */ +#define HAVE_SOCKLEN_T 1 + +/* Define to 1 if you have the `stat64' function. */ +/* #undef HAVE_STAT64 */ + +/* Define to 1 if you have the <stdint.h> header file. */ +#define HAVE_STDINT_H 1 + +/* Define to 1 if you have the <stdlib.h> header file. */ +#define HAVE_STDLIB_H 1 + +/* Define to 1 if you have the <strings.h> header file. */ +#define HAVE_STRINGS_H 1 + +/* Define to 1 if you have the <string.h> header file. */ +#define HAVE_STRING_H 1 + +/* Define to 1 if you have the `strncpy' function. */ +#define HAVE_STRNCPY 1 + +/* Define to 1 if you have the `strnlen' function. */ +#define HAVE_STRNLEN 1 + +/* Define to 1 if you have the <sys/ipc.h> header file. */ +#define HAVE_SYS_IPC_H 1 + +/* Define to 1 if you have the <sys/mman.h> header file. */ +#define HAVE_SYS_MMAN_H 1 + +/* Define to 1 if you have the <sys/sem.h> header file. */ +#define HAVE_SYS_SEM_H 1 + +/* Define to 1 if you have the <sys/shm.h> header file. */ +#define HAVE_SYS_SHM_H 1 + +/* Define to 1 if you have the <sys/socket.h> header file. */ +#define HAVE_SYS_SOCKET_H 1 + +/* Define to 1 if you have the <sys/stat.h> header file. */ +#define HAVE_SYS_STAT_H 1 + +/* Define to 1 if you have the <sys/types.h> header file. */ +#define HAVE_SYS_TYPES_H 1 + +/* Define to 1 if you have the <sys/wait.h> header file. */ +#define HAVE_SYS_WAIT_H 1 + +/* Define to 1 if the target supports thread-local storage. */ +#define HAVE_TLS 1 + +/* union semun defined in sys/ipc.h or sys/sem.h */ +/* #undef HAVE_UNION_SEMUN */ + +/* Define to 1 if you have the <unistd.h> header file. */ +#define HAVE_UNISTD_H 1 + +/* Define to 1 if you have the `__ctype_b_loc' function. */ +/* #undef HAVE___CTYPE_B_LOC */ + +/* Define to 1 if you have the `__ctype_tolower_loc' function. */ +/* #undef HAVE___CTYPE_TOLOWER_LOC */ + +/* Define to 1 if you have the `__ctype_toupper_loc' function. */ +/* #undef HAVE___CTYPE_TOUPPER_LOC */ + +/* Define to 1 if you have the `__libc_freeres' function. */ +/* #undef HAVE___LIBC_FREERES */ + +/* Define to the sub-directory in which libtool stores uninstalled libraries. + */ +#define LT_OBJDIR ".libs/" + +/* Name of package */ +#define PACKAGE "libmudflap" + +/* Define to the address where bug reports for this package should be sent. */ +#define PACKAGE_BUGREPORT "" + +/* Define to the full name of this package. */ +#define PACKAGE_NAME "libmudflap" + +/* Define to the full name and version of this package. */ +#define PACKAGE_STRING "libmudflap 1.0" + +/* Define to the one symbol short name of this package. */ +#define PACKAGE_TARNAME "libmudflap" + +/* Define to the home page for this package. */ +#define PACKAGE_URL "" + +/* Define to the version of this package. */ +#define PACKAGE_VERSION "1.0" + +/* pthread_create symbol version */ +#define PTHREAD_CREATE_VERSION "" + +/* Define to 1 if you have the ANSI C header files. */ +#define STDC_HEADERS 1 + +/* Define to 1 if the target use emutls for thread-local storage. */ +/* #undef USE_EMUTLS */ + +/* Version number of package */ +#define VERSION "1.0" Index: src/external/gpl3/gcc/lib/libmudflap/shlib_version diff -u /dev/null src/external/gpl3/gcc/lib/libmudflap/shlib_version:1.1 --- /dev/null Tue Apr 17 22:52:07 2012 +++ src/external/gpl3/gcc/lib/libmudflap/shlib_version Tue Apr 17 22:52:07 2012 @@ -0,0 +1,2 @@ +major=0 +minor=0 Index: src/external/gpl3/gcc/lib/libmudflapth/Makefile diff -u /dev/null src/external/gpl3/gcc/lib/libmudflapth/Makefile:1.1 --- /dev/null Tue Apr 17 22:52:07 2012 +++ src/external/gpl3/gcc/lib/libmudflapth/Makefile Tue Apr 17 22:52:07 2012 @@ -0,0 +1,17 @@ +# $NetBSD: Makefile,v 1.1 2012/04/18 02:52:07 christos Exp $ + +NOLINT=yes # core dumps +UNSUPPORTED_COMPILER.clang= # defined + +.include <bsd.own.mk> + +DIST= ${NETBSDSRCDIR}/external/gpl3/gcc/dist/libmudflap +CPPFLAGS+= -I${.CURDIR}/../libmudflap -DLIBMUDFLAPTH + +.PATH: ${DIST} + +LINTFLAGS+=-g +LIB=mudflap +SRCS=mf-runtime.c mf-heuristics.c mf-hooks1.c mf-hooks2.c mf-hooks3.c + +.include <bsd.lib.mk> Index: src/external/gpl3/gcc/lib/libmudflapth/shlib_version diff -u /dev/null src/external/gpl3/gcc/lib/libmudflapth/shlib_version:1.1 --- /dev/null Tue Apr 17 22:52:07 2012 +++ src/external/gpl3/gcc/lib/libmudflapth/shlib_version Tue Apr 17 22:52:07 2012 @@ -0,0 +1,2 @@ +major=0 +minor=0