Commit graph

133 commits

Author SHA1 Message Date
Alan Modra
c20a064233 Configury changes for obstack optimization
Provides defines used to determine whether glibc obstacks are
compatible.  Generally speaking, 32-bit targets won't need to use
obstack.o from libiberty if glibc is used, while 64-bit targets will,
until glibc gets the new obstack code.

libiberty/
	* configure.ac: Get size of size_t.
	* config.in: Regenerate.
	* configure: Regenerate.
2015-11-09 15:21:50 +10:30
Joel Brobecker
82ef0f7074 Do not use libiberty's getpagesize on Android
Building libiberty on Android currently fails with the error message
shown below.  This was discovered by trying to build GDBserver
for Android, which stopped building after libiberty became
a GDBserver dependency.

Here is the error message:

[...]/getpagesize.c:64:1: error: redefinition of 'getpagesize'
In file included from /[...]/getpagesize.c:34:0:
/[...]/usr/include/unistd.h:171:23: note: previous definition of 'getpagesize' was here

And looking at the definition, one can see that it defined as
a static inline function...

   static __inline__ int getpagesize(void) {
     extern unsigned int __page_size;
     return __page_size;
   }

... which explains why the AC_CHECK_FUNCS test failed to detect
the function, since there is no associated symbol to be linked in.

This patch prevents getpagesize.c to be compiled in by hard-coding
the fact that getpagesize is available on android hosts.

libiberty/ChangeLog:

        * configure.ac: Set AC_CV_FUNC_GETPAGESIZE to "yes" on
        Android hosts.
        * configure: Regenerate.
2015-11-06 13:39:58 -08:00
H.J. Lu
8a643cc36c Sync config/warnings.m4 with GCC
config/

	Sync with GCC
	2015-05-27  Jason Merrill  <jason@redhat.com>

	PR bootstrap/66304
	* warnings.m4 (ACX_PROG_CXX_WARNING_OPTS)
	(ACX_PROG_CXX_WARNINGS_ARE_ERRORS)
	(ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC): New.
	(ACX_PROG_CC_WARNING_OPTS, ACX_PROG_CC_WARNING_ALMOST_PEDANTIC)
	(ACX_PROG_CC_WARNINGS_ARE_ERRORS): Push into C language context.

libdecnumber/

	* configure: Regenerated.

libiberty/

	* configure: Regenerated.

opcodes/

	* configure: Regenerated.
