Commit Graph

461 Commits

Author SHA1 Message Date
Marc Glisse 9183bdcf81 re PR bootstrap/44455 (GCC fails to build if MPFR 3.0.0 (Release Candidate) is used)
2010-07-23  Marc Glisse <marc.glisse@normalesup.org>

	PR bootstrap/44455
	* configure.ac (extra_mpfr_configure_flags): Copy from
	extra_mpc_gmp_configure_flags.
	* configure: Re-generated.

From-SVN: r162482
2010-07-23 19:35:24 +00:00
Steven Bosscher 02540df4e6 add lto to powerpc-*darwin and enable for 32bit darwin
Steven Bosscher  <steven@gcc.gnu.org>
ChangeLog:
	* configure.ac (--enable-lto): All *-apple-darwin* now support LTO.
	* configure: Regenerate.

gcc/ChangeLog:
	* config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
	lto-macho as lto_binary_reader.

	* darwin.c (darwin_asm_named_section): Do not add assembler comment
	after .section directive; just print it before the directive instead.



M    gcc/config.gcc
M    gcc/config/darwin.c
M    ChangeLog
M    gcc/ChangeLog

From-SVN: r159527
2010-05-18 08:12:56 +00:00
Steven Bosscher c082f9f317 configure.ac (--enable-lto): Add x86_64-apple-darwin* as a platform that supports LTO.
ChangeLog:
	* configure.ac (--enable-lto): Add x86_64-apple-darwin* as
	a platform that supports LTO.
	* configure: Regenerate.

