summaryrefslogtreecommitdiff
path: root/libiberty
Commit message (Collapse)AuthorAgeFilesLines
* merge from bfdlandjason2000-03-244-13/+33
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32729 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in (partition.o): Depend on config.hlaw2000-03-162-1/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32580 138bc75d-0d04-0410-961f-82ee72b054a4
* Some cleanups/additions for hashtablescrux2000-03-142-8/+71
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32536 138bc75d-0d04-0410-961f-82ee72b054a4
* Changes in include:samuel2000-03-103-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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32465 138bc75d-0d04-0410-961f-82ee72b054a4
* * hashtab.h (struct htab): Add del_f.zack2000-03-102-1/+32
| | | | | | | | | | | | (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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32459 138bc75d-0d04-0410-961f-82ee72b054a4
* * hashtab.c: Remove debugging variables (all_searches,zack2000-03-082-218/+258
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32437 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>khan2000-01-042-1/+48
| | | | | | | | * pexecute.c: Conditionally include string.h. (fix_argv): Handle embedded whitespace in args for Mingw32. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31214 138bc75d-0d04-0410-961f-82ee72b054a4
* Update copyrightghazi2000-01-041-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31206 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.in (ac_libiberty_warn_cflags): Turn on warnings ifghazi2000-01-044-87/+101
| | | | | | | | | we're using gcc. * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@ git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31205 138bc75d-0d04-0410-961f-82ee72b054a4
* * vasprintf.c (int_vasprintf): Don't re-read the format charactergeoffk1999-12-272-0/+6
| | | | | | | as this mishandles strings like '%%s'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31102 138bc75d-0d04-0410-961f-82ee72b054a4
* * splay-tree.h (struct splay_tree_node): Rename to ...mmitchel1999-12-052-2/+9
| | | | | | | | | | | | | | (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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30790 138bc75d-0d04-0410-961f-82ee72b054a4
* * hashtab.c (sys/types.h): File included.law1999-11-282-0/+6
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30683 138bc75d-0d04-0410-961f-82ee72b054a4
* * strtoul.c, strtol.c, random.c: Remove advertising clause fromjason1999-11-224-19/+33
| | | | | | | BSD license git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30620 138bc75d-0d04-0410-961f-82ee72b054a4
* Revert last change. HJ's message meant "code like this already existslaw1999-11-152-8/+0
| | | | | | | | | in libiberty/libio", not "code like this needs to be added to libiberty/libio". What a waste of my time. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30534 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in (LIBOBJS): Depend on stamp-picdir.law1999-11-152-0/+8
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30533 138bc75d-0d04-0410-961f-82ee72b054a4
* * hashtab.c: Include stdio.h.law1999-11-102-0/+6
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30475 138bc75d-0d04-0410-961f-82ee72b054a4
* * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.law1999-11-082-1/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30453 138bc75d-0d04-0410-961f-82ee72b054a4
* * xstrdup (sys/types.h): Include this file.law1999-11-022-0/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30347 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in (SUBDIRS): New macro.nathan1999-10-282-4/+21
| | | | | | | | | (mostlyclean, clean, distclean, maintainer-clean): Adjust to avoid multiple subdirectory cleaning. (*-subdir): Use SUBDIRS. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30229 138bc75d-0d04-0410-961f-82ee72b054a4
* * cplus-dem.c: Move declarations of standard_symbol_characters andlaw1999-10-262-6/+12
| | | | | | | | hp_symbol_characters inside #ifdef MAIN to avoid compiler warnings. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30175 138bc75d-0d04-0410-961f-82ee72b054a4
* 1999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>zack1999-10-232-1/+45
| | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30138 138bc75d-0d04-0410-961f-82ee72b054a4
* * cplus-dem.c (INTBUF_SIZE): New macro.mmitchel1999-10-193-107/+172
| | | | | | | | | | | | | | | | (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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30091 138bc75d-0d04-0410-961f-82ee72b054a4
* * calloc.c: Add a public domain notice.ghazi1999-10-182-0/+7
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30069 138bc75d-0d04-0410-961f-82ee72b054a4
* * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.law1999-10-182-0/+6
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30067 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in (CFILES): Add hashtab.claw1999-10-153-3/+302
| | | | | | | | | (REQUIRED_OFILES): Add hashtab.o (hashtab.o): Add dependencies. * hashtab.c: New file git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30012 138bc75d-0d04-0410-961f-82ee72b054a4
* * basename.c (DIR_SEPARATOR): New macro.law1999-10-132-5/+42
| | | | | | | | | | (DIR_SEPARATOR_2): Likewise. (HAVE_DOS_BASED_FILESYSTEM): Likewise. (IS_DIR_SEPARATOR): Likewise. (main): Handle MSDOS style pathname. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29937 138bc75d-0d04-0410-961f-82ee72b054a4
* * cplus-dem.c (do_type): Handle pointer to member types whosemmitchel1999-10-113-1/+23
| | | | | | | enclosing classes have namespace scope. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29901 138bc75d-0d04-0410-961f-82ee72b054a4
* * config.table: Provide a backup shell for executing move-if-change.law1999-10-102-1/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29883 138bc75d-0d04-0410-961f-82ee72b054a4
* * xmalloc.c (xmalloc): Fix spelling error.mmitchel1999-10-032-6/+11
| | | | | | | (xcalloc, xrealloc): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29779 138bc75d-0d04-0410-961f-82ee72b054a4
* * cplus-dem.c (fancy_abort, demangle_integral_value,ghazi1999-10-022-8/+39
| | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29776 138bc75d-0d04-0410-961f-82ee72b054a4
* * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtinlaw1999-09-276-8/+51
| | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29680 138bc75d-0d04-0410-961f-82ee72b054a4
* include:ghazi1999-09-252-4/+6
| | | | | | | | | | | | | | | | | | | | * 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'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29662 138bc75d-0d04-0410-961f-82ee72b054a4
* * xmemdup.c: Include sys/types.h.ghazi1999-09-092-0/+6
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29218 138bc75d-0d04-0410-961f-82ee72b054a4
* * xmemdup.c: New xmemdup function.law1999-09-085-4/+30
| | | | | | | * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co]. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29199 138bc75d-0d04-0410-961f-82ee72b054a4
* * config.table: Add openedition target.rth1999-09-083-0/+9
| | | | | | | * config/mh-openedition: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29188 138bc75d-0d04-0410-961f-82ee72b054a4
* * pexecute.c (pexecute): Fill in temp_base when needed.law1999-09-022-0/+6
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29053 138bc75d-0d04-0410-961f-82ee72b054a4
* * getpwd.c: Check HAVE_GETCWD before defining it away.rth1999-08-312-5/+7
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29013 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in (CFILES): Add calloc.c and getpwd.c.ghazi1999-08-316-6/+138
| | | | | | | | | | | | | (REQUIRED_OFILES): Add getpwd.o. (getpwd.o): Add target. * configure.in (AC_PREREQ): Bump to 2.13. (AC_CHECK_HEADERS): Add check for <sys/stat.h>. * getpwd.c: New file, moved here from gcc. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28996 138bc75d-0d04-0410-961f-82ee72b054a4
* Warning fixes:ghazi1999-08-252-5/+15
| | | | | | | | | | | | | * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when comparing against a signed quantity. (arm_special): Likewise. (demangle_fund_type): Likewise. (do_hpacc_template_const_value): Mark parameter `work' with ATTRIBUTE_UNUSED. (main): Constify variable `valid_symbols'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28859 138bc75d-0d04-0410-961f-82ee72b054a4
* * strtoul.c (strtoul): Add parentheses around && within ||.law1999-08-242-1/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28819 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,law1999-08-072-1/+11
| | | | | | | | libdir, libsubdir and tooldir. Applied in libchill, libf2c, libiberty and libobjc git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28569 138bc75d-0d04-0410-961f-82ee72b054a4
* * splay-tree.h (splay_tree_insert): Return the new node.mmitchel1999-08-022-2/+8
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28389 138bc75d-0d04-0410-961f-82ee72b054a4
* * splay-tree.c (splay_tree_insert): Add initialization to avoidlaw1999-07-262-2/+7
| | | | | | | warning. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28269 138bc75d-0d04-0410-961f-82ee72b054a4
* * argv.c: Include stdlib.h and string.h instead ofrth1999-07-143-6/+11
| | | | | | | | prototyping directly. * choose-temp.c: Conditionally include string.h. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28099 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.jason1999-07-122-1/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28071 138bc75d-0d04-0410-961f-82ee72b054a4
* tweakjason1999-07-081-5/+6
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28003 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in (needed-list): Only include stuff we actually needjason1999-07-072-6/+18
| | | | | | | for libstdc++. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27999 138bc75d-0d04-0410-961f-82ee72b054a4
* Whoops. Revert patch applied to the wrong tre.law1999-06-243-9/+0
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27737 138bc75d-0d04-0410-961f-82ee72b054a4
* * setenv.c (sys/types.h, stdio.h): Files included.law1999-06-243-0/+9
| | | | | | | | | * xstrdup.c (sys/types.h): File included. For the gcc-2.95 branch only. Not to be migrated into the mainline tree because it is incomplete. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27736 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.in (checkfuncs): Add gettimeofday.law1999-06-214-4/+21
| | | | | | | * config.in, configure: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27647 138bc75d-0d04-0410-961f-82ee72b054a4