2015-07-14 08:39:12 -07:00
Iain Buclaw
f91ca6bc00 Sync libiberty from GCC, replaying updates to configure scripts 2015-06-24 21:43:02 +02:00
Richard Earnshaw
7c89917ffa Sync with gcc/libiberty. 2015-01-07 17:34:29 +00:00
Jan-Benedict Glaw
abdef8eb90 Sync libiberty from GCC 2014-11-17 03:30:13 +01:00
jakub
3f48575af8 PR sanitizer/56781 lto-plugin/ * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address. (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS, liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a over ../libiberty/pic/libiberty.a if the former exists. * Makefile.in: Regenerated. libiberty/ * maint-tool: Also emit rule for noasan/ subdirectory. * configure.ac (NOASANFLAG): Set and substitute. * Makefile.in: Regenerated. (NOASANFLAG): Set. (all, $(TARGETLIB), mostlyclean): Handle noasan subdir like pic subdir. (stamp-noasandir): New goal. * configure: Regenerated.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@209476 138bc75d-0d04-0410-961f-82ee72b054a4
2014-05-08 10:18:30 -06:00
Mike Frysinger
369be6981b libiberty: fix --enable-install-libiberty flag [PR 56780]
Commit 199570 fixed the --disable-install-libiberty behavior, but it also
added a bug where the enable path never works because the initial clear
of target_header_dir wasn't deleted.  So we end up initializing properly
at the top only to reset it at the end all the time.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206367 138bc75d-0d04-0410-961f-82ee72b054a4
2014-01-06 13:44:33 -05:00
schwab
f0c897ef0a config/ * picflag.m4 (m68k-*-*): Use default PIC flag.
gcc/
* configure: Regenerate.

libada/
* configure: Regenerate.

libgcc/
* configure: Regenerate.

libiberty/
* configure: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204854 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-21 10:50:04 -07:00
DJ Delorie
26505cc0c4 merge from gcc 2013-10-16 00:29:48 +00:00
DJ Delorie
a4818a052e merge from gcc 2013-06-01 01:01:44 +00:00
DJ Delorie
3afd2652d4 merge from gcc 2013-03-28 02:00:05 +00:00
DJ Delorie
995b61fe5b merge from gcc 2012-10-10 03:11:33 +00:00
DJ Delorie
d12c31dfa7 merge from gcc 2012-01-23 07:01:21 +00:00
DJ Delorie
eb7b5ddb8b merge from gcc 2012-01-06 22:04:43 +00:00
DJ Delorie
3fee530e50 merge from gcc 2011-12-20 19:02:08 +00:00
Andreas Schwab
604fcd6577 config/:
* warnings.m4 (ACX_PROG_CC_WARNING_OPTS): Avoid leading dash in
	expr call.
libdecnumber/:
	* configure: Regenerate.
libiberty/:
	* configure: Regenerate.
2011-12-20 17:01:30 +00:00
Andreas Schwab
a53e62cf56 Check for warning flags without no- prefix
config/:
	* warnings.m4 (ACX_PROG_CC_WARNING_OPTS)
	(ACX_PROG_CC_WARNING_ALMOST_PEDANTIC): Run the test without the
	no- prefix.
libdecnumber/:
	* configure: Regenerate.
libiberty/:
	* configure: Regenerate.
2011-12-19 13:20:24 +00:00
DJ Delorie
601a99c67b merge from gcc 2011-08-22 17:16:25 +00:00
DJ Delorie
26ac12805d merge from gcc 2011-07-22 14:37:58 +00:00
DJ Delorie
62b06a9e17 merge from gcc 2010-11-21 04:01:17 +00:00
Richard Henderson
9c55e06476 Use spawnve on cygwin.
* configure.ac (AC_CHECK_HEADERS): Add process.h.
	(checkfuncs): Add dup3, spawnve, spawnvpe; sort the list.
	(AC_CHECK_FUNCS): Add dup3, spawnve, spawnvpe.
	* configure, config.in: Rebuild.
	* pex-unix.c [HAVE_SPAWNVE] (pex_unix_exec_child): New function.
	[HAVE_SPAWNVE] (save_and_install_fd, restore_fd): New functions.
2010-11-04 23:41:21 +00:00
DJ Delorie
ffa54e5c48 merge from gcc 2010-11-02 15:20:47 +00:00
DJ Delorie
85f1f7cf9b merge from gcc 2010-10-26 19:18:21 +00:00
DJ Delorie
94e482001f merge from gcc 2010-10-07 16:20:37 +00:00
DJ Delorie
9711ae4d9f merge from gcc 2010-10-06 23:01:30 +00:00
DJ Delorie
497462ef9e merge from gcc 2010-09-09 17:39:52 +00:00
DJ Delorie
a28030212f merge from gcc 2010-06-03 16:54:11 +00:00
DJ Delorie
43e85a8f54 merge from gcc 2010-01-05 21:10:30 +00:00
Ben Elliston
e96158fc77 * configure.ac (AC_CHECK_FUNCS): Sort into alphabetical order.
* configure: Regenerate.
2009-11-25 22:41:09 +00:00
H.J. Lu
b4a451f5e1 2009-09-04 Ozkan Sezer <sezeroz@gmail.com>
PR target/39065
	* configure.ac: Replace AC_CHECK_TYPE() for intptr_t and uintptr_t
	with AC_TYPE_INTPTR_T and AC_TYPE_UINTPTR_T.
	* config.in: Regenerated.
	* configure: Regenerated.
2009-09-04 14:33:39 +00:00
H.J. Lu
fca6a796b7 2009-09-03 Ozkan Sezer <sezeroz@gmail.com>
PR target/39065
	* configure.ac: Also check for intptr_t.
	* config.h.in: Regenerated.
	* configure: Regenerated.
	* hashtab.c (hash_pointer): Cast the pointer argument to intptr_t
	instead of of long.
2009-09-03 16:46:55 +00:00
DJ Delorie
7508667609 merge from gcc 2009-08-22 14:31:16 +00:00
DJ Delorie
68724c3d39 merge from gcc 2009-04-14 18:05:58 +00:00
DJ Delorie
3c72fdec4e merge from gcc 2009-04-08 16:42:57 +00:00
DJ Delorie
10e1b6bb90 merge from gcc 2009-03-27 23:07:30 +00:00
Dave Korn
1b5bf94466 * configure.ac (funcs, vars, checkfuncs): Don't munge on Cygwin,
as it no longer shares libiberty object files.
	* configure:  Regenerated.
2009-01-18 23:12:15 +00:00
H.J. Lu
899de17032 2008-10-07 Jan Kratochvil <jan.kratochvil@redhat.com>
* configure.ac: Call AC_SYS_LARGEFILE.
	* config.in: Regenerated.
	* configure: Likewise.
2008-10-07 16:44:52 +00:00
DJ Delorie
1c08f2c880 merge from gcc 2008-10-07 01:28:01 +00:00
Jan Kratochvil
d053aef827 bfd/
Fix loading large elf64 binaries on 32bit hosts.
	* configure.in: Call AC_SYS_LARGEFILE.
	* config.in: Regenerate.
	* configure: Regenerate.

binutils/
	Fix loading large elf64 binaries on 32bit hosts.
	* configure.in: Call AC_SYS_LARGEFILE.
	* config.in: Regenerate.
	* configure: Regenerate.

gas/
	* configure.in: Call AC_SYS_LARGEFILE.
	* config.in: Regenerate.
	* configure: Regenerate.

gprof/
	* configure.in: Call AC_SYS_LARGEFILE.
	* gconfig.in: Regenerate.
	* configure: Regenerate.

ld/
	* configure.in: Call AC_SYS_LARGEFILE.
	* config.in: Regenerate.
	* configure: Regenerate.

libiberty/
	* configure.in: Call AC_SYS_LARGEFILE.
	* config.in: Regenerate.
	* configure: Regenerate.
2008-09-11 19:02:04 +00:00
DJ Delorie
c8536f380f merge from gcc 2008-06-18 03:36:03 +00:00
DJ Delorie
017c113877 merge from gcc 2008-04-21 22:30:17 +00:00
DJ Delorie
5ae542419d merge from gcc 2008-04-18 15:14:13 +00:00
Paolo Bonzini
c779bab85b 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
* Makefile.tpl (PICFLAG, PICFLAG_FOR_TARGET): Remove.
	* Makefile.in: Regenerate.

config:
2008-03-27  Paolo Bonzini  <bonzini@gnu.org>

	* extensions.m4: New.

2008-03-27  Paolo Bonzini  <bonzini@gnu.org>

	* mh-armpic: Remove.
	* mh-i370pic: Remove.
	* mh-m68kpic: Remove.
	* mh-ppcpic: Remove.
	* mh-sparcpic: Remove.
	* mh-ia64pic: Remove.
	* mh-papic: Remove.
	* mh-s390pic: Remove.
	* mh-x86pic: Remove.

libiberty:
2008-03-27  Paolo Bonzini  <bonzini@gnu.org>

	* configure.ac (frags): Don't set, use frag instead.
	(PICFLAG): Set here and substitute.
	* Makefile.in (PICFLAG): Substitute from autoconf.
	* configure: Regenerate.
2008-03-27 14:16:55 +00:00
DJ Delorie
008d60eb19 merge from gcc 2007-07-17 18:05:02 +00:00
Paolo Bonzini
1f616ca10d 2007-06-14 Paolo Bonzini <bonzini@gnu.org>
* configure.ac: Use ACX_PROG_CC_ALMOST_PEDANTIC too.
	* configure: Regenerate.
2007-06-14 14:41:46 +00:00
Paolo Bonzini
a104c397e7 2007-06-14 Paolo Bonzini <bonzini@gnu.org>
* aclocal.m4: Include config/warnings.m4.
	* configure.ac: Use ACX_PROG_CC_WARNING_OPTS.
	* configure: Regenerate.
2007-06-14 08:17:50 +00:00
Geoffrey Keating
958afec373 * configure.ac: Non-default multilibs can be cross compilations.
* configure: Regenerate
2007-06-07 18:43:51 +00:00
DJ Delorie
1f92e18087 merge from gcc 2007-02-26 22:14:03 +00:00
Corinna Vinschen
069e4b1944 * configure.ac: Add case for Mingw as host.
* configure: Regenerate.
2006-08-30 13:08:27 +00:00