Skip to content
Snippets Groups Projects
  1. Oct 29, 2011
  2. Oct 26, 2011
    • Iain Sandoe's avatar
      re PR target/48108 (lto should be containerized in a single mach-o section on darwin) · b20577ea
      Iain Sandoe authored
      gcc:
      
      	PR target/48108
      	* config/darwin.c (top level): Amend comments concerning LTO output.
      	(lto_section_num): New variable.  (darwin_lto_section_e): New GTY.
      	(LTO_SECTS_SECTION, LTO_INDEX_SECTION): New.
      	(LTO_NAMES_SECTION): Rename.
      	(darwin_asm_named_section): Record LTO section counts and switches
      	in a vec of darwin_lto_section_e.
      	(darwin_file_start): Remove unused code.
      	(darwin_file_end): Put an LTO section termination label.  Handle
      	output of the wrapped LTO sections, index and names table.
      
      libiberty:
      
      	PR target/48108
      	* simple-object-mach-o.c  (GNU_WRAPPER_SECTS, GNU_WRAPPER_INDEX,
      	GNU_WRAPPER_NAMES): New macros.
      	(simple_object_mach_o_segment): Handle wrapper scheme.
      	(simple_object_mach_o_write_section_header): Allow the segment name
      	to be supplied.
      	(simple_object_mach_o_write_segment): Handle wrapper scheme.  Ensure
      	that the top-level segment name in the load command is empty.
      	(simple_object_mach_o_write_to_file): Determine the number of
      	sections during segment output, use that in writing the header.
      
      From-SVN: r180523
      b20577ea
  3. Oct 10, 2011
  4. Sep 28, 2011
    • Doug Evans's avatar
      timeval-utils.h: New file. · 8c850a5a
      Doug Evans authored
      	include/
      	* timeval-utils.h: New file.
      
      	libiberty/
      	* timeval-utils.c: New file.
      	* Makefile.in (CFILES): Add it.
      	(REQUIRED_OFILES): Add timeval-utils.$(objext).
      	(INSTALLED_HEADERS): Add timeval-utils.h.
      	(timeval-utils.$(objext)): Add rule.
      
      From-SVN: r179319
      8c850a5a
    • Doug Evans's avatar
      libiberty.h (countargv): Declare. · be50fcea
      Doug Evans authored
      	include/
      	* libiberty.h (countargv): Declare.
      
      	libiberty/
      	* argv.c (countargv): New function.
      
      From-SVN: r179318
      be50fcea
  5. Sep 24, 2011
  6. Sep 23, 2011
  7. Aug 22, 2011
    • Rainer Orth's avatar
      Centralize PICFLAG configuration · e3aa9eba
      Rainer Orth authored
      	config:
      	* picflag.m4: New file.
      
      	gcc:
      	* configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
      	(PICFLAG_FOR_TARGET): Substitute.
      	* aclocal.m4: Regenerate.
      	* configure: Regenerate.
      
      	gcc/ada:
      	* gcc-interface/Makefile.in (PICFLAG_FOR_TARGET): New.
      	(GNATLIBCFLAGS_FOR_C): Replace
      	TARGET_LIBGCC2_CFLAGS by PICFLAG_FOR_TARGET.
      	(gnatlib-shared-default, gnatlib-shared-dual-win32)
      	(gnatlib-shared-win32, gnatlib-shared-darwin, gnatlib-shared)
      	(gnatlib-sjlj, gnatlib-zcx): Likewise.
      
      	libada:
      	* configure.ac: Include ../config/picflag.m4.
      	(GCC_PICFLAG): Call it.
      	Substitute.
      	* configure: Regenerate.
      	* Makefile.in (TARGET_LIBGCC2_CFLAGS): Replace by PICFLAG.
      	(GNATLIBCFLAGS_FOR_C): Replace TARGET_LIBGCC2_CFLAGS by PICFLAG.
      	(LIBADA_FLAGS_TO_PASS): Pass PICFLAG as PICFLAG_FOR_TARGET.
      	Don't include $(GCC_DIR)/libgcc.mvars.
      
      	libiberty:
      	* aclocal.m4: Include ../config/picflag.m4.
      	* configure.ac (GCC_PICFLAG): Call it.
      	(enable_shared): Clear PICFLAG unless shared.
      	* configure: Regenerate.
      
      From-SVN: r177967
      e3aa9eba
  8. Aug 12, 2011
  9. Aug 06, 2011
  10. Aug 01, 2011
  11. Jul 26, 2011
  12. Jul 22, 2011
    • Gerald Pfeifer's avatar
      re PR target/49817 (libiberty/stack-limit.c causes a bootstrap failure on all FreeBSD targets) · a0a22423
      Gerald Pfeifer authored
      	PR target/49817
      	* stack-limit.c: Include <stdint.h>.
      
      From-SVN: r176662
      a0a22423
    • Jakub Jelinek's avatar
      re PR c++/49756 (g++ ICE) · 679debee
      Jakub Jelinek authored
      	PR c++/49756
      	* libiberty.h (stack_limit_increase): New prototype.
      
      	* stack-limit.c: New file.
      	* Makefile.in: Regenerate deps.
      	(CFILES): Add stack-limit.c.
      	(REQUIRED_OFILES): Add ./stack-limit.$(objext).
      	* configure.ac (checkfuncs): Add getrlimit and setrlimit.
      	(AC_CHECK_FUNCS): Likewise.
      	* configure: Regenerated.
      	* config.in: Regenerated.
      
      	* gcc.c (main): Call stack_limit_increase (64MB).
      	* toplev.c (toplev_main): Likewise.
      
      From-SVN: r176622
      679debee
    • Jakub Jelinek's avatar
      re PR c++/49756 (g++ ICE) · d423df48
      Jakub Jelinek authored
      	PR c++/49756
      	* libiberty.h (stack_limit_increase): New prototype.
      
      	* stack-limit.c: New file.
      	* Makefile.in: Regenerate deps.
      	(CFILES): Add stack-limit.c.
      	(REQUIRED_OFILES): Add ./stack-limit.$(objext).
      	* configure.ac (checkfuncs): Add getrlimit and setrlimit.
      	(AC_CHECK_FUNCS): Likewise.
      	* configure: Regenerated.
      	* config.in: Regenerated.
      
      	* gcc.c (main): Call stack_limit_increase (64MB).
      	* toplev.c (toplev_main): Likewise.
      
      From-SVN: r176617
      d423df48
  13. Jul 04, 2011
  14. Jul 01, 2011
    • Joel Brobecker's avatar
      Darwin has case-insensitive filesystems · 985b34c7
      Joel Brobecker authored
      HFS+, the FS on Darwin, is case insensitive. So this patch adjusts
      filename_cmp.c to ignore the casing when comparing filenames on Darwin.
      
      include/ChangeLog:
      
              * filenames.h (HAVE_CASE_INSENSITIVE_FILE_SYSTEM): Define
              on Darwin, as well as on the systems that use a DOS-like
              filesystem.
      
      libiberty/ChangeLog:
      
              * filename_cmp.c (filename_cmp, filename_ncmp): Add handling of
              HAVE_CASE_INSENSITIVE_FILE_SYSTEM.
      
      From-SVN: r175762
      985b34c7
    • Jan Kratochvil's avatar
      re PR debug/49408 (member function template id not matching linkage name) · cb0ad104
      Jan Kratochvil authored
      libiberty/
      	PR debug/49408
      	* cp-demangle.c (d_print_comp): Suppress argument list for function
      	references by the '&' unary operator.  Keep also already processed
      	variant without the argument list.  Suppress argument list types for
      	function call used in an expression.
      	* testsuite/demangle-expected: Fix excessive argument list types in
      	`test for typed function in decltype'.  New testcase for no argument
      	list types printed.  3 new testcases for function references by the
      	'&' unary operator..
      
      From-SVN: r175761
      cb0ad104
  15. Jun 20, 2011
  16. Jun 13, 2011
    • Jan Kratochvil's avatar
      cp-demangle.c (d_print_comp): Suppress d_print_mod for DMGL_RET_POSTFIX. · 5fe8e1e9
      Jan Kratochvil authored
      libiberty/
      	* cp-demangle.c (d_print_comp) <DEMANGLE_COMPONENT_FUNCTION_TYPE>:
      	Suppress d_print_mod for DMGL_RET_POSTFIX.
      	* testsuite/demangle-expected: New testcases for --ret-postfix.
      
      From-SVN: r175001
      5fe8e1e9
    • Jan Kratochvil's avatar
      demangle.h (DMGL_RET_POSTFIX): Extend the comment. · f019462c
      Jan Kratochvil authored
      include/
      	* demangle.h (DMGL_RET_POSTFIX): Extend the comment.
      	(DMGL_RET_DROP): New.
      
      libiberty/
      	* cp-demangle.c (d_print_comp) <DEMANGLE_COMPONENT_FUNCTION_TYPE>: Do
      	not pass DMGL_RET_POSTFIX or DMGL_RET_DROP.  Support DMGL_RET_DROP.
      	* testsuite/demangle-expected: New testcases for --ret-drop.
      	* testsuite/test-demangle.c: Document --ret-drop in a comment.
      	(main): New variable ret_drop, fill it, call cplus_demangle with it.
      
      From-SVN: r175000
      f019462c
    • Jan Kratochvil's avatar
      cp-demangle.c (struct d_print_info): Remove field options. · 743a99db
      Jan Kratochvil authored
      libiberty/
      	* cp-demangle.c (struct d_print_info): Remove field options.
      	(d_print_init): Remove parameter options.
      	(cplus_demangle_print_callback): Update all the callers.
      	(d_print_comp, d_print_mod_list, d_print_mod, d_print_function_type)
      	(d_print_array_type, d_print_expr_op, d_print_cast, d_print_subexpr):
      	Add parameter options, update all the callers.
      
      From-SVN: r174999
      743a99db
  17. Apr 20, 2011
    • Jim Meyering's avatar
      remove useless if-before-free tests · 04695783
      Jim Meyering authored
      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
      04695783
  18. Apr 10, 2011
  19. Mar 31, 2011
  20. Feb 28, 2011
    • Kai Tietz's avatar
      re PR debug/28047 (DWARF output_file_names should really understand DOS pathnames) · 94369251
      Kai Tietz authored
      2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
      
      	PR debug/28047
      	* dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
      	(lookup_filename): Likewise.
      	* final.c (remap_debug_filename): Use filename_ncmp instead of
      	strncmp.
      
      2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
      
      	* filename_cmp.c (filename_ncmp): New function.
      	* functions.texi: Regenerated.
      
      2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
      
      	* filenames.h (filename_ncmp): New prototype.
      
      From-SVN: r170570
      94369251
  21. Feb 03, 2011
    • Ralf Wildenhues's avatar
      libiberty: documentation markup and order fixes. · 996c0cb0
      Ralf Wildenhues authored
      libiberty/:
      	* splay-tree.c: Escape wrapping newlines in texinfo markup
      	with '@', to fix function declaration output rendering.
      	* gather-docs: Relax and improve macro name matching to actually
      	match all current names and to allow input line wrapping.
      	* bsearch.c, concat.c, crc32.c, fnmatch.txh, fopen_unlocked.c,
      	hashtab.c, insque.c, make-relative-prefix.c, memchr.c, memcmp.c,
      	memcpy.c, memmem.c, memmove.c, mempcpy.c, memset.c,
      	pexecute.txh, random.c, setenv.c, setproctitle.c,
      	simple-object.txh, snprintf.c, stpncpy.c, strncmp.c, strtod.c,
      	strtol.c, vasprintf.c, vprintf.c, vsnprintf.c, xmemdup.c:
      	Wrap long texinfo input lines.
      	* functions.texi: Regenerate.
      
      From-SVN: r169783
      996c0cb0
  22. Jan 18, 2011
  23. Jan 03, 2011
  24. Dec 08, 2010
  25. Nov 29, 2010
  26. Nov 21, 2010
  27. Nov 20, 2010
    • Ralf Wildenhues's avatar
      PR other/46202: implement install-strip. · 455c8f48
      Ralf Wildenhues authored
      /:
      	PR other/46202
      	* configure.ac: Fix just-built in-tree STRIP name to be
      	binutils/strip-new.
      	* configure: Regenerate.
      	* Makefile.def (install-strip-gcc, install-strip-binutils)
      	(install-strip-opcodes, install-strip-ld, install-strip-itcl)
      	(install-strip-sid): Mirror dependencies on non-strip variants
      	of these targets on the respective -strip prerequisites.
      	* Makefile.tpl (install-strip, install-strip-host)
      	(install-strip-target): New targets.
      	(install-strip-[+module+], install-strip-target-[+module+]):
      	New targets.
      	* Makefile.in: Regenerate.
      
      gcc/:
      	PR other/46202
      	* Makefile.in (install_sh, INSTALL_STRIP_PROGRAM): New
      	variables.
      	(AR_FOR_TARGET, RANLIB_FOR_TARGET, STRIP_FOR_TARGET): Fix
      	shell quoting.
      	(STRIP_FOR_TARGET): Look for in-tree strip under name strip-new.
      	(install-strip): New target.
      	(STRIPPROG): New variable, exported if STRIP is set.
      	* doc/install.texi (Final install): Minor markup and code style
      	fixes.  Document install-strip target.
      
      fixincludes/:
      	PR other/46202
      	* Makefile.in (install-strip): New phony target.
      	(all, check, install): Also mark as phony.
      
      libgcc/:
      	PR other/46202
      	* Makefile.in (install-strip): New phony target.
      
      libiberty/:
      	PR other/46202
      	* Makefile.in (install-strip): New phony target.
      	(install): Also mark as phony.
      
      gnattools/:
      	PR other/46202
      	* Makefile.in (install-strip): New phony target.
      	(check, installcheck, info, dvi, pdf, html, install)
      	(install-info, install-pdf, install-html, mostlyclean)
      	(clean, distclean, maintainer-clean): Mark phony.
      
      libada/:
      	PR other/46202
      	* Makefile.in (install-strip): New phony target.
      	(check, installcheck, info, dvi, pdf, html, install)
      	(install-info, install-pdf, install-html, mostlyclean)
      	(clean, distclean, maintainer-clean): Mark phony.
      
      From-SVN: r166980
      455c8f48
  28. Nov 17, 2010
    • Ian Lance Taylor's avatar
      simple-object.h (simple_object_attributes_merge): Declare, replacing... · d82f74d3
      Ian Lance Taylor authored
      simple-object.h (simple_object_attributes_merge): Declare, replacing simple_object_attributes_compare.
      
      include/:
      	* simple-object.h (simple_object_attributes_merge): Declare,
      	replacing simple_object_attributes_compare.
      libiberty/:
      	* simple-object.c (simple_object_attributes_merge): Rename from
      	simple_object_attributes_compare.  Call merge field.
      	* simple-object-common.h (struct simple_object_functions): Rename
      	attributes_compare field to attribute_merge.
      	* simple-object-elf.c (EM_SPARC): Define.
      	(EM_SPARC32PLUS): Define.
      	(simple_object_elf_attributes_merge): Renamed from
      	simple_object_elf_attributes_compare.  Permit EM_SPARC and
      	EM_SPARC32PLUS objects to be merged.
      	(simple_object_elf_functions): Update function name.
      	* simple-object-coff.c (simple_object_coff_attributes_merge):
      	Rename from simple_object_coff_attributes_compare.
      	(simple_object_coff_functions): Update function name.
      	* simple-object-mach-o.c (simple_object_mach_o_attributes_merge):
      	Renamed from simple_object_mach_o_attributes_compare.
      	(simple_object_mach_o_functions): Update function name.
      gcc/lto/:
      	* lto-object.c (lto_obj_file_open): Call
      	simple_object_attributes_merge rather than
      	simple_object_attributes_compare.
      
      From-SVN: r166848
      d82f74d3
  29. Nov 16, 2010
    • H.J. Lu's avatar
      Properly demangle a global constructor symbol. · 431f321f
      H.J. Lu authored
      2010-11-16  H.J. Lu  <hongjiu.lu@intel.com>
      
      	PR other/42670
      	PR binutils/11137
      	* cp-demangle.c (d_make_demangle_mangled_name): New.
      	(d_demangle_callback): Use it on DCT_GLOBAL_XTORS.
      
      	* testsuite/demangle-expected: Updated.
      
      From-SVN: r166810
      431f321f
  30. Nov 14, 2010
  31. Nov 13, 2010
  32. Nov 04, 2010
    • Richard Henderson's avatar
      Use spawnve on cygwin. · 3b63ca7e
      Richard Henderson authored
      	* 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.
      
      From-SVN: r166339
      3b63ca7e
Loading