PERFORCE change 47431 for review

Marcel Moolenaar marcel at FreeBSD.org
Sun Feb 22 14:12:17 PST 2004


http://perforce.freebsd.org/chv.cgi?CH=47431

Change 47431 by marcel at marcel_nfs on 2004/02/22 14:11:33

	Get libiberty to compile.

Affected files ...

.. //depot/projects/gdb/gnu/usr.bin/binutils/Makefile.inc0#2 edit
.. //depot/projects/gdb/gnu/usr.bin/binutils/libiberty/Makefile#2 edit
.. //depot/projects/gdb/gnu/usr.bin/binutils/libiberty/config.h#2 edit

Differences ...

==== //depot/projects/gdb/gnu/usr.bin/binutils/Makefile.inc0#2 (text+ko) ====

@@ -22,7 +22,6 @@
 .else
 WARNS=	3
 .endif
-CFLAGS+= -D_GNU_SOURCE
 CFLAGS+= -I.
 .if exists(${.CURDIR}/${TARGET_ARCH})
 CFLAGS+= -I${.CURDIR}/${TARGET_ARCH}

==== //depot/projects/gdb/gnu/usr.bin/binutils/libiberty/Makefile#2 (text+ko) ====

@@ -5,11 +5,14 @@
 .PATH: ${SRCDIR}/libiberty
 
 LIB=	iberty
-SRCS=	argv.c choose-temp.c concat.c cp-demangle.c cplus-dem.c \
-	dyn-string.c getopt.c getopt1.c getpwd.c getruntime.c \
-	hex.c floatformat.c hashtab.c lbasename.c make-temp-file.c \
-	objalloc.c obstack.c safe-ctype.c xatexit.c xexit.c xmalloc.c \
-	xstrdup.c xstrerror.c
+SRCS=	argv.c choose-temp.c concat.c cp-demangle.c cp-demint.c cplus-dem.c \
+	dyn-string.c fdmatch.c fibheap.c floatformat.c getopt.c getopt1.c \
+	getpwd.c getruntime.c hashtab.c hex.c lbasename.c lrealpath.c \
+	make-temp-file.c md5.c objalloc.c obstack.c partition.c pex-unix.c \
+	physmem.c regex.c safe-ctype.c sort.c spaces.c splay-tree.c stpncpy.c \
+	strerror.c strsignal.c ternary.c xatexit.c xexit.c xmalloc.c \
+	xmemdup.c xstrdup.c xstrerror.c
+
 WARNS=	1
 CFLAGS+=	-DHAVE_CONFIG_H
 INTERNALLIB=	true

==== //depot/projects/gdb/gnu/usr.bin/binutils/libiberty/config.h#2 (text+ko) ====

@@ -1,257 +1,378 @@
-/* $FreeBSD: src/gnu/usr.bin/binutils/libiberty/config.h,v 1.5 2002/12/02 09:44:59 obrien Exp $ */
+/* $FreeBSD$ */
+/* config.h.  Generated by configure.  */
+/* config.in.  Generated from configure.ac by autoheader.  */
+/* Define to `unsigned long' if <sys/types.h> doesn't define.  */
+/* #undef uintptr_t */
 
-/* config.h.  Generated automatically by configure.  */
-/* config.in.  Generated automatically from configure.in by autoheader 2.13.  */
 
-/* Define to empty if the keyword does not work.  */
-/* #undef const */
+/* 1234 = LIL_ENDIAN, 4321 = BIGENDIAN */
+#define BYTEORDER 1234
 
-/* Define if you have a working `mmap' system call.  */
-#define HAVE_MMAP 1
+/* 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 <sys/wait.h> that is POSIX.1 compatible.  */
-#define HAVE_SYS_WAIT_H 1
+/* Define to 1 if you have the <alloca.h> header file. */
+/* #undef HAVE_ALLOCA_H */
 
