summaryrefslogtreecommitdiff
path: root/libiberty
Commit message (Collapse)AuthorAgeFilesLines
* include/jbeulich2005-03-013-0/+87
| | | | | | | | | | | | | | | | | 2005-03-01 Jan Beulich <jbeulich@novell.com> * libiberty.h: Declare unlink_if_ordinary. libiberty/ 2005-03-01 Jan Beulich <jbeulich@novell.com> * Makefile.in (CFILES): Add unlink-if-ordinary.c (REQUIRED_OFILES): Add unlink-if-ordinary.o. Add dependencies and rule for unlink-if-ordinary.o. * unlink-if-ordinary.c: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95732 138bc75d-0d04-0410-961f-82ee72b054a4
* * hashtab.c (htab_find_slot_with_hash): Make functionbje2005-03-012-5/+10
| | | | | | | documentation clearer. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95717 138bc75d-0d04-0410-961f-82ee72b054a4
* * cp-demangle.c (__cxa_demangle): Change resolution of ambiguousjason2005-02-132-15/+5
| | | | | | | arguments. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94980 138bc75d-0d04-0410-961f-82ee72b054a4
* * hex.c (hex_value): Group 'unsigned int' together to get correctdj2005-01-113-12/+18
| | | | | | | | markup. * functions.texi: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@93196 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-12-27 H.J. Lu <hongjiu.lu@intel.com>hjl2004-12-277-1479/+752
| | | | | | | | | | | | * Makefile.in: Undo to 2004-12-17. * aclocal.m4: Likewise. * config.table: Likewise. * configure.ac: Likewise. * maint-tool: Likewise. * configure: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92651 138bc75d-0d04-0410-961f-82ee72b054a4
* Add the missing ChangeLog entry.hjl2004-12-201-0/+27
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92409 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-12-19 H.J. Lu <hongjiu.lu@intel.com>hjl2004-12-204-426/+497
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR bootstrap/19072 * Makefile.in (enable_shared): New substitute. (LTTARGETLIB): New. (PREFIXTARGETLIB): New. (LTTESTLIB): New. (PREFIXTESTLIB): New. (CCLD): New. (LINK): New. ($(TARGETLIB)): Use $(LINK) to create libraries and create targets by hand. ($(TESTLIB)): Likewise. (mostlyclean): Don't remove .libs. Remove the libtool object directory. * config.table (enable_shared): Removed. * configure.ac (enable_static): Set to yes. (AC_PROG_LIBTOOL): Removed. (AM_DISABLE_SHARED): Uncommented. (AM_PROG_LIBTOOL): Likewise. (LIBOBJS): Add `./' to avoid VPATH. (LTLIBOBJS): Likewise. (enable_shared): Substitute. * configure: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92406 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-12-18 H.J. Lu <hongjiu.lu@intel.com>hjl2004-12-187-704/+1407
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.in (top_builddir): Set to `.'. (OUTPUT_OPTION): Removed. (LIBTOOL): New. (LTLIBOBJS): New. (EXTRA_LTOFILES): New. (FLAGS_TO_PASS): Add EXTRA_LTOFILES. (all): Remove stamp-picdir. (LTCOMPILE): New. (.c.lo): New rule. (REQUIRED_LTOFILES): New. (CONFIGURED_LTOFILES): New. ($(TARGETLIB)): Check .libs for PIC object files. Depend on $(REQUIRED_LTOFILES) $(EXTRA_LTOFILES) $(LTLIBOBJS). (stamp-picdir): Completely removed. (maint-missing): Pass $(REQUIRED_LTOFILES) $(CONFIGURED_LTOFILES) instead of (REQUIRED_OFILES) $(CONFIGURED_OFILES) (maint-buildall): Depend on $(REQUIRED_LTOFILES) $(CONFIGURED_LTOFILES). (mostlyclean): Also remove *.lo .libs. Run "make maint-deps". * aclocal.m4: Include ../libtool.m4. * config.table: Don't check --enable-shared. * configure.ac (AC_PROG_LIBTOOL): Add. (AC_PROG_CC_C_O): Removed. (OUTPUT_OPTION): Removed. (NO_MINUS_C_MINUS_O): Removed. (ltpexecute): New substitute. (LIBOBJS): Cleanup. * configure: Regenerated. * maint-tool: Updated for .lo/libtool. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92353 138bc75d-0d04-0410-961f-82ee72b054a4
* [include]bje2004-12-104-0/+420
| | | | | | | | | | | | * fibheap.h (struct fibnode): Only use unsigned long bitfields when __GNUC__ is defined and ints are less than 32-bits wide. [libiberty] * configure.ac: Invoke AC_CHECK_SIZEOF for sizeof (int). * configure: Regenerate. * config.in: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92009 138bc75d-0d04-0410-961f-82ee72b054a4
* * splay-tree.c (splay_tree_delete_helper): Redesign the logic sodj2004-12-072-7/+53
| | | | | | | that recursion (and thus large stack space) is not needed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91815 138bc75d-0d04-0410-961f-82ee72b054a4
* * pex-unix.c: Fix the spelling of longjmp.kraai2004-11-302-1/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91507 138bc75d-0d04-0410-961f-82ee72b054a4
* PR other/18623ian2004-11-243-13/+13
| | | | | | | | | | | * cp-demangle.c (d_call_offset): Remove useless local variables offset and virtual_offset. * cplus-dem.c (ada_demangle): Remove useless local variable at_start_name. (demangle_template): Remove useless local variable start. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91133 138bc75d-0d04-0410-961f-82ee72b054a4
* * objalloc.c, strsignal.c, xstrerror.c: Include "config.h" beforesayle2004-11-205-6/+13
| | | | | | | | "ansidecl.h" to avoid redeclaration errors with native compilers. * regex.c: Protect config.h from multiple inclusion. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90954 138bc75d-0d04-0410-961f-82ee72b054a4
* Revert Index->Manual Index until --no-split is removed...mrs2004-11-132-6/+3
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90584 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in (libiberty.html): Fix html generation.mrs2004-11-132-1/+3
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90572 138bc75d-0d04-0410-961f-82ee72b054a4
* * libiberty.texi (Index): Fix html generation with makeinfo bymrs2004-11-132-3/+8
| | | | | | | renaming this node to Manual Index. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90571 138bc75d-0d04-0410-961f-82ee72b054a4
* * vasprintf.c: Accept __va_copy in addition to va_copy.nemet2004-09-082-0/+7
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87203 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-09-03 Paolo Bonzini <bonzini@gnu.org>bonzini2004-09-032-72/+44
| | | | | | | * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87030 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-09-02 Paolo Bonzini <bonzini@gnu.org>bonzini2004-09-022-2/+5
| | | | | | | * configure.ac: Do not enable multilibs for build-side libiberty. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86959 138bc75d-0d04-0410-961f-82ee72b054a4
* * lrealpath.c (lrealpath): Add _WIN32 support.dannysmith2004-06-292-0/+34
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83853 138bc75d-0d04-0410-961f-82ee72b054a4
* libiberty:zack2004-06-282-5/+23
| | | | | | | | | | | | * cp-demangle.h: Declare cplus_demangle_operators, cplus_demangle_builtin_types, cplus_demangle_mangled_name, and cplus_demangle_type as static if IN_GLIBCPP_V3. libobjc: * encoding.c: Rename target_flags with a #define to avoid conflict with a prior declaration. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83800 138bc75d-0d04-0410-961f-82ee72b054a4
* * testsuite/demangle-expected: Add test case.ian2004-06-282-0/+6
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83799 138bc75d-0d04-0410-961f-82ee72b054a4
* PR other/16240ian2004-06-282-0/+8
| | | | | | | | * cp-demangle.c (d_expr_primary): Check for a failure return from cplus_demangle_type. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83791 138bc75d-0d04-0410-961f-82ee72b054a4
* * pex-win32.c (fix_argv): Expand comment.dannysmith2004-05-312-1/+10
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82482 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in: Add .NOEXPORT.drow2004-05-252-0/+7
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82256 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcc.c (DELETE_IF_ORDINARY): New macro default definition.rupp2004-04-292-5/+6
| | | | | | | | | | | | (delete_if_ordinary): Use above macro. * config/alpha/xm-vms.h (DELETE_IF_ORDINARY): New macro VMS definition. Update copyright. * doc/hostconfig.texi (DELETE_IF_ORDINARY): Document new macro. * libiberty/mkstemps.c (mkstemps) [VMS]: Remove special open option. Update copyright. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81290 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.ac (UNSIGNED_64BIT_TYPE): Unquote the definition.ian2004-04-263-43/+79
| | | | | | | * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81191 138bc75d-0d04-0410-961f-82ee72b054a4
* * hashtab.c: Include limits.h, stdint.h, ansidecl.h.rth2004-04-225-128/+425
| | | | | | | | | | | | | | | | (CHAR_BIT): Provide default. (struct prime_ent, prime_tab): New. (higher_prime_index): Rename from higher_prime_number, return index. (htab_mod_1): New. (htab_mod, htab_mod_m2): Use it. (htab_create_alloc, htab_create_alloc_ex): Store prime index. (htab_expand): Likewise. * configure.ac: Check for stdint.h. (UNSIGNED_64BIT_TYPE): New define and checks to fill it in. * config.in, configure: Rebuild. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81029 138bc75d-0d04-0410-961f-82ee72b054a4
* * strerror.c: Include config.h, and redefine sys_nerr andian2004-04-132-3/+8
| | | | | | | sys_errlist, before including ansidecl.h and libiberty.h. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@80650 138bc75d-0d04-0410-961f-82ee72b054a4
* * hashtab.c (htab_remove_elt_with_hash): New function.law2004-04-132-2/+21
| | | | | | | | | (htab_remove_elt): Implement in terms of htab_remove_elt_with_hash. * hashtab.h (htab_remove_elt_with_hash): Prototype new function. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@80641 138bc75d-0d04-0410-961f-82ee72b054a4
* * hashtab.c (htab_size): Move to top of file; mark inline.rth2004-04-012-49/+83
| | | | | | | | | | | | | | (htab_elements): Likewise. (htab_mod, htab_mod_m2): New. (htab_delete): Refactor htab->size and htab->entries. (htab_empty): Likewise. (find_empty_slot_for_expand): Use htab_size, htab_mod, htab_mod_m2. (htab_find_with_hash, htab_find_slot_with_hash): Likewise. (htab_clear_slot): Use htab_size, htab_elements. (htab_traverse_noresize, htab_traverse): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@80278 138bc75d-0d04-0410-961f-82ee72b054a4
* * pex-unix.c (pexecute): Use vfork instead of fork, withian2004-03-183-17/+73
| | | | | | | | appropriate changes to make this safe. * pex-common.h (STDERR_FILE_NO): Define. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79617 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in: Clean up REQUIRED_OFILES and CONFIGURED_OFILES forian2004-03-182-27/+35
| | | | | | | an 80 column screen. Run maint-deps. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79616 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-03-09 Kelley Cook <kcook@gcc.gnu.org>kcook2004-03-095-71/+86
| | | | | | | | | | * configure.ac: Bump version to 2.59. Apply suggested autoupdates. * acconfig.h: Delete redundant file. * config.in: Regenerate. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79204 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure: Regenerate for config/accross.m4 correction.hp2004-03-092-369/+912
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79147 138bc75d-0d04-0410-961f-82ee72b054a4
* * testsuite/test-demangle.c: Include <string.h> and <stdlib.h> foraj2004-03-072-1/+13
| | | | | | | | prototypes. (main): Initialize style. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79062 138bc75d-0d04-0410-961f-82ee72b054a4
* * cp-demangle.h (enum d_builtin_type_print): Add D_PRINT_UNSIGNED,ian2004-02-254-84/+136
| | | | | | | | | | | | | | | | | | | D_PRINT_UNSIGNED_LONG, D_PRINT_LONG_LONG, D_PRINT_UNSIGNED_LONG_LONG, D_PRINT_FLOAT. * cp-demangle.c (cplus_demangle_builtin_types): Change char and short types to D_PRINT_DEFAULT. Change other integer types to use new D_PRINT_* values where appropriate. Change float types to D_PRINT_FLOAT. (d_print_comp) [LITERAL, LITERAL_NEG]: Handle new D_PRINT_* values. * testsuite/demangle-expected: Adjust two test cases. * cp-demangle.c (d_print_function_type): Print a space before the parenthesis around the function type in more cases. * testsuite/demangle-expected: Adjust one test case. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78421 138bc75d-0d04-0410-961f-82ee72b054a4
* * cp-demangle.c (d_print_comp) [UNARY]: Don't emit extraian2004-02-253-5/+8
| | | | | | | | | parentheses around a cast. * testsuite/demangle-expected: Adjust two test cases to match new output. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78416 138bc75d-0d04-0410-961f-82ee72b054a4
* * cp-demangle.c (__cxa_demangle): Pass DMGL_PARAMS to d_demangle.ian2004-02-242-1/+3
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78355 138bc75d-0d04-0410-961f-82ee72b054a4
* * cp-demangle.c (d_print_comp) [RESTRICT, VOLATILE, CONST]: Don'tian2004-02-243-21/+115
| | | | | | | | | | | | | push more than one of the same CV-qualifier on the top of the stack. (d_print_comp) [ARRAY_TYPE]: If the array itself is CV-qualified, move the CV-qualifiers to apply to the element type instead. (d_print_array_type): When checking the modifiers, keep looking past ones which have been printed already. * testsuite/demangle-expected: Add three test cases. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78354 138bc75d-0d04-0410-961f-82ee72b054a4
* * cp-demangle.c (__cxa_demangle): Adjust last patch to handleian2004-02-242-2/+5
| | | | | | | empty string correctly. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78353 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-02-23 Ian Lance Taylor <ian@wasabisystems.com>ian2004-02-242-11/+52
| | | | | | | | | | | * cp-demangle.c (__cxa_demangle): It is not an error if status is not NULL. It is an error if the mangled name is the same as a built-in type name. (main): If IN_GLIBCPP_V3 is defined, test __cxa_demangle rather than cplus_demangle_v3. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78348 138bc75d-0d04-0410-961f-82ee72b054a4
* * dyn-string.c: Remove test of IN_LIBGCC2 and IN_GLIBCPP_V3 andian2004-02-242-10/+6
| | | | | | | the associated #define of RETURN_ON_ALLOCATION_FAILURE. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78347 138bc75d-0d04-0410-961f-82ee72b054a4
* * regex.c: Include <ansidecl.h>.kraai2004-02-172-2/+10
| | | | | | | | (regcomp): Cast i to int. (regerror): Add ATTRIBUTE_UNUSED to parameter preg. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77944 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.ac: Add m4_pattern_allow(LIBOBJS).ian2004-01-263-5/+21
| | | | | | | * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76619 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in: Convert to ./ throughout. Rebuild dependenciesdj2004-01-225-154/+715
| | | | | | | | | | | with explicit build rules. (VPATH): Remove. (.c.o): Poison. * configure.ac (pexecute, LIBOBJS): Add ./ . * maint-tool: Build dependencies with explicit rules. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76366 138bc75d-0d04-0410-961f-82ee72b054a4
* * strdup.c (strdup): Constify the argument.kazu2004-01-152-1/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75929 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in (distclean): Remove config.cache.ljrittle2004-01-142-1/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75885 138bc75d-0d04-0410-961f-82ee72b054a4
* * cp-demangle.c (d_make_comp): DEMANGLE_COMPONENT_CONSTRUCTION_VTABLEdrow2004-01-133-2/+8
| | | | | | | | takes two parameters. * cp-demint.c (cplus_demangle_fill_component): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75819 138bc75d-0d04-0410-961f-82ee72b054a4
* * demangle.h (enum demangle_component_type): Define.ian2004-01-125-852/+1281
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (struct demangle_operator_info): Declare. (struct demangle_builtin_type_info): Declare. (struct demangle_component): Define. (cplus_demangle_fill_component): Declare. (cplus_demangle_fill_name): Declare. (cplus_demangle_fill_builtin_type): Declare. (cplus_demangle_fill_operator): Declare. (cplus_demangle_fill_extended_operator): Declare. (cplus_demangle_fill_ctor, cplus_demangle_fill_dtor): Declare. (cplus_demangle_v3_components): Declare. (cplus_demangle_print): Declare. * cp-demangle.c: Include "cp-demangle.h". If IN_GLIBCPP_V3 is defined, rename some functions which are to become static via #define. (CP_STATIC_IF_GLIBCPP_V3): Define. (struct d_operator_info): Move definition to cp-demangle.h, and rename to demangle_operator_info. Change all uses. (enum d_builtin_type_print): Move definition to cp-demangle.h. (struct d_builtin_type_info): Move definition to cp-demangle.h, and rename to demangle_builtin_type_info. Change all uses. (enum d_comp_type): Move definition to include/demangle.h, and rename to demangle_component_type, and change all enums to start with DEMANGLE_COMPONENT_ instead of D_. Change all uses. (struct d_comp): Move definition to include/demangle.h, and rename to demangle_component. Change all uses. (struct d_info): Move definition to cp-demangle.h. (cplus_demangle_fill_name): New function. (cplus_demangle_fill_extended_operator): New function. (cplus_demangle_fill_ctor): New function. (cplus_demangle_fill_dtor): New function. (d_make_empty): Remove type parameter. Change all callers. (d_make_name): Use cplus_demangle_fill_name. (d_make_extended_operator): Use cplus_demangle_fill_extended_operator. (d_make_ctor): Use cplus_demangle_fill_ctor. (d_make_dtor): Use cplus_demangle_fill_dtor. (cplus_demangle_mangled_name): Rename from d_mangled_name. Make non-static by default. Change all callers. (cplus_demangle_operators): Rename from d_operators. Change all uses. Make non-static by default. Add sentinel at end of array. (d_operator_name): Adjust initialization of high for new sentinel in cplus_demangle_operators. (cplus_demangle_builtin_types): Rename from d_builtin_types. Change all uses. Make non-static by default. Change initializer to use D_BUILTIN_TYPE_COUNT instead of magic number 26. (cplus_demangle_type): Rename from d_type. Make non-static by default. Change all callers. (cplus_demangle_init_info): Rename from d_init_info. Make non-static by default. Change all callers. * cp-demangle.h: New file. * cp-demint.c: New file. * Makefile.in: Rebuild dependencies. (CFILES): Add cp-demint.c. (REQUIRED_OFILES): Add cp-demint.o. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75748 138bc75d-0d04-0410-961f-82ee72b054a4