1. 06 Feb, 2015 1 commit
    • Revert the PR lto/64837 fix · 514ba9e4
      It breaks gold:
      
      % echo "int main () {}" | gcc -fuse-ld=gold -flto -x c++ -
      ld.gold: internal error in remove_writer, at token.h:132
      collect2: error: ld returned 1 exit status
      
      	* lto-plugin.c (release_input_file): Removed.
      	(claim_file_handler): Don't call release_input_file.
      	(onload): Don't set release_input_file.
      
      From-SVN: r220477
      H.J. Lu committed
  2. 05 Feb, 2015 2 commits
  3. 28 Jan, 2015 2 commits
  4. 09 Dec, 2014 1 commit
    • lto-wrapper.c (compile_offload_image): Start processing in_argv from 0 instead of 1. · 443743fd
      gcc/
      	* lto-wrapper.c (compile_offload_image): Start processing in_argv
      	from 0 instead of 1.
      	(run_gcc): Put offload objects into offload_argv, put LTO objects and
      	possible preceding arguments into lto_argv.
      	Pass offload_argv to compile_images_for_offload_targets instead of argv.
      	Use lto_argv for LTO recompilation instead of argv.
      lto-plugin/
      	* lto-plugin.c (offload_files, num_offload_files): New static variables.
      	(free_1): Use arguments instead of global variables.
      	(free_2): Free offload_files.
      	(all_symbols_read_handler): Add names from offload_files to lto-wrapper
      	arguments.
      	(claim_file_handler): Do not add file to claimed_files if it contains
      	offload sections without LTO sections.  Add it to offload_files instead.
      
      From-SVN: r218543
      Ilya Verbin committed
  5. 21 Nov, 2014 1 commit
    • Always use PIC option with -shared in libtool · a699d672
      Libtool needs to pass PIC option -shared when creating shared object to
      link regular object files with slim-lto archive.
      
      	PR bootstrap/63784
      	* libtool.m4: Add $pic_flag with -shared.
      
      boehm-gc/
      
      	PR bootstrap/63784
      	* configure: Regenerated.
      
      gcc/
      
      	PR bootstrap/63784
      	* configure: Regenerated.
      
      libatomic/
      
      	PR bootstrap/63784
      	* configure: Regenerated.
      
      libbacktrace/
      
      	PR bootstrap/63784
      	* configure: Regenerated.
      
      libcc1/
      
      	PR bootstrap/63784
      	* configure: Regenerated.
      
      libcilkrts/
      
      	PR bootstrap/63784
      	* configure: Regenerated.
      
      libffi/
      
      	PR bootstrap/63784
      	* configure: Regenerated.
      
      libgfortran/
      
      	PR bootstrap/63784
      	* configure: Regenerated.
      
      libgomp/
      
      	PR bootstrap/63784
      	* configure: Regenerated.
      
      libitm/
      
      	PR bootstrap/63784
      	* configure: Regenerated.
      
      libjava/
      
      	PR bootstrap/63784
      	* configure: Regenerated.
      
      libjava/classpath/
      
      	PR bootstrap/63784
      	* configure: Regenerated.
      
      libobjc/
      
      	PR bootstrap/63784
      	* configure: Regenerated.
      
      libquadmath/
      
      	PR bootstrap/63784
      	* configure: Regenerated.
      
      libsanitizer/
      
      	PR bootstrap/63784
      	* configure: Regenerated.
      
      libssp/
      
      	PR bootstrap/63784
      	* configure: Regenerated.
      
      libstdc++-v3/
      
      	PR bootstrap/63784
      	* configure: Regenerated.
      
      libvtv/
      
      	PR bootstrap/63784
      	* configure: Regenerated.
      
      lto-plugin/
      
      	PR bootstrap/63784
      	* configure: Regenerated.
      
      From-SVN: r217937
      H.J. Lu committed
  6. 13 Nov, 2014 2 commits
    • [PATCH 4/7] OpenMP 4.0 offloading infrastructure: lto-wrapper. · fc8b3540
      gcc/
      	* gcc.c (spec_host_machine, accel_dir_suffix): New variables.
      	(process_command): Tweak path construction for the possibility
      	of being configured as an offload compiler.
      	(driver::maybe_putenv_OFFLOAD_TARGETS): New function.
      	(driver::main): Call maybe_putenv_OFFLOAD_TARGETS.
      	(driver::set_up_specs): Tweak path construction for the possibility of
      	being configured as an offload compiler.
      	* lto-wrapper.c (OFFLOAD_TARGET_NAMES_ENV): Define.
      	(offload_names, offloadbegin, offloadend): New static variables.
      	(free_array_of_ptrs, parse_env_var, access_check, compile_offload_image)
      	(compile_images_for_offload_targets, copy_file, find_offloadbeginend):
      	New static functions.
      	(run_gcc): Determine whether offload sections are present.  If so, run
      	compile_images_for_offload_targets and return the names of new generated
      	objects to linker.  If there are offload sections, but no LTO sections,
      	then return the copies of input objects without link-time recompilation.
      
      lto-plugin/
      	* lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define.
      	(struct plugin_objfile): Add new field "offload".
      	(process_offload_section): New static function.
      	(claim_file_handler): Claim file if it contains offload sections.
      
      Co-Authored-By: Andrey Turetskiy <andrey.turetskiy@intel.com>
      Co-Authored-By: Bernd Schmidt <bernds@codesourcery.com>
      Co-Authored-By: Michael Zolotukhin <michael.v.zolotukhin@intel.com>
      
      From-SVN: r217491
      Ilya Verbin committed
    • [PATCH 1/7] OpenMP 4.0 offloading infrastructure: configure and make · 85c64bbe
      	* configure: Regenerate.
      	* configure.ac (--enable-as-accelerator-for)
      	(--enable-offload-targets): New configure options.
      gcc/
      	* Makefile.in (real_target_noncanonical, accel_dir_suffix)
      	(enable_as_accelerator): New variables substituted by configure.
      	(libsubdir, libexecsubdir, unlibsubdir): Tweak for the possibility of
      	being configured as an offload compiler.
      	(DRIVER_DEFINES): Pass new defines DEFAULT_REAL_TARGET_MACHINE and
      	ACCEL_DIR_SUFFIX.
      	(install-cpp, install-common, install_driver, install-gcc-ar): Do not
      	install for the offload compiler.
      	* config.in: Regenerate.
      	* configure: Regenerate.
      	* configure.ac (real_target_noncanonical, accel_dir_suffix)
      	(enable_as_accelerator): Compute new variables.
      	(ACCEL_COMPILER): Define if the compiler is built as the accel compiler.
      	(OFFLOAD_TARGETS): List of target names suitable for offloading.
      	(ENABLE_OFFLOADING): Define if list of offload targets is not empty.
      gcc/cp/
      	* Make-lang.in (c++.install-common): Do not install for the offload
      	compiler.
      gcc/doc/
      	* install.texi (Options specification): Document
      	--enable-as-accelerator-for and --enable-offload-targets.
      gcc/fortran/
      	* Make-lang.in (fortran.install-common): Do not install for the offload
      	compiler.
      libgcc/
      	* Makefile.in (crtoffloadbegin$(objext)): New rule.
      	(crtoffloadend$(objext)): Likewise.
      	* configure: Regenerate.
      	* configure.ac (accel_dir_suffix): Compute new variable.
      	(extra_parts): Add crtoffloadbegin.o and crtoffloadend.o
      	if enable_offload_targets is not empty.
      	* offloadstuff.c: New file.
      libgomp/
      	* config.h.in: Regenerate.
      	* configure: Regenerate.
      	* configure.ac: Check for libdl, required for plugin support.
      	(PLUGIN_SUPPORT): Define if plugins are supported.
      	(enable_offload_targets): Support Intel MIC targets.
      	(OFFLOAD_TARGETS): List of target names suitable for offloading.
      lto-plugin/
      	* Makefile.am (libexecsubdir): Tweak for the possibility of being
      	configured for offload compiler.
      	(accel_dir_suffix, real_target_noncanonical): New variables substituted
      	by configure.
      	* Makefile.in: Regenerate.
      	* configure: Regenerate.
      	* configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new
      	variables.
      
      
      Co-Authored-By: Andrey Turetskiy <andrey.turetskiy@intel.com>
      Co-Authored-By: Ilya Verbin <ilya.verbin@intel.com>
      Co-Authored-By: Thomas Schwinge <thomas@codesourcery.com>
      
      From-SVN: r217485
      Bernd Schmidt committed
  7. 11 Nov, 2014 1 commit
    • re PR target/63610 (Fixing the libtool bug for Yosemite (darwin14)) · ebf6d33b
      toplevel:
      2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
      
      	PR target/63610
      	* libtool.m4: Fix globbing of darwin versions.
      
      boehm-gc/
      2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
      
      	PR target/63610
      	* configure: Regenerate.
      
      gcc/
      2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
      
      	PR target/63610
      	* configure: Regenerate.
      
      libatomic/
      2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
      
      	PR target/63610
      	* configure: Regenerate.
      
      libbacktrace/
      2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
      
      	PR target/63610
      	* configure: Regenerate.
      
      libcc1/
      2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
      
      	PR target/63610
      	* configure: Regenerate.
      
      libcilkrts/
      2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
      
      	PR target/63610
      	* configure: Regenerate.
      
      libffi/
      2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
      
      	PR target/63610
      	* configure: Regenerate.
      
      libgfortran/
      2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
      
      	PR target/63610
      	* configure: Regenerate.
      
      libgomp/
      2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
      
      	PR target/63610
      	* configure: Regenerate.
      
      libitm/
      2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
      
      	PR target/63610
      	* configure: Regenerate.
      
      libobjc/
      2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
      
      	PR target/63610
      	* configure: Regenerate.
      
      libquadmath/
      2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
      
      	PR target/63610
      	* configure: Regenerate.
      
      libsanitizer/
      2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
      
      	PR target/63610
      	* configure: Regenerate.
      
      libssp/
      2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
      
      	PR target/63610
      	* configure: Regenerate.
      
      libstdc++-v3/
      2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
      
      	PR target/63610
      	* configure: Regenerate.
      
      libvtv/
      2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
      
      	PR target/63610
      	* configure: Regenerate.
      
      lto-plugin/
      2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
      
      	PR target/63610
      	* configure: Regenerate.
      
      libjava/
      2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
      
      	PR target/63610
      	* configure: Regenerate.
      
      libjava/classpath/
      2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
      
      	PR target/63610
      	* configure: Regenerate.
      
      zlib/
      2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
      
      	PR target/63610
      	* configure: Regenerate.
      
      From-SVN: r217366
      Francois-Xavier Coudert committed
  8. 26 Aug, 2014 1 commit
  9. 13 Jun, 2014 1 commit
  10. 15 May, 2014 1 commit
  11. 17 Apr, 2014 2 commits
  12. 02 Apr, 2014 1 commit
  13. 28 Mar, 2014 1 commit
  14. 17 Mar, 2014 1 commit
  15. 23 Oct, 2013 1 commit
  16. 20 Sep, 2013 1 commit
  17. 14 Sep, 2012 1 commit
  18. 29 May, 2012 1 commit
  19. 16 May, 2012 1 commit
    • Regenerate configure files for libtool.m4 change · e6d5f8c9
      boehm-gc/
      
      	* configure: Regenerated.
      
      gcc/
      
      	* configure: Regenerated.
      
      libatomic/
      
      	* configure: Regenerated.
      
      libffi/
      
      	* configure: Regenerated.
      
      libgfortran/
      
      	* configure: Regenerated.
      
      libgomp/
      
      	* configure: Regenerated.
      
      libitm/
      
      	* configure: Regenerated.
      
      libjava/classpath/
      
      	* configure: Regenerated.
      
      libjava/
      
      	* configure: Regenerated.
      
      libmudflap/
      
      	* configure: Regenerated.
      
      libobjc/
      
      	* configure: Regenerated.
      
      libquadmath/
      
      	* configure: Regenerated.
      
      libssp/
      
      	* configure: Regenerated.
      
      libstdc++-v3/
      
      	* configure: Regenerated.
      
      lto-plugin/
      
      	* configure: Regenerated.
      
      zlib/
      
      	* configure: Regenerated.
      
      From-SVN: r187616
      H.J. Lu committed
  20. 22 Feb, 2012 1 commit
  21. 20 Dec, 2011 1 commit
  22. 19 Dec, 2011 1 commit
    • Check for warning flags without no- prefix · 095af58f
      config/:
      	PR bootstrap/51388
      	* warnings.m4 (ACX_PROG_CC_WARNING_OPTS)
      	(ACX_PROG_CC_WARNING_ALMOST_PEDANTIC): Run the test without the
      	no- prefix.
      fixincludes/:
      	* configure: Regenerate.
      gcc/:
      	* configure: Regenerate.
      libcpp/:
      	* configure: Regenerate.
      libdecnumber/:
      	* configure: Regenerate.
      libiberty/:
      	* configure: Regenerate.
      lto-plugin/:
      	* configure: Regenerate.
      
      From-SVN: r182478
      Andreas Schwab committed
  23. 21 Nov, 2011 1 commit
    • Additional fixes for FreeBSD-10 build: · c6084f68
      /:			* libtool.m4: Additional FreeBSD 10 fixes.
      
      boehm-gc/:		* configure: Regenerate.
      gcc/:			* configure: Regenerate.
      libffi/:		* configure: Regenerate.
      libgfortran/:		* configure: Regenerate.
      libgomp/:		* configure: Regenerate.
      libitm/:		* configure: Regenerate.
      libjava/:		* configure.ac: Fix some more FreeBSD 10 issues..
      			* configure: Regenerate.
      libjava/libltdl/:	* acinclude.m4: Additional FreeBSD 10 fixes.
      			* configure: Regenerate.
      libmudflap/:		* configure: Regenerate.
      libobjc/:		* configure: Regenerate.
      libquadmath/:		* configure: Regenerate.
      libssp/:		* configure: Regenerate.
      libstdc++-v3/:		* configure: Regenerate.
      lto-plugin/:		* configure: Regenerate.
      zlib/:			* configure: Regenerate.
      
      From-SVN: r181593
      Andreas Tobler committed
  24. 02 Oct, 2011 1 commit
    • re PR lto/47247 (Linker plugin specification makes it difficult to handle COMDATs) · ed0d2da0
      	PR lto/47247
      	* lto-plugin.c (get_symbols_v2): New variable.
      	(write_resolution): Use V2 API when available.
      	(onload): Handle LDPT_GET_SYMBOLS_V2.
      
      	* lto-symtab.c (lto_symtab_resolve_symbols): Do not resolve
      	when resolution is already availbale from plugin.
      	(lto_symtab_merge_decls_1): Handle LDPR_PREVAILING_DEF_IRONLY_EXP.
      	* cgraph.c (ld_plugin_symbol_resolution): Add prevailing_def_ironly_exp.
      	* lto-cgraph.c (LDPR_NUM_KNOWN): Update.
      	* ipa.c (varpool_externally_visible_p): IRONLY variables are never
      	externally visible.
      	* varasm.c (resolution_to_local_definition_p): Add
      	LDPR_PREVAILING_DEF_IRONLY_EXP.
      	(resolution_local_p): Likewise.
      
      	* common.c (lto_resolution_str): Add new resolution.
      	* common.h (lto_resolution_str): Likewise.
      
      From-SVN: r179424
      Jan Hubicka committed
  25. 30 Sep, 2011 1 commit
    • Use 64bit integer for LTO symbol ID. · ad7715f3
      gcc/lto
      
      2011-09-30  H.J. Lu  <hongjiu.lu@intel.com>
      	    Andi Kleen  <ak@linux.intel.com>
      
      	PR lto/50568
      	* lto.c (lto_splay_tree_delete_id): New.
      	(lto_splay_tree_compare_ids): Likewise.
      	(lto_splay_tree_lookup): Likewise.
      	(lto_splay_tree_id_equal_p): Likewise.
      	(lto_splay_tree_insert): Likewise.
      	(lto_splay_tree_new): Likewise.
      	(lto_resolution_read): Change id to unsigned HOST_WIDE_INT.
      	Use lto_splay_tree_id_equal_p and lto_splay_tree_lookup.
      	(create_subid_section_table): Use lto_splay_tree_lookup and
      	lto_splay_tree_insert.
      	(lto_file_read): Use lto_splay_tree_new.
      
      lto-plugin/
      
      2011-09-30  H.J. Lu  <hongjiu.lu@intel.com>
      	    Andi Kleen  <ak@linux.intel.com>
      
      	PR lto/50568
      	* lto-plugin.c (sym_aux): Change id to unsigned long long.
      	(plugin_symtab): Likewise.
      	(dump_symtab): Likewise.
      	(resolve_conflicts): Likewise.
      	(process_symtab): Likewise.
      
      Co-Authored-By: Andi Kleen <ak@linux.intel.com>
      
      From-SVN: r179395
      H.J. Lu committed
  26. 10 Aug, 2011 1 commit
  27. 20 Apr, 2011 1 commit
    • remove useless if-before-free tests · 04695783
      Change "if (E) free (E);" to "free (E);" everywhere except in the
      libgo/, intl/, zlib/ and classpath/ directories.
      Also transform equivalent variants like
      "if (E != NULL) free (E);" and allow an extra cast on the
      argument to free.  Otherwise, the tested and freed "E"
      expressions must be identical, modulo white space.
      
      From-SVN: r172785
      Jim Meyering committed
  28. 05 Apr, 2011 1 commit
  29. 13 Feb, 2011 1 commit
    • Remove freebsd1 from libtool.m4 macros and config.rpath. · 029c8f3e
      /:
      	Import from Libtool and gnulib:
      
      	2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>
      
      	Prepare for supporting FreeBSD 10.
      	* config.rpath: Remove handling of freebsd1* which soon would
      	match FreeBSD 10.0.
      
      	2011-01-20  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
      
      	Remove support for FreeBSD 1.x.
      	* libtool.m4 (_LT_LINKER_SHLIBS)
      	(_LT_SYS_DYNAMIC_LINKER): Remove handling of freebsd1* which
      	soon would incorrectly match FreeBSD 10.0.
      
      boehm-gc/:
      	* configure: Regenerate.
      
      gcc/:
      	* configure: Regenerate.
      
      libffi/:
      	* configure: Regenerate.
      
      libgfortran/:
      	* Makefile.in: Regenerate.
      	* aclocal.m4: Likewise.
      	* configure: Likewise.
      
      libgo/:
      	* config/libtool.m4: (_LT_LINKER_SHLIBS)
      	(_LT_SYS_DYNAMIC_LINKER): Remove handling of freebsd1* which
      	soon would incorrectly match FreeBSD 10.0.
      	* configure: Regenerate.
      
      libgomp/:
      	* configure: Regenerate.
      
      libjava/:
      	* configure: Regenerate.
      	* shlibpath.m4 (AC_LIBTOOL_SYS_DYNAMIC_LINKER): Remove handling
      	of freebsd1* which soon would incorrectly match FreeBSD 10.0.
      
      libjava/classpath/:
      	* config.rpath, ltcf-c.sh, ltcf-gcj.sh, ltconfig: Remove
      	handling of freebsd1* which soon would match FreeBSD 10.0.
      	* configure: Regenerate.
      
      libjava/libltdl/:
      	* acinclude.m4 (AC_LIBTOOL_PROG_LD_SHLIBS)
      	(AC_LIBTOOL_SYS_DYNAMIC_LINKER): Remove handling
      	of freebsd1* which soon would incorrectly match FreeBSD 10.0.
      	* configure: Regenerate.
      
      libmudflap/:
      	* configure: Regenerate.
      
      libobjc/:
      	* configure: Regenerate.
      
      libquadmath/:
      	* Makefile.in: Regenerate.
      	* aclocal.m4: Likewise.
      	* configure: Likewise.
      
      libssp/:
      	* Makefile.in: Regenerate.
      	* aclocal.m4: Likewise.
      	* configure: Likewise.
      
      libstdc++-v3/:
      	* configure: Regenerate.
      
      lto-plugin/:
      	* Makefile.in: Regenerate.
      	* aclocal.m4: Regenerate.
      	* configure: Regenerate.
      
      zlib/:
      	* configure: Regenerate.
      
      From-SVN: r170106
      Ralf Wildenhues committed
  30. 12 Feb, 2011 2 commits
    • Fix minor build system issues in lto-plugin. · 3917813c
      lto-plugin/:
      	* Makefile.am (all-local): Rename from 'all'.
      	(gcc_build_dir): Use $(host_subdir).
      	* Makefile.in: Regenerate.
      
      From-SVN: r170075
      Ralf Wildenhues committed
    • re PR lto/47225 (cross-compile fails while configuring libgcc with "xgcc: fatal… · f3d533d3
      re PR lto/47225 (cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found")
      
      ChangeLog:
      PR lto/47225
      * Makefile.def (lto-plugin): Double dash for enable-shared.
      (configure-gcc): Depend on all-lto-plugin.
      * Makefile.in: Rebuilt.
      lto-plugin/ChangeLog:
      PR lto/47225
      * Makefile.am (gcc_build_dir, in_gcc_libs): New.
      (liblto_plugin_la_LDFLAGS): Add -module.
      (copy_lto_plugin): Renamed to...
      ($(in_gcc_libs)): ... this.  Add mkinstalldirs.  Skip copying
      of static modules.
      * Makefile.in: Rebuild.
      gcc/ChangeLog:
      PR lto/47225
      * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
      in the current directory.
      * configure: Rebuilt.
      
      From-SVN: r170070
      Alexandre Oliva committed
  31. 07 Feb, 2011 3 commits
  32. 25 Jan, 2011 1 commit
  33. 12 Jan, 2011 1 commit