-/* Define if you have <vfork.h>.  */
-/* #undef HAVE_VFORK_H */
-
-/* Define as __inline if that's what the C compiler calls it.  */
-/* #undef inline */
-
-/* Define to `int' if <sys/types.h> doesn't define.  */
-/* #undef pid_t */
-
-/* Define if you need to in order for stat and other things to work.  */
-/* #undef _POSIX_SOURCE */
-
-/* Define if you have the ANSI C header files.  */
-#define STDC_HEADERS 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 _doprnt function.  */
-/* #undef HAVE__DOPRNT */
-
-/* Define if you have the asprintf function.  */
+/* Define to 1 if you have the `asprintf' function. */
 #define HAVE_ASPRINTF 1
 
-/* Define if you have the atexit function.  */
+/* Define to 1 if you have the `atexit' function. */
 #define HAVE_ATEXIT 1
 
-/* Define if you have the basename function.  */
+/* Define to 1 if you have the `basename' function. */
 #define HAVE_BASENAME 1
 
-/* Define if you have the bcmp function.  */
+/* Define to 1 if you have the `bcmp' function. */
 #define HAVE_BCMP 1
 
-/* Define if you have the bcopy function.  */
+/* Define to 1 if you have the `bcopy' function. */
 #define HAVE_BCOPY 1
 
-/* Define if you have the bsearch function.  */
+/* Define to 1 if you have the `bsearch' function. */
 #define HAVE_BSEARCH 1
 
-/* Define if you have the bzero function.  */
+/* Define to 1 if you have the `bzero' function. */
 #define HAVE_BZERO 1
 
-/* Define if you have the calloc function.  */
+/* Define to 1 if you have the `calloc' function. */
 #define HAVE_CALLOC 1
 
-/* Define if you have the clock function.  */
+/* Define to 1 if you have the `canonicalize_file_name' function. */
+/* #undef HAVE_CANONICALIZE_FILE_NAME */
+
+/* Define to 1 if you have the `clock' function. */
 #define HAVE_CLOCK 1
 
-/* Define if you have the ffs function.  */
+/* Define to 1 if you have the <fcntl.h> header file. */
+#define HAVE_FCNTL_H 1
+
+/* Define to 1 if you have the `ffs' function. */
 #define HAVE_FFS 1
 
-/* Define if you have the getcwd function.  */
+/* Define to 1 if you have the `fork' function. */
+#define HAVE_FORK 1
+
+/* Define to 1 if you have the `getcwd' function. */
 #define HAVE_GETCWD 1
 
-/* Define if you have the getpagesize function.  */
+/* Define to 1 if you have the `getpagesize' function. */
 #define HAVE_GETPAGESIZE 1
 
-/* Define if you have the getrusage function.  */
+/* Define to 1 if you have the `getrusage' function. */
 #define HAVE_GETRUSAGE 1
 
-/* Define if you have the gettimeofday function.  */
+/* Define to 1 if you have the `getsysinfo' function. */
+/* #undef HAVE_GETSYSINFO */
+
+/* Define to 1 if you have the `gettimeofday' function. */
 #define HAVE_GETTIMEOFDAY 1
 
-/* Define if you have the index function.  */
+/* Define to 1 if you have the `index' function. */
 #define HAVE_INDEX 1
 
-/* Define if you have the insque function.  */
+/* Define to 1 if you have the `insque' function. */
 #define HAVE_INSQUE 1
 
-/* Define if you have the memchr function.  */
+/* Define to 1 if you have the <inttypes.h> header file. */
+#define HAVE_INTTYPES_H 1
+
+/* Define to 1 if you have the <limits.h> header file. */
+#define HAVE_LIMITS_H 1
+
+/* Define to 1 if you have the <machine/hal_sysinfo.h> header file. */
+/* #undef HAVE_MACHINE_HAL_SYSINFO_H */
+
+/* Define to 1 if you have the <malloc.h> header file. */
+/* #undef HAVE_MALLOC_H */
+
+/* Define to 1 if you have the `memchr' function. */
 #define HAVE_MEMCHR 1
 
-/* Define if you have the memcmp function.  */
+/* Define to 1 if you have the `memcmp' function. */
 #define HAVE_MEMCMP 1
 
-/* Define if you have the memcpy function.  */
+/* Define to 1 if you have the `memcpy' function. */
 #define HAVE_MEMCPY 1
 
-/* Define if you have the memmove function.  */
+/* Define to 1 if you have the `memmove' function. */
 #define HAVE_MEMMOVE 1
 
