summaryrefslogtreecommitdiff
path: root/libiberty
Commit message (Collapse)AuthorAgeFilesLines
* Merge from transactional-memory branch.aldyh2011-11-082-2/+59
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181154 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/48370jason2011-11-042-3/+14
| | | | | | | | | | | | | | | | | | | | | | | | * call.c (extend_ref_init_temps, extend_ref_init_temps_1): New. (set_up_extended_ref_temp): Use it. Change cleanup parm to VEC. (initialize_reference): Just call convert_like. * decl.c (grok_reference_init): Just call initialize_reference. (build_init_list_var_init): Remove. (check_initializer): Change cleanup parm to VEC. Handle references like other types. Call perform_implicit_conversion instead of build_init_list_var_init. Don't use build_aggr_init for aggregate initialization of arrays. (cp_finish_decl): Change cleanup to VEC. * typeck2.c (store_init_value): Call extend_ref_init_temps. Use build_vec_init for non-constant arrays. * init.c (expand_aggr_init_1): Adjust. (build_vec_init): Avoid re-converting an initializer that's already digested. * mangle.c (mangle_ref_init_variable): Add a discriminator. * cp-tree.h: Adjust. * typeck.c (convert_for_initialization): Adjust. * decl2.c (maybe_emit_vtables): Adjust. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@180944 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix thinko in previous checkin.devans2011-11-021-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@180805 138bc75d-0d04-0410-961f-82ee72b054a4
* Forgotten in previous checkin that added timeval-utils.[ch].devans2011-11-022-8/+19
| | | | | | | | | | * Makefile.in (CFILES): Add it. (REQUIRED_OFILES): Add timeval-utils.$(objext). (INSTALLED_HEADERS): Add timeval-utils.h. (timeval-utils.$(objext)): Add rule. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@180803 138bc75d-0d04-0410-961f-82ee72b054a4
* * setproctitle.c (setproctitle): Use "GNU/Linux" in comment.ian2011-10-292-2/+6
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@180641 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc:iains2011-10-262-80/+448
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@180523 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/48665ian2011-10-103-0/+36
| | | | | | | | | * cp-demangle.c (d_cv_qualifiers): If qualifiers are applied to a function type, change them to apply to the "this" parameter. * testsuite/demangle-expected: Add test case. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179772 138bc75d-0d04-0410-961f-82ee72b054a4
* include/devans2011-09-282-0/+93
| | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179319 138bc75d-0d04-0410-961f-82ee72b054a4
* include/devans2011-09-282-0/+27
| | | | | | | | | | * libiberty.h (countargv): Declare. libiberty/ * argv.c (countargv): New function. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179318 138bc75d-0d04-0410-961f-82ee72b054a4
* trivial libiberty/ChangeLog updatebstarynk2011-09-241-0/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179147 138bc75d-0d04-0410-961f-82ee72b054a4
* include/ChangeLog:ccoutant2011-09-233-3/+111
| | | | | | | | | | | | | | | | | | PR 40831 * demangle.h (enum demangle_component_type): Add DEMANGLE_COMPONENT_CLONE. libiberty/ChangeLog: PR 40831 * cp-demangle.c (d_make_comp): Add new component type. (cplus_demangle_mangled_name): Check for clone suffixes. (d_parmlist): Don't error out if we see '.'. (d_clone_suffix): New function. (d_print_comp): Print info for clone suffixes. * testsuite/demangle-expected: Add new testcases. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179132 138bc75d-0d04-0410-961f-82ee72b054a4
* * md5.c (md5_process_bytes): Correct handling of unalignedian2011-09-232-4/+11
| | | | | | | buffer. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179128 138bc75d-0d04-0410-961f-82ee72b054a4
* Centralize PICFLAG configurationro2011-08-224-42/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@177967 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-08-12 Steve Ellcey <sje@cup.hp.com>sje2011-08-122-6/+14
| | | | | | | * md5.c (md5_read_ctx): Handle mis-aligned resbuf pointer. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@177700 138bc75d-0d04-0410-961f-82ee72b054a4
* * testsuite/test-expandargv.c (writeout_test): Check result of fwrite.uros2011-08-062-16/+23
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@177529 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/49932jason2011-08-013-2/+22
| | | | | | | | | gcc/cp/ * mangle.c (write_prefix): Handle decltype. libiberty/ * cp-demangle.c (d_prefix): Handle decltype. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@177074 138bc75d-0d04-0410-961f-82ee72b054a4
* Remove an extra line.hjl2011-07-262-1/+4
| | | | | | | | | 2011-07-26 H.J. Lu <hongjiu.lu@intel.com> * testsuite/demangle-expected: Remove an extra line. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176796 138bc75d-0d04-0410-961f-82ee72b054a4
* * cp-demangle.c (d_print_init): Initialize pack_index field.ian2011-07-263-1/+21
| | | | | | | | (d_print_comp): Check for NULL template argument. * testsuite/demangle-expected: Add test case. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176791 138bc75d-0d04-0410-961f-82ee72b054a4
* PR target/49817gerald2011-07-222-0/+8
| | | | | | | * stack-limit.c: Include <stdint.h>. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176662 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/49756jakub2011-07-221-0/+59
| | | | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176622 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/49756jakub2011-07-225-18/+43
| | | | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176617 138bc75d-0d04-0410-961f-82ee72b054a4
* * cp-demangle.c (d_expression): Handle 'this'.jason2011-07-043-7/+32
| | | | | | (d_print_comp) [DEMANGLE_COMPONENT_FUNCTION_PARAM]: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175836 138bc75d-0d04-0410-961f-82ee72b054a4
* Darwin has case-insensitive filesystemsbrobecke2011-07-012-6/+27
| | | | | | | | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175762 138bc75d-0d04-0410-961f-82ee72b054a4
* libiberty/jkratoch2011-07-013-3/+84
| | | | | | | | | | | | | | | 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.. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175761 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/37089jason2011-06-203-4/+41
| | | | | | * cp-demangle.c (d_print_comp): Handle reference smashing. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175213 138bc75d-0d04-0410-961f-82ee72b054a4
* libiberty/jkratoch2011-06-133-1/+19
| | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175001 138bc75d-0d04-0410-961f-82ee72b054a4
* include/jkratoch2011-06-134-8/+43
| | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175000 138bc75d-0d04-0410-961f-82ee72b054a4
* libiberty/jkratoch2011-06-132-118/+124
| | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174999 138bc75d-0d04-0410-961f-82ee72b054a4
* remove useless if-before-free testsmeyering2011-04-208-43/+34
| | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172785 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-04-10 Jim Meyering <meyering@redhat.com>mrs2011-04-102-1/+7
| | | | | | | | | Avoid memory overrun in a test leading to potential double-free. * testsuite/test-expandargv.c (writeout_test): Fix off-by-one error: i.e., do copy the trailing NUL byte. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172246 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-03-31 Tristan Gingold <gingold@adacore.com>gingold2011-03-312-1/+5
| | | | | | | | * makefile.vms (OBJS): Add filename_cmp.obj git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171776 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-02-28 Kai Tietz <kai.tietz@onevision.com>ktietz2011-02-283-0/+72
| | | | | | | | | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170570 138bc75d-0d04-0410-961f-82ee72b054a4
* libiberty: documentation markup and order fixes.rwild2011-02-0333-208/+366
| | | | | | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@169783 138bc75d-0d04-0410-961f-82ee72b054a4
* libiberty: add .gitignorevapier2011-01-182-0/+6
| | | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org> git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168942 138bc75d-0d04-0410-961f-82ee72b054a4
* Update Copyright years for files modified in 2010.jakub2011-01-038-9/+11
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168438 138bc75d-0d04-0410-961f-82ee72b054a4
* * splay-tree.c (splay_tree_foreach_helper): Remove arg `sp',devans2010-12-082-13/+44
| | | | | | | all callers updated. Rewrite to be non-recursive. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167589 138bc75d-0d04-0410-961f-82ee72b054a4
* * setproctitle.c [HAVE_SYS_PRCTL_H]: Include <sys/types.h>.ro2010-11-292-0/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167236 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix build regressiongreen2010-11-215-39/+15
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166996 138bc75d-0d04-0410-961f-82ee72b054a4
* PR other/46202: implement install-strip.rwild2010-11-202-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | /: 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166980 138bc75d-0d04-0410-961f-82ee72b054a4
* include/:ian2010-11-176-39/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166848 138bc75d-0d04-0410-961f-82ee72b054a4
* Properly demangle a global constructor symbol.hjl2010-11-163-3/+26
| | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166810 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-11-14 Kai Tietz <kai.tietz@onevision.com>ktietz2010-11-142-1/+7
| | | | | | | | | * simple-object-coff.c (simple_object_coff_read_strtab): Fix reading offset. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166735 138bc75d-0d04-0410-961f-82ee72b054a4
* libiberty/:ian2010-11-133-8/+14
| | | | | | | | | | | | | PR other/46332 * cp-demangle.c (d_print_function_type): Don't print parentheses if there are no modifiers to print. * testsuite/demangle-expected: Tweak one test case, add another. libstdc++/: * testsuite/abi/demangle/abi_examples/14.cc (main): Change expected demangling. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166695 138bc75d-0d04-0410-961f-82ee72b054a4
* Use spawnve on cygwin.rth2010-11-045-13/+237
| | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166339 138bc75d-0d04-0410-961f-82ee72b054a4
* include/:ian2010-11-0212-5/+3945
| | | | | | | | | | | | | | | | | | | | | | * simple-object.h: New file. libiberty/: * simple-object.c: New file. * simple-object-common.h: New file. * simple-object-elf.c: New file. * simple-object-mach-o.c: New file. * simple-object-coff.c: New file. * simple-object.txh: New file. * configure.ac: Add AC_TYPE_SSIZE_T. * Makefile.in: Rebuild dependencies. (CFILES): Add simple-object.c, simple-object-coff, simple-object-elf.c, and simple-object-mach-o.c. (REQUIRED_OFILES): Add corresponding object files. * configure: Rebuild. * config.in: Rebuild. * functions.texi: Rebuild. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166185 138bc75d-0d04-0410-961f-82ee72b054a4
* * setproctitle.c: Add space after function name in @deftypefnian2010-10-293-2/+8
| | | | | | | | comment. * functions.texi: Rebuild. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166079 138bc75d-0d04-0410-961f-82ee72b054a4
* Patch by Ralf Wildenhues.hubicka2010-10-263-64/+20
| | | | | | | | * aclocal.m4 (AC_LANG_FUNC_LINK_TRY(C)): Delete. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165977 138bc75d-0d04-0410-961f-82ee72b054a4
* Turn PR_SET_NAME check into link checkak2010-10-073-13/+13
| | | | | | | | | | | | | Fixes cross compilation for libiberty after my change libiberty/ 2010-10-07 Andi Kleen <ak@linux.intel.com> * configure: Regenerate. * configure.ac: Turn PR_SET_NAME check into link check. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165086 138bc75d-0d04-0410-961f-82ee72b054a4
* [PATCH] Report LTO phase in lto1 process name v2ak2010-10-067-13/+129
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On larger parallel WHOPR builds I find it useful to see in top which phase a given lto1 is in. Set the process name to lto1-wpa, lto1-ltrans, lto1-lto depending on the current mode. This is currently only implemented for Linux and only using the "comm" process name, which is reported in top. v2: Moved function to libiberty, renamed setproctitle to match BSD. In theory it should pick up BSD's libc function for this on a BSD system, but I haven't tested this. gcc/lto/ 2010-10-06 Andi Kleen <ak@linux.intel.com> * lto.c (lto_process_name): Add. (lto_main): Call lto_process_name. include/ 2010-10-06 Andi Kleen <ak@linux.intel.com> * libiberty.h (setproctitle): Add prototype. libiberty/ 2010-10-06 Andi Kleen <ak@linux.intel.com> * Makefile.in (CFILES): Add setproctitle. (CONFIGURED_OFILES): Add setproctitle. (setproctitle): Add rule. * config.in: Regenerate. * configure: Regenerate. * configure.ac: Add checks for prctl PR_SET_NAME and setproctitle. * setproctitle.c: Add file. * functions.texi: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165066 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-09-22 Tristan Gingold <gingold@adacore.com>gingold2010-09-223-89/+174
| | | | | | | | | | | * cplus-dem.c (ada_demangle): Add comments. Handle stream and controlled type operations. Decoding of some uppercase letters moved before separators. * testsuite/demangle-expected: Add tests. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164518 138bc75d-0d04-0410-961f-82ee72b054a4