aboutsummaryrefslogtreecommitdiff
path: root/libiberty
AgeCommit message (Collapse)AuthorFilesLines
2000-05-09Add strncmp.c to list of CFILES and strncmp to the NEEDED listNick Clifton2-2/+7
From-SVN: r33785
2000-05-04demangle.h (demangler_engine): Constify.Kaveh R. Ghazi2-4/+11
include: * demangle.h (demangler_engine): Constify. libiberty: * cplus-dem.c (cplus_demangle_opname, demangle_function_name): Cast the arguments to `islower' to `unsigned char'. (print_demangler_list): Prototype. From-SVN: r33679
2000-05-04sort.h (sys/types.h): File included unconditionnaly.Philippe De Muyter2-0/+8
* sort.h (sys/types.h): File included unconditionnaly. (stddef.h): File include only #ifdef __STDC__. * sort.c (UCHAR_MAX): Provide fallback definition. From-SVN: r33670
2000-04-29Makefile.in (maintainer-clean-subdir): Fix handling of empty SUBDIRS.Alexandre Oliva2-3/+8
* Makefile.in (maintainer-clean-subdir): Fix handling of empty SUBDIRS. From-SVN: r33533
2000-04-28* libiberty/cplus-dem.cKenneth Block2-29/+128
(libiberty_demanglers): new table for demangle styles (cplus_demangle_set_style): New function for setting style (cplus_demangle_name_to_style): New function to translate name * include/demangle.h (libiberty_demanglers): new table for different styles (cplus_demangle_set_style): New function for setting style (cplus_demangle_name_to_style): New function to translate name Co-Authored-By: Jason Merrill <jason@casey.cygnus.com> From-SVN: r33525
2000-04-28aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.Kaveh R. Ghazi6-2/+479
* aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP. * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h. (libiberty_AC_FUNC_STRNCMP): Invoke. * strncmp.c: New file. From-SVN: r33498
2000-04-27hashtab.c (htab_expand): Add prototype.Jan Hubicka2-0/+7
* hashtab.c (htab_expand): Add prototype. (find_empty_slot_for_expand): Likewise. From-SVN: r33487
2000-04-24hashtab.c (hash_pointer, eq_pointer): Make definition static to match prototype.Kaveh R. Ghazi2-3/+9
* hashtab.c (hash_pointer, eq_pointer): Make definition static to match prototype. (htab_expand): Cast the return value of xcalloc. From-SVN: r33391
2000-04-24hashtab.h (hash_pointer): Declare.Mark Mitchell2-0/+34
* hashtab.h (hash_pointer): Declare. (eq_pointer): Likewise. * hashtab.c (hash_pointer): New function. (eq_pointer): Likewise. (htab_hash_pointer): New variable. (htab_eq_pointer): Likewise. From-SVN: r33372
2000-04-24* sort.c (sort_pointers): Fix endianness bugs.Mark Mitchell2-8/+12
From-SVN: r33368
2000-04-24sort.c: New file.Mark Mitchell3-4/+188
* sort.c: New file. * Makefile.in (CFILES): Add sort.c (REQUIRED_OFILES): Add sort.o. (sort.o): New target. From-SVN: r33364
2000-04-21Makefile.in (*-subdir): Revamp slightly to avoid losing on 4.3BSD systems.Michael Sokolov2-3/+9
2000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG> * Makefile.in (*-subdir): Revamp slightly to avoid losing on 4.3BSD systems. From-SVN: r33329
2000-04-18conflict.c (conflict_graph_add): Pass enum type to htab_find_slot.Richard Kenner2-47/+59
* gcc/conflict.c (conflict_graph_add): Pass enum type to htab_find_slot. * gcc/cpperror.c (hashtab.h): Now include. * gcc/cppexp.c (hashtab.h): Likewise. * gcc/cpplex.c (hashtab.h): Likewise. * gcc/cppfiles.c (hashtab.h): Likewise. (find_include_file, _cpp_calc_hash, cpp_read_file): Pass enum type to htab_find_slot_with_hash. * gcc/cpphash.c (hashtab.h): Now include. (_cpp_lookup_slot): INSERT is now enum insert_option. * gcc/cpphash.h (_cpp_lookup_slot): Likewise. * gcc/cppinit.c (hashtab.h): Include earlier. (initialize_builtins): Pass enum to htab_find_slot. * gcc/cpplib.c (hashtab.h): Now include. (do_define, do_undef): Pass enum type to _cpp_lookup_slot. (do_pragma_poison, do_assert): Likewise. * gcc/emit-rtl.c (gen_rtx_CONST_INT): Pass enum to htab_find_slot_with_hash. * gcc/simplify-rtx.c (cselib_lookup_mem, cselib_lookup): Likewise. * gcc/tree.c (type_hash_add): Likewise. (build1): Minor cleanup. * include/hashtab.h (enum insert_option): New type. (htab_find_slot, htab_find_slot_with_hash): Use it. * libiberty/hashtab.c: Various minor cleanups. (htab_find_slot_with_hash): INSERT is now enum insert_option. (htab_find_slot): Likewise. From-SVN: r33236
2000-04-16* cplus-dem.c (cplus_demangle_opname): Changed to use islower.Dave Pitts2-4/+8
From-SVN: r33189
2000-04-05* splay-tree.c (splay_tree_remove): New.Richard Henderson2-0/+45
From-SVN: r32949
2000-04-05From Mark Elbrecht:Jason Merrill2-43/+0
* makefile.dos: Remove; obsolete. * configure.bat: Remove; obsolete. From-SVN: r32938
2000-03-31hashtab.h (hashval_t): New type.Mark Mitchell2-7/+16
* hashtab.h (hashval_t): New type. (htab_find_with_hash): Use it as an argument. (htab_find_slot_with_hash): Likewise. * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash codes. (htab_find_with_hash): Likewise. (htab_find_slot_with_hash): Likewise. From-SVN: r32842
2000-03-29hashtab.c (htab_find_with_hash): Avoid calculating hash2 unless it will be used.Zack Weinberg2-8/+23
* hashtab.c (htab_find_with_hash): Avoid calculating hash2 unless it will be used. Rearrange loop for better optimization. (higher_prime_number): Add static prototype. From-SVN: r32809
2000-03-24merge from bfdlandIan Lance Taylor4-13/+33
From-SVN: r32729
2000-03-16* Makefile.in (partition.o): Depend on config.hJeffrey A Law2-1/+5
From-SVN: r32580
2000-03-14Some cleanups/additions for hashtablesBernd Schmidt2-8/+71
From-SVN: r32536
2000-03-10Changes in include:Alex Samuel3-10/+204
* partition.h: New file. Changes in libiberty: * Makefile.in (CFILES): Add partition.c. (REQUIRED_OFILES): Add partition.o. (partition.o): New rule. * partition.c: New file. Changes in gcc: * Makefile.in (ssa.o): New rule. (OBJS): Add ssa.o. (STAGESTUFF): Add *.ssa and *.ussa. (mostlyclean): Delete *.ssa, *.ussa, */*.ssa, */*.ussa. * rtl.def (PHI): New RTL expression. * rtl.h (clear_log_links): New declaration. (convert_to_ssa): Likewise. (convert_from_ssa): Likewise. * flow.c (split_edge): If the entry node falls through to the split edge's source block, split the entry edge. (clear_log_links): New function. * toplev.c (ssa_dump): New variable. (flag_ssa): Likewise. (f_options): Add "ssa". (compile_file): Create SSA dump files. (rest_of_compilation): Go to and from SSA if enabled. (decide_d_option): Handle -de for SSA dump files. * ssa.c: New file. From-SVN: r32465
2000-03-10hashtab.h (struct htab): Add del_f.Zack Weinberg2-1/+32
* hashtab.h (struct htab): Add del_f. (htab_del): New type. (htab_create): Add fourth argument. * hashtab.c (htab_create): Set del_f. (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot): Use it. From-SVN: r32459
2000-03-08hashtab.c: Remove debugging variables (all_searches, all_collisions, ↵Zack Weinberg2-218/+258
all_expansions). * hashtab.c: Remove debugging variables (all_searches, all_collisions, all_expansions). Delete all_hash_table_collisions. (create_hash_table, delete_hash_table, empty_hash_table, find_hash_table_entry, remove_element_from_hash_table_entry, clear_hash_table_slot, traverse_hash_table, hash_table_size, hash_table_elements_number, hash_table_collisions): Rename to: htab_create, htab_delete, htab_empty, htab_find_slot, htab_remove_elt, htab_clear_slot, htab_traverse, htab_size, htab_elements, htab_collisions. (htab_find): New function, handles common case where you don't plan to add or delete an entry. (htab_expand): Don't create a whole new table, just a new entry vector. (htab_find_slot): Simplify logic. * hashtab.h (hash_table_t): Rename to htab_t. (struct hash_table): Rename to struct htab. Shorten element names. Reorder elements by size. (htab_hash, htab_eq, htab_trav): New typedefs for the callback function pointers. (hash_table_entry_t): Discard; just use void * for element type. From-SVN: r32437
2000-01-04pexecute.c: Conditionally include string.h.Mumit Khan2-1/+48
2000-01-04 Mumit Khan <khan@xraylith.wisc.edu> * pexecute.c: Conditionally include string.h. (fix_argv): Handle embedded whitespace in args for Mingw32. From-SVN: r31214
2000-01-04Update copyrightKaveh Ghazi1-1/+1
From-SVN: r31206
2000-01-04configure.in (ac_libiberty_warn_cflags): Turn on warnings if we're using gcc.Kaveh R. Ghazi4-87/+101
* configure.in (ac_libiberty_warn_cflags): Turn on warnings if we're using gcc. * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@ From-SVN: r31205
1999-12-27vasprintf.c (int_vasprintf): Don't re-read the format character as this ↵Geoff Keating2-0/+6
mishandles strings like '%%s'. * vasprintf.c (int_vasprintf): Don't re-read the format character as this mishandles strings like '%%s'. From-SVN: r31102
1999-12-05splay-tree.h (struct splay_tree_node): Rename to ...Mark Mitchell2-2/+9
* splay-tree.h (struct splay_tree_node): Rename to ... (struct splay_tree_node_s): ... this. (struct splay_tree): Rename to ... (struct splay_tree_s): ... this. * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s rather than struct splay_tree_node. (splay_tree_insert): Use struct splay_tree_s rather than struct splay_tree. From-SVN: r30790
1999-11-28* hashtab.c (sys/types.h): File included.Philippe De Muyter2-0/+6
From-SVN: r30683
1999-11-22strtoul.c, [...]: Remove advertising clause from BSD licenseJason Merrill4-19/+33
* strtoul.c, strtol.c, random.c: Remove advertising clause from BSD license From-SVN: r30620
1999-11-15Revert last change.Jeff Law2-8/+0
Revert last change. HJ's message meant "code like this already exists in libiberty/libio", not "code like this needs to be added to libiberty/libio". What a waste of my time. From-SVN: r30534
1999-11-15* Makefile.in (LIBOBJS): Depend on stamp-picdir.Jeffrey A Law2-0/+8
From-SVN: r30533
1999-11-10* hashtab.c: Include stdio.h.Jeffrey A Law2-0/+6
From-SVN: r30475
1999-11-08* hashtab.c (traverse_hash_table): Protect prototype with PARAMS.Jeffrey A Law2-1/+5
From-SVN: r30453
1999-11-02* xstrdup (sys/types.h): Include this file.Philippe De Muyter2-0/+5
From-SVN: r30347
1999-10-28Makefile.in (SUBDIRS): New macro.Nathan Sidwell2-4/+21
* Makefile.in (SUBDIRS): New macro. (mostlyclean, clean, distclean, maintainer-clean): Adjust to avoid multiple subdirectory cleaning. (*-subdir): Use SUBDIRS. From-SVN: r30229
1999-10-25cplus-dem.c: Move declarations of standard_symbol_characters and ↵Jim Kingdon2-6/+12
hp_symbol_characters inside... * cplus-dem.c: Move declarations of standard_symbol_characters and hp_symbol_characters inside #ifdef MAIN to avoid compiler warnings. From-SVN: r30175
1999-10-23hashtab.c (find_hash_table_entry): When returning a DELETED_ENTRY slot, ↵Zack Weinberg2-1/+45
change it to EMPTY_ENTRY first. 1999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com> * hashtab.c (find_hash_table_entry): When returning a DELETED_ENTRY slot, change it to EMPTY_ENTRY first. (clear_hash_table_slot): New function which deletes an entry by its position in the table, not its value. (traverse_hash_table): New function which calls a hook function for every live entry in the table. * hashtab.h: Give hash_table_t a struct tag. Add prototypes for clear_hash_table_slot and traverse_hash_table. Correct prototype of all_hash_table_collisions. From-SVN: r30138
1999-10-19cplus-dem.c (INTBUF_SIZE): New macro.Mark Mitchell3-107/+172
* cplus-dem.c (INTBUF_SIZE): New macro. (string_append_template_idx): New function. (demangle_expression): Likewise. (demangle_integral_value): Use it. (demangle_real_value): New function, split out from ... (demangle_template_value_parm): ... here. Use string_append_template_idx. Use demangle_real_value. (demangle_template): Use string_append_template_idx. (demangle_qualified): Use consume_count_with_underscores. (get_count): Tweak formatting. (do_type): Use string_append_template_idx. From-SVN: r30091
1999-10-18* calloc.c: Add a public domain notice.Kaveh R. Ghazi2-0/+7
From-SVN: r30069
1999-10-18* setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.Philippe De Muyter2-0/+6
From-SVN: r30067
1999-10-15Makefile.in (CFILES): Add hashtab.cVladimir Makarov3-3/+302
* Makefile.in (CFILES): Add hashtab.c (REQUIRED_OFILES): Add hashtab.o (hashtab.o): Add dependencies. * hashtab.c: New file From-SVN: r30012
1999-10-13basename.c (DIR_SEPARATOR): New macro.Mumit Khan2-5/+42
* basename.c (DIR_SEPARATOR): New macro. (DIR_SEPARATOR_2): Likewise. (HAVE_DOS_BASED_FILESYSTEM): Likewise. (IS_DIR_SEPARATOR): Likewise. (main): Handle MSDOS style pathname. From-SVN: r29937
1999-10-11cplus-dem.c (do_type): Handle pointer to member types whose enclosing ↵Mark Mitchell3-1/+23
classes have namespace scope. * cplus-dem.c (do_type): Handle pointer to member types whose enclosing classes have namespace scope. From-SVN: r29901
1999-10-10* config.table: Provide a backup shell for executing move-if-change.Marc Espie2-1/+5
From-SVN: r29883
1999-10-03xmalloc.c (xmalloc): Fix spelling error.Mark Mitchell2-6/+11
* xmalloc.c (xmalloc): Fix spelling error. (xcalloc, xrealloc): Likewise. From-SVN: r29779
1999-10-02cplus-dem.c (fancy_abort, [...]): Add prototype.Kaveh R. Ghazi2-8/+39
* cplus-dem.c (fancy_abort, demangle_integral_value, demangle_arm_hp_template, recursively_demangle, standard_symbol_characters, hp_symbol_characters, main): Add prototype. (program_name, program_version, fatal): Constify a char*. (usage, fatal): Mark with ATTRIBUTE_NORETURN. (main): Call return, not exit. From-SVN: r29776
1999-09-27alloca-conf.h (alloca): Don't use Gcc builtin or <alloca.h>.Richard Henderson6-8/+51
* alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin or <alloca.h>. * clock.c (GNU_HZ): New definition. (clock): Use it. * getruntime.c: Likewise. * config.table: Use mh-beos. * config/mh-beos: New file. From-SVN: r29680
1999-09-25libiberty.h (make_temp_file): Add a prototype.Kaveh R. Ghazi2-4/+6
include: * libiberty.h (make_temp_file): Add a prototype. libiberty: * choose-temp.c: Remove obsolete comment about gcc. (make_temp_file): Constify a char*. gcc: * collect2.c (make_temp_file): Don't prototype. * gcc.c (make_temp_file): Likewise. * mips.c (mips_make_temp_file): Renamed from `make_temp_file'. From-SVN: r29662