-/* Define if you have the memset function.  */
+/* Define to 1 if you have the <memory.h> header file. */
+#define HAVE_MEMORY_H 1
+
+/* Define to 1 if you have the `mempcpy' function. */
+/* #undef HAVE_MEMPCPY */
+
+/* Define to 1 if you have the `memset' function. */
 #define HAVE_MEMSET 1
 
-/* Define if you have the mkstemps function.  */
+/* Define to 1 if you have the `mkstemps' function. */
 #define HAVE_MKSTEMPS 1
 
-/* Define if you have the on_exit function.  */
+/* Define to 1 if you have a working `mmap' system call. */
+#define HAVE_MMAP 1
+
+/* Define to 1 if you have the `on_exit' function. */
 /* #undef HAVE_ON_EXIT */
 
-/* Define if you have the psignal function.  */
+/* Define to 1 if you have the `psignal' function. */
 #define HAVE_PSIGNAL 1
 
-/* Define if you have the putenv function.  */
+/* Define to 1 if you have the `pstat_getdynamic' function. */
+/* #undef HAVE_PSTAT_GETDYNAMIC */
+
+/* Define to 1 if you have the `pstat_getstatic' function. */
+/* #undef HAVE_PSTAT_GETSTATIC */
+
+/* Define to 1 if you have the `putenv' function. */
 #define HAVE_PUTENV 1
 
-/* Define if you have the random function.  */
+/* Define to 1 if you have the `random' function. */
 #define HAVE_RANDOM 1
 
-/* Define if you have the rename function.  */
+/* Define to 1 if you have the `realpath' function. */
+#define HAVE_REALPATH 1
+
+/* Define to 1 if you have the `rename' function. */
 #define HAVE_RENAME 1
 
-/* Define if you have the rindex function.  */
+/* Define to 1 if you have the `rindex' function. */
 #define HAVE_RINDEX 1
 
-/* Define if you have the sbrk function.  */
+/* Define to 1 if you have the `sbrk' function. */
 #define HAVE_SBRK 1
 
-/* Define if you have the setenv function.  */
+/* Define to 1 if you have the `setenv' function. */
 #define HAVE_SETENV 1
 
-/* Define if you have the sigsetmask function.  */
+/* Define to 1 if you have the `sigsetmask' function. */
 #define HAVE_SIGSETMASK 1
 
-/* Define if you have the strcasecmp function.  */
+/* Define to 1 if you have the `snprintf' function. */
+#define HAVE_SNPRINTF 1
+
+/* 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 `stpcpy' function. */
+#define HAVE_STPCPY 1
+
+/* Define to 1 if you have the `stpncpy' function. */
+/* #undef HAVE_STPNCPY */
+
+/* Define to 1 if you have the `strcasecmp' function. */
 #define HAVE_STRCASECMP 1
 
-/* Define if you have the strchr function.  */
+/* Define to 1 if you have the `strchr' function. */
 #define HAVE_STRCHR 1
 
-/* Define if you have the strdup function.  */
+/* Define to 1 if you have the `strdup' function. */
 #define HAVE_STRDUP 1
 
-/* Define if you have the strerror function.  */
+/* Define to 1 if you have the `strerror' function. */
 #define HAVE_STRERROR 1
 
-/* Define if you have the strncasecmp function.  */
+/* 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 `strncasecmp' function. */
 #define HAVE_STRNCASECMP 1
 
-/* Define if you have the strrchr function.  */
+/* Define to 1 if you have the `strrchr' function. */
 #define HAVE_STRRCHR 1
 
-/* Define if you have the strsignal function.  */
+/* Define to 1 if you have the `strsignal' function. */
 #define HAVE_STRSIGNAL 1
 
-/* Define if you have the strstr function.  */
+/* Define to 1 if you have the `strstr' function. */
 #define HAVE_STRSTR 1
 
-/* Define if you have the strtod function.  */
+/* Define to 1 if you have the `strtod' function. */
 #define HAVE_STRTOD 1
 
-/* Define if you have the strtol function.  */
+/* Define to 1 if you have the `strtol' function. */
 #define HAVE_STRTOL 1
 
-/* Define if you have the strtoul function.  */
+/* Define to 1 if you have the `strtoul' function. */
 #define HAVE_STRTOUL 1
 