gcc/ChangeLog:
	* config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
	lto-macho as lto_binary_reader.
	* target.h (struct gcc_target): New hooks lto_start and	lto_end.
	* target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
	* cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
	in lto_start and lto_end calls.
	(is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
	magic numbers.
	(scan_prog_file): Update is_elf_or_coff call.
	* doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.

	* collect2.c (main): Fix enum comparison.

	* config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
	Add prototypes.
	* darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
	* darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
	and TARGET_ASM_LTO_END.
	* darwin.c: Include obstack.h and lto-streamer.h.
	(lto_section_names_offset, lto_section_names_obstack,
	lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
	global variables.
	(LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
	(darwin_asm_lto_start): New function.  Redirect output to asm_out_file
	to a temporary file.
	(darwin_asm_lto_end): New function.  Restore asm_out_file.
	(darwin_asm_named_section): For LTO sections, replace the name with
	the offset of the section name in a string table, and build this
	table.
	(darwin_file_start): Initialize global vars for LTO support.
	(darwin_file_end): If output to asm_out_file was redirected, append it
	to the proper asm_out_file here.  Add the section names section.

lto/ChangeLog:
	* lto.h (struct lto_file_struct): Document offset member.
	* lto-endian.h: New file.
	* lto-macho.h: New file.
	* lto-macho.c: New file.
	* Make-lang.in: Add rule for lto-macho.o.

From-SVN: r159173
2010-05-07 21:37:43 +00:00
Sebastian Pop f1af9e5f46 Allow all the versions greater than 0.10 of PPL.
2010-05-05  Sebastian Pop  <sebastian.pop@amd.com>

	* configure.ac: Allow all the versions greater than 0.10 of PPL.
	* configure: Regenerated.

From-SVN: r159134
2010-05-06 21:53:42 +00:00
Roland McGrath 38e3d8681f configure.ac (--enable-gold): Support both, both/gold and both/bfd to add gold to configdirs without removing ld.
* configure.ac (--enable-gold): Support both, both/gold and
        both/bfd to add gold to configdirs without removing ld.
        * configure: Regenerated.

        * Makefile.def: Add install-gold dependency to install-ld.
        * Makefile.in: Regenerated.

Co-Authored-By: H.J. Lu <hongjiu.lu@intel.com>

From-SVN: r158786
2010-04-27 14:27:15 +00:00
Dave Korn 9a02962bf8 Missing file from last commit!
ChangeLog:

2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>

	PR lto/42776
	* configure.ac (--enable-lto): Refactor handling so libelf tests
	are only performed inside then-clause of ACX_ELF_TARGET_IFELSE,
	and allow LTO to be explicitly enabled on non-ELF platforms that
	are known to support it inside else-clause.
	* configure: Regenerate.

From-SVN: r158763
2010-04-27 02:23:56 +00:00
Eric Botcazou 615c8ffaff configure.ac (BUILD_CONFIG): Redirect output to /dev/null.
* configure.ac (BUILD_CONFIG): Redirect output to /dev/null.
	* configure: Regenerate.

From-SVN: r158550
2010-04-20 10:19:38 +00:00
Ralf Corsepius e4522f78ae configure.ac (*-*-rtems*): Add target-libiberty to $skipdirs.
2010-04-17  Ralf Corsépius  <ralf.corsepius@rtems.org>

	* configure.ac (*-*-rtems*): Add target-libiberty to $skipdirs.
	* configure: Regenerate.

From-SVN: r158459
2010-04-17 05:02:28 +02:00
Rainer Orth 8ccb78f2d0 configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx separately.
toplevel:
	* configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx
	separately.
	* configure: Regenerate.

	gcc:
	* configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx
	flavor.
	* configure: Regenerate.
	* config.in: Regenerate.
	* doc/install.texi (Prerequisites): Document that Solaris 2 libelf
	works.

	gcc/lto:
	* lto-elf.c [!HAVE_ELF_GETSHDRSTRNDX] (elf_getshdrstrndx): New
	function.

From-SVN: r158423
2010-04-16 13:45:25 +00:00
Tristan Gingold 8406cb6260 Synchronize with src/.
2010-04-14  Tristan Gingold  <gingold@adacore.com>

	* configure.ac (alpha*-*-*vms*): Remove ld from noconfigdirs.
	* configure: Regenerate.

From-SVN: r158341
2010-04-14 09:48:21 +00:00
Steve Ellcey 3591b8e2a0 configure: Regenerate after change to elf.m4.
2010-04-13  Steve Ellcey  <sje@cup.hp.com>

	* configure: Regenerate after change to elf.m4.

In config subdir:

2010-04-13  Steve Ellcey  <sje@cup.hp.com>

	* elf.m4: Add hppa[12]*-*-hpux* to list of non-elf platforms.

From-SVN: r158285
2010-04-13 22:54:07 +00:00
Sebastian Pop e8fd69bbcf Add brackets around AC_TRY_COMPILE alternative.
2010-04-02  Sebastian Pop  <sebastian.pop@amd.com>

	* configure.ac: Add brackets around AC_TRY_COMPILE alternative.
	* configure: Regenerated.

From-SVN: r157946
2010-04-02 17:35:47 +00:00
Sebastian Pop 0333b9a65d Print "buggy but acceptable" when CLooG revision is less than 9.
2010-04-02  Sebastian Pop  <sebastian.pop@amd.com>

	* configure.ac: Print "buggy but acceptable" when CLooG
	revision is less than 9.
	* configure: Regenerated.

From-SVN: r157945
2010-04-02 17:35:39 +00:00
Ralf Wildenhues dc683a3f63 re PR bootstrap/43615 (bootstrap fails: /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory)
/:
	PR bootstrap/43615
	PR bootstrap/43328

	Revert:

	2010-03-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>

	* configure.ac: Do not pass --enable-multilib nor
	--disable-multilib in baseargs.  Accept explicitly passed
	--enable_multilib.
	* configure: Regenerate.

From-SVN: r157916
2010-04-01 16:32:38 +00:00
Ralf Wildenhues 9db4e87892 Fix toplevel configure --enable-multilib handling.
/:
	PR bootstrap/43328
	* configure.ac: Do not pass --enable-multilib nor
	--disable-multilib in baseargs.  Accept explicitly passed
	--enable_multilib.
	* configure: Regenerate.

From-SVN: r157851
2010-03-31 05:44:30 +00:00
Joseph Myers b42f0d7e1f configure.ac (tic6x-*-*): New case.
* configure.ac (tic6x-*-*): New case.
	* configure: Regenerate.

From-SVN: r157675
2010-03-23 16:04:30 +00:00
Jack Howarth 0aeb3cc6c9 re PR ada/42554 (Can't build GNAT tools)
PR ada/42554
	* configure.ac: Only pass -c to ranlib for darwin9 and earlier.
	* configure: Regenerate.

From-SVN: r157563
2010-03-19 10:19:52 +00:00
Rainer Orth 8927b7c026 re PR other/32499 (libstdc++ testsuite fails on platforms without ranlib)
libstdc++-v3:
	PR libstdc++/32499
	* testsuite/Makefile.am (check-DEJAGNU
	$(check_DEJAGNU_normal_targets)): Export AR, RANLIB.
	* testsuite/Makefile.in: Regenerate.

	toplevel:
	PR libstdc++/32499
	* configure.ac (RANLIB): Default to true.
	(STRIP): Likewise.
	(RANLIB_FOR_TARGET): Remove superfluous : argument.
	* configure: Regenerate.

From-SVN: r157144
2010-03-01 13:58:48 +00:00
Nick Clifton bf646aaf78 re PR c++/11238 (A constructor with exception handler rethrows the exception to the constructor caller)
PR 11238
        * Makefile.tpl (local-distclean): Also remove config.cache files in
        sub-directories as there may not be Makefiles present in the
        sub-directories.
        * Makefile.in: Regenerate.
        * configure.ac: Revert previous delta.
        * configure: Regenerate.

From-SVN: r156826
2010-02-17 10:05:27 +00:00
Nick Clifton ff78880a17 configure.ac: Delete config.cache files in sub-directories when deleting Makefiles.
* configure.ac: Delete config.cache files in sub-directories when
        deleting Makefiles.
        * configure: Regenerate.

From-SVN: r156769
2010-02-15 10:54:09 +00:00
Kaveh R. Ghazi 362c6d2fb2 configure.ac: Add "recommended" version checks for GMP/MPC.
* configure.ac: Add "recommended" version checks for GMP/MPC.
	Update recommended GMP/MPFR/MPC versions.
	* configure: Regenerate.

gcc:
	* doc/install.texi: Update recommended GMP/MPFR/MPC versions.

From-SVN: r156408
2010-01-31 18:12:21 +00:00
Joern Rennecke ad1e51700e PR libstdc++/36101, PR libstdc++/42813
PR libstdc++/36101, PR libstdc++/42813
	* configure.ac (bootstrap_target_libs): Make inclusion of
	target-libgomp conditional on libgomb being in target_configdirs.
	* configure: Regenerate.

From-SVN: r156218
2010-01-25 18:01:29 +00:00
Joern Rennecke fb0553d11d PR libstdc++/36101, PR libstdc++/42813
PR libstdc++/36101, PR libstdc++/42813
	* configure.ac (bootstrap_target_libs): Include target-libgomp.
	* configure: Regenerate.

From-SVN: r156189
2010-01-23 11:17:30 +00:00
Joern Rennecke aae29963cf PR libstdc++/36101, PR libstdc++/42813
PR libstdc++/36101, PR libstdc++/42813
[toplevel]:
	* configure.ac (target_configdirs): Substitute.
	* Makefile.def: Bootstrap target module libgomp.
	Add dependency of all-target-libstdc++-v3 on configure-target-libgomp.
	* Makefile.tpl (TARGET_CONFIGDIRS): New makefile variable.
	(BASE_TARGET_EXPORTS): Export TARGET_CONFIGDIRS.
	* configure, Makefile.in: Regenerate.
libstdc++-v3:
	* acinclude.m4: (enable_parallel): Test ${TARGET_CONFIGDIRS} instead of
	loking for omp.h .
	* configure: Regenerate.

From-SVN: r156172
2010-01-22 13:35:38 +00:00
Andreas Tobler f3f623aeaf configure.ac: Enable libjava build on x86_64-*freebsd*.
2010-01-11  Andreas Tobler  <andreast@fgznet.ch>

	* configure.ac: Enable libjava build on x86_64-*freebsd*.
	* configure: Regenerate.

From-SVN: r155803
2010-01-11 12:10:55 +01:00
Kaveh R. Ghazi 592c90ff9f re PR bootstrap/42424 (in-tree GMP/MPFR/MPC bootstrap fails)
PR bootstrap/42424
	* configure.ac: Include libtool m4 files.
        (_LT_CHECK_OBJDIR): Call it.
	(extra_mpc_mpfr_configure_flags, extra_mpc_gmp_configure_flags,
	gmplibs, ppllibs, clooglibs): Use $lt_cv_objdir.
	
	* configure: Regenerate.



Co-Authored-By: Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>

From-SVN: r155712
2010-01-07 21:58:23 +00:00
Richard Guenther 7413962d04 re PR bootstrap/41529 (LTO configuration should detect if the target is ELF)
2010-01-02  Richard Guenther  <rguenther@suse.de>

	PR lto/41529
	* configure.ac: Include config/elf.m4.  Disable LTO if not
	builting for an elf target.
	* configure: Regenerate.

	config/
	* elf.m4: New file.

From-SVN: r155565
2010-01-02 14:13:37 +00:00
Kaveh R. Ghazi 3a5729ea2a re PR middle-end/30447 (Evaluate complex math functions at compile-time)
PR middle-end/30447
	PR middle-end/30789
	PR other/40302

	* configure.ac: Require MPC.
	* configure: Regenerate.
gcc:
	* doc/install.texi: Document MPC is required.

From-SVN: r155023
2009-12-06 16:11:06 +00:00
Kaveh R. Ghazi 360d4522c4 configure.ac: Update minimum MPC version to 0.8.
* configure.ac: Update minimum MPC version to 0.8.
	* configure: Regenerate.

gcc:
	* doc/install.texi: Update minimum MPC version to 0.8.

From-SVN: r154750
2009-11-30 06:12:16 +00:00
Sebastian Pop f264ed5676 configure.ac: Check for version 0.15.5 or later revision of CLooG.
2009-11-21  Sebastian Pop  <sebpop@gmail.com>

	* configure.ac: Check for version 0.15.5 or later revision of CLooG.
	* configure: Regenerated.

From-SVN: r154635
2009-11-25 05:29:37 +00:00
Ian Lance Taylor ed2eaa9f6e configure.ac: Change default of poststage1_ldflags to be empty if poststage1_libs is set.
./:	* configure.ac: Change default of poststage1_ldflags to be empty if
	poststage1_libs is set.  When poststage1_libs is empty, and
	ENABLE_BUILD_WITH_CXX is set, add -static-libgcc.
	* configure: Rebuild.
gcc/:
	* Makefile.in (HOST_LIBS): Move higher in file.
	(LINKER, LINKER_FLAGS): If ENABLE_BUILD_WITH_CXX, but $(HOST_LIBS)
	is not empty, set to $(CC) and $(CFLAGS).

From-SVN: r154422
2009-11-22 04:25:56 +00:00
Alexandre Oliva f61428ed3c configure.ac: Add libelf to host_libs.
* configure.ac: Add libelf to host_libs.  Enable in-tree configury
of ppl and cloog.  Fix in-tree configury of libelf, skip tests.
Fix portability of test of C++ as bootstrap language.  Add
ppl/src/ppl-config.o to the bootstrap compare exclusion list.
* configure: Rebuild.
* Makefile.def: Drop host and target settings from gmp, mpfr, ppl,
and cloog.  Fix in-tree ppl configuration.  Introduce libelf
in-tree building.
* Makefile.tpl (POSTSTAGE1_CXX_EXPORT): New.
(POSTSTAGE1_HOST_EXPORTS): Use it.
(STAGE[+id+]_CXXFLAGS): New.
(BASE_FLAGS_TO_PASS): Pass it down.
(configure-stage[+id+]-[+prefix+][+module+]): Use it.  Add
extra_exports.
(all-stage[+id+]-[+prefix+][+module+]): Likewise.
(configure-[+prefix+][+module+], all-[+prefix+][+module+]): Add
extra_exports.
* Makefile.in: Rebuild.

From-SVN: r154211
2009-11-16 18:31:10 +00:00
Ozkan Sezer 5d571eaa95 configure.ac (FLAGS_FOR_TARGET): Add -L and -isystem paths for *-w64-mingw* and x86_64-*mingw*.
2009-11-06  Ozkan Sezer  <sezeroz@gmail.com>

        * configure.ac (FLAGS_FOR_TARGET):  Add -L and -isystem
        paths for *-w64-mingw* and x86_64-*mingw*.
        * configure: Regenerated.

From-SVN: r153964
2009-11-06 11:16:30 +01:00
Kai Tietz ef4c43006d configure.ac: Disable target-winsup & co for x86_64-*-mingw* and *-w64-mingw* targets.
2009-10-30  Kai Tietz  <kai.tietz@onevision.com>

        * configure.ac: Disable target-winsup & co for
        x86_64-*-mingw* and *-w64-mingw* targets.
        * configure: Regenerated.

From-SVN: r153761
2009-10-30 17:47:40 +01:00
Rainer Orth e25a8c8216 acx.m4 (ACX_CHECK_CYGWIN_CAT_WORKS): Use = with test.
config:
	* acx.m4 (ACX_CHECK_CYGWIN_CAT_WORKS): Use = with test.

From-SVN: r153493
2009-10-23 10:03:47 +00:00
Rainer Orth 17e72e5d22 configure.ac (CLooG test): Use = with test.
* configure.ac (CLooG test): Use = with test.
	* configure: Regenerate.

From-SVN: r153490
2009-10-23 09:24:25 +00:00
Richard Guenther ed3a56f30b configure.ac: Do not set LIBS for ppl/cloog checks.
2009-10-22  Richard Guenther  <rguenther@suse.de>

	* configure.ac: Do not set LIBS for ppl/cloog checks.  Disable
	cloog if the ppl version check failed.  Move flags saving
	before setting in libelf check.
	* configure: Regenerate.

From-SVN: r153447
2009-10-22 08:56:00 +00:00
Richard Guenther ad0abd3c90 configure.ac: Adjust the ppl and cloog configure to work as documented.
2009-10-21  Richard Guenther  <rguenther@suse.de>

	* configure.ac: Adjust the ppl and cloog configure to work as
	documented.  Disable cloog if ppl was disabled.  Omit the version
	checks if they were disabled.
	* configure: Re-generate.

From-SVN: r153055
2009-10-21 11:40:17 +00:00
Ralf Wildenhues e4c5bd489f Fix toplevel 'config.status --recheck' for --enable-lto.
/:
	* configure.ac: Add 'lto' to enable_languages, not
	new_enable_languages, and only if not already present.
	* configure: Regenerate.

From-SVN: r152697
2009-10-13 03:31:50 +00:00
Diego Novillo d7f09764d7 Merge lto branch into trunk.
From-SVN: r152434
2009-10-03 17:10:11 -04:00
Kaveh R. Ghazi 3e661154be configure.ac: Update minimum MPC version to 0.7.
* configure.ac: Update minimum MPC version to 0.7.
	* configure: Regenerate.

gcc:
	* doc/install.texi: Update minimum MPC version to 0.7.

From-SVN: r152207
2009-09-26 20:22:43 +00:00
Nick Clifton f1a036e46f configure.ac: Pass any --cache-file=/dev/null option on to subconfigures.
* configure.ac: Pass any --cache-file=/dev/null option on to
        subconfigures.
        * configure: Regenerate.

From-SVN: r152183
2009-09-25 19:23:40 +00:00
Ralf Wildenhues 0db770bd0a Error out if building separately but srcdir has build remnants.
/:
	PR bootstrap/32272
	* configure.ac: Error out if $srcdir isn't '.' but contains
	host-${host_noncanonical}.
	* configure: Regenerate.

From-SVN: r152037
2009-09-22 18:00:15 +00:00
Ralf Wildenhues 79cd2b2322 Require c++ in stage1_languages with --enable-gold in combined bootstrap.
/:
	* configure.ac: If bootstrapping a combined tree with
	--enable-gold, require c++ in stage1_languages.
	* configure: Regenerate.

From-SVN: r151943
2009-09-21 20:32:37 +00:00
Ralf Wildenhues ab9dcd0c1e toplevel configure: bootstrap target_libs of stage1_languages.
/:
	* configure.ac: Also add target_libs of stage1_languages to
	bootstrap_target_libs.
	* configure: Regenerate.

From-SVN: r151942
2009-09-21 20:31:18 +00:00
Ralf Wildenhues ca6d0d6209 Diagnose --enable-build-with-cxx --enable-bootstrap --enable-languages w/o c++
/*
	* configure.ac: Diagnose --enable-build-with-cxx bootstrap
	with --enable-languages not containing c++.
	* configure: Regenerate.

From-SVN: r151939
2009-09-21 19:24:40 +00:00
Jie Zhang 1c3c9f1247 configure.ac: Disable java and boehm-gc for bfin-*-*.
* configure.ac: Disable java and boehm-gc for bfin-*-*.
	* configure: Regenerate.

From-SVN: r151724
2009-09-15 15:10:09 +00:00
Ralf Wildenhues 3e54529c11 Fix toplevel config.status for HP-UX sed.
/:
	* configure.ac: Do not use $extrasub for replacing @if/@endif
	parts in Makefile; instead, use additional arguments to
	AC_CONFIG_COMMANDS to do the replacement manually, with several
	sed invocations, to avoid HP-UX sed command limits.
	* configure: Regenerate.

From-SVN: r151525
2009-09-08 17:55:03 +00:00
Alexandre Oliva 5646b7b97e configure.ac (with-build-config): Document.
* configure.ac (with-build-config): Document.  Handle without.
Handle missing argument.
* configure: Rebuilt.

From-SVN: r151435
2009-09-04 18:58:34 +00:00
Alexandre Oliva e12c409449 configure.ac (--with-build-config): New.
ChangeLog:
* configure.ac (--with-build-config): New.  Set BUILD_CONFIG.
Default to bootstrap-debug only if compare-debug works.
* configure: Rebuilt.
* Makefile.tpl: Make BUILD_CONFIG configure-configurable.
* Makefile.in: Rebuilt.
contrib/ChangeLog:
* bootstrap-debug-big.mk (STAGE2_CFLAGS): Drop -gtoggle.
* bootstrap-debug-lean.mk: Update comments.
(STAGE2_CFLAGS): Likewise.
(do-compare): Don't override.
gcc/ChangeLog:
* doc/invoke.texi (BUILD_CONFIG): Document --with-build-config.
(bootstrap-debug): Explain conditions in which it becomes default.
(bootstrap-debug-big): Rather than duplicate bootstrap-debug,
make it add to it.

From-SVN: r151367
2009-09-03 05:55:57 +00:00