-/* Define if you have the sysconf function.  */
+/* Define to 1 if you have the `sysconf' function. */
 #define HAVE_SYSCONF 1
 
-/* Define if you have the times function.  */
+/* Define to 1 if you have the `sysctl' function. */
+#define HAVE_SYSCTL 1
+
+/* Define to 1 if you have the `sysmp' function. */
+/* #undef HAVE_SYSMP */
+
+/* Define if you have the sys_errlist variable. */
+#define HAVE_SYS_ERRLIST 1
+
+/* Define to 1 if you have the <sys/file.h> header file. */
+#define HAVE_SYS_FILE_H 1
+
+/* Define to 1 if you have the <sys/mman.h> header file. */
+#define HAVE_SYS_MMAN_H 1
+
+/* Define if you have the sys_nerr variable. */
+#define HAVE_SYS_NERR 1
+
+/* Define to 1 if you have the <sys/param.h> header file. */
+#define HAVE_SYS_PARAM_H 1
+
+/* Define to 1 if you have the <sys/pstat.h> header file. */
+/* #undef HAVE_SYS_PSTAT_H */
+
+/* Define to 1 if you have the <sys/resource.h> header file. */
+#define HAVE_SYS_RESOURCE_H 1
+
+/* Define if you have the sys_siglist variable. */
+#define HAVE_SYS_SIGLIST 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/sysctl.h> header file. */
+#define HAVE_SYS_SYSCTL_H 1
+
+/* Define to 1 if you have the <sys/sysinfo.h> header file. */
+/* #undef HAVE_SYS_SYSINFO_H */
+
+/* Define to 1 if you have the <sys/sysmp.h> header file. */
+/* #undef HAVE_SYS_SYSMP_H */
+
+/* Define to 1 if you have the <sys/systemcfg.h> header file. */
+/* #undef HAVE_SYS_SYSTEMCFG_H */
+
+/* Define to 1 if you have the <sys/table.h> header file. */
+/* #undef HAVE_SYS_TABLE_H */
+
+/* Define to 1 if you have the <sys/time.h> header file. */
+#define HAVE_SYS_TIME_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 <sys/wait.h> that is POSIX.1 compatible. */
+#define HAVE_SYS_WAIT_H 1
+
+/* Define to 1 if you have the `table' function. */
+/* #undef HAVE_TABLE */
+
+/* Define to 1 if you have the `times' function. */
 #define HAVE_TIMES 1
 
-/* Define if you have the tmpnam function.  */
+/* Define to 1 if you have the <time.h> header file. */
+#define HAVE_TIME_H 1
+
+/* Define to 1 if you have the `tmpnam' function. */
 #define HAVE_TMPNAM 1
 
-/* Define if you have the vasprintf function.  */
+/* Define if you have the \`uintptr_t' type. */
+#define HAVE_UINTPTR_T 1
+
+/* Define to 1 if you have the <unistd.h> header file. */
+#define HAVE_UNISTD_H 1
+
+/* Define to 1 if you have the `vasprintf' function. */
 #define HAVE_VASPRINTF 1
 
-/* Define if you have the vfprintf function.  */
+/* Define to 1 if you have the `vfork' function. */
+#define HAVE_VFORK 1
+
+/* Define to 1 if you have the <vfork.h> header file. */
+/* #undef HAVE_VFORK_H */
+
+/* Define to 1 if you have the `vfprintf' function. */
 #define HAVE_VFPRINTF 1
 
-/* Define if you have the vprintf function.  */
+/* Define to 1 if you have the `vprintf' function. */
 #define HAVE_VPRINTF 1
 
-/* Define if you have the vsprintf function.  */
+/* Define to 1 if you have the `vsnprintf' function. */
+#define HAVE_VSNPRINTF 1
+
+/* Define to 1 if you have the `vsprintf' function. */
 #define HAVE_VSPRINTF 1
 
-/* Define if you have the waitpid function.  */
+/* Define to 1 if you have the `waitpid' function. */
 #define HAVE_WAITPID 1
 
-/* Define if you have the <alloca.h> header file.  */
-/* #undef HAVE_ALLOCA_H */
+/* Define to 1 if `fork' works. */
+#define HAVE_WORKING_FORK 1
 
-/* Define if you have the <fcntl.h> header file.  */
-#define HAVE_FCNTL_H 1
+/* Define to 1 if `vfork' works. */
+#define HAVE_WORKING_VFORK 1
 
-/* Define if you have the <limits.h> header file.  */
-#define HAVE_LIMITS_H 1
+/* Define to 1 if you have the `_doprnt' function. */
+/* #undef HAVE__DOPRNT */
 
-/* Define if you have the <stdlib.h> header file.  */
-#define HAVE_STDLIB_H 1
+/* Define if you have the _system_configuration variable. */
+/* #undef HAVE__SYSTEM_CONFIGURATION */
 
-/* Define if you have the <string.h> header file.  */
-#define HAVE_STRING_H 1
+/* Define if the host machine stores words of multi-word integers in
+   big-endian order. */
+/* #undef HOST_WORDS_BIG_ENDIAN */
 
-/* Define if you have the <strings.h> header file.  */
-#define HAVE_STRINGS_H 1
+/* Define if canonicalize_file_name is not declared in system header files. */
+#define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
 
-/* Define if you have the <sys/file.h> header file.  */
-#define HAVE_SYS_FILE_H 1
+/* Define if errno must be declared even when <errno.h> is included. */
+/* #undef NEED_DECLARATION_ERRNO */
 
-/* Define if you have the <sys/mman.h> header file.  */
-#define HAVE_SYS_MMAN_H 1
+/* Define to 1 if your C compiler doesn't accept -c and -o together. */
+/* #undef NO_MINUS_C_MINUS_O */
 
-/* Define if you have the <sys/param.h> header file.  */
-#define HAVE_SYS_PARAM_H 1
+/* Define to the address where bug reports for this package should be sent. */
+#define PACKAGE_BUGREPORT ""
 
-/* Define if you have the <sys/resource.h> header file.  */
-#define HAVE_SYS_RESOURCE_H 1
+/* Define to the full name of this package. */
+#define PACKAGE_NAME ""
 
-/* Define if you have the <sys/stat.h> header file.  */
-#define HAVE_SYS_STAT_H 1
+/* Define to the full name and version of this package. */
+#define PACKAGE_STRING ""
 
-/* Define if you have the <sys/time.h> header file.  */
-#define HAVE_SYS_TIME_H 1
+/* Define to the one symbol short name of this package. */
+#define PACKAGE_TARNAME ""
 
-/* Define if you have the <time.h> header file.  */
-#define HAVE_TIME_H 1
+/* Define to the version of this package. */
+#define PACKAGE_VERSION ""
 
-/* Define if you have the <unistd.h> header file.  */
-#define HAVE_UNISTD_H 1
+/* 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 */
+#define STACK_DIRECTION -1
 
-/* Define if errno must be declared even when <errno.h> is included. */
-/* #undef NEED_DECLARATION_ERRNO */
+/* Define to 1 if you have the ANSI C header files. */
+#define STDC_HEADERS 1
 
-/* Define if you have the `uintptr_t' type. */
-#define HAVE_UINTPTR_T 1
+/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
+#define TIME_WITH_SYS_TIME 1
 
-/* Define if you have the sys_errlist variable. */
-#define HAVE_SYS_ERRLIST 1
+/* whether byteorder is bigendian */
+/* #undef WORDS_BIGENDIAN */
 
-/* Define if you have the sys_nerr variable. */
-#define HAVE_SYS_NERR 1
+/* Define to empty if `const' does not conform to ANSI C. */
+/* #undef const */
 
-/* Define if you have the sys_siglist variable. */
-#define HAVE_SYS_SIGLIST 1
+/* Define as `__inline' if that's what the C compiler calls it, or to nothing
+   if it is not supported. */
+/* #undef inline */
 
-/* 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 to `int' if <sys/types.h> does not define. */
+/* #undef pid_t */
 
-/* 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 */
-#define STACK_DIRECTION -1
+/* Define to `unsigned long' if <sys/types.h> does not define. */
+/* #undef uintptr_t */
 
+/* Define as `fork' if `vfork' does not work. */
+/* #undef vfork */


More information about the p4-projects mailing list