Commit Graph

191 Commits

Author SHA1 Message Date
Jeffrey A Law abc61fd406 * Makefile.in (partition.o): Depend on config.h
From-SVN: r32580
2000-03-16 01:37:47 -07:00
Bernd Schmidt 8c5d513f17 Some cleanups/additions for hashtables
From-SVN: r32536
2000-03-14 18:28:45 +00:00
Alex Samuel d9d4fb433e Changes in include:
* 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-10 08:16:55 +00:00
Zack Weinberg 5dc9cffdfd hashtab.h (struct htab): Add del_f.
* 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-10 00:00:24 +00:00
Zack Weinberg 5194cf0890 hashtab.c: Remove debugging variables (all_searches, all_collisions, 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-03-08 23:44:29 +00:00
Mumit Khan aeecce429e pexecute.c: Conditionally include string.h.
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-04 21:09:51 +00:00
Kaveh Ghazi cfa770517e Update copyright
From-SVN: r31206
2000-01-04 16:11:32 +00:00
Kaveh R. Ghazi 1eaf7d9c9b configure.in (ac_libiberty_warn_cflags): Turn on warnings if we're using gcc.
* 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
2000-01-04 16:09:57 +00:00
Geoff Keating 0fadedb2df vasprintf.c (int_vasprintf): Don't re-read the format character as this 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-27 21:38:06 +00:00
Mark Mitchell 08230f26ce splay-tree.h (struct splay_tree_node): Rename to ...
* 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-12-05 18:13:48 +00:00
Philippe De Muyter 6de9b8ff12 * hashtab.c (sys/types.h): File included.
From-SVN: r30683
1999-11-28 00:58:37 -07:00
Jason Merrill f3636679d9 strtoul.c, [...]: Remove advertising clause from BSD license
* strtoul.c, strtol.c, random.c: Remove advertising clause from
        BSD license

From-SVN: r30620
1999-11-22 13:36:49 -05:00
Jeff Law f507211e3c Revert last change.
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 02:01:30 -07:00
Jeffrey A Law ecc45b285a * Makefile.in (LIBOBJS): Depend on stamp-picdir.
From-SVN: r30533
1999-11-15 01:59:33 -07:00
Jeffrey A Law 36dd3a44a3 * hashtab.c: Include stdio.h.
From-SVN: r30475
1999-11-10 09:45:34 -07:00
Jeffrey A Law 6e30047279 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
From-SVN: r30453
1999-11-08 09:26:37 -07:00
Philippe De Muyter df548dfc02 * xstrdup (sys/types.h): Include this file.
From-SVN: r30347
1999-11-02 03:25:28 -07:00
Nathan Sidwell 2c37514337 Makefile.in (SUBDIRS): New macro.
* Makefile.in (SUBDIRS): New macro.
	(mostlyclean, clean, distclean, maintainer-clean): Adjust to
	avoid multiple subdirectory cleaning.
	(*-subdir): Use SUBDIRS.

From-SVN: r30229
1999-10-28 08:26:42 +00:00
Jim Kingdon a82cecdad5 cplus-dem.c: Move declarations of standard_symbol_characters and 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-25 22:30:08 -06:00
Zack Weinberg ed38f5d5d8 hashtab.c (find_hash_table_entry): When returning a DELETED_ENTRY slot, 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-23 15:56:52 +00:00
Mark Mitchell b60fe4a75b cplus-dem.c (INTBUF_SIZE): New macro.
* 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-19 17:52:52 +00:00
Kaveh R. Ghazi 3da5522a60 * calloc.c: Add a public domain notice.
From-SVN: r30069
1999-10-18 15:25:01 +00:00
Philippe De Muyter d7d36ea879 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
From-SVN: r30067
1999-10-18 02:36:29 -06:00
Vladimir Makarov a2f945c649 Makefile.in (CFILES): Add hashtab.c
* Makefile.in (CFILES): Add hashtab.c
        (REQUIRED_OFILES): Add hashtab.o
        (hashtab.o): Add dependencies.
        * hashtab.c: New file

From-SVN: r30012
1999-10-15 01:50:25 -06:00
Mumit Khan 7f22ec2e64 basename.c (DIR_SEPARATOR): New macro.
* 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-13 01:18:09 -06:00
Mark Mitchell 7c56a6cef7 cplus-dem.c (do_type): Handle pointer to member types whose enclosing 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-11 08:32:10 +00:00
Marc Espie cd32188bd6 * config.table: Provide a backup shell for executing move-if-change.
From-SVN: r29883
1999-10-10 01:27:40 -06:00
Mark Mitchell fc232f7a62 xmalloc.c (xmalloc): Fix spelling error.
* xmalloc.c (xmalloc): Fix spelling error.
	(xcalloc, xrealloc): Likewise.

From-SVN: r29779
1999-10-03 01:55:59 +00:00
Kaveh R. Ghazi 2a138827f0 cplus-dem.c (fancy_abort, [...]): Add prototype.
* 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-10-02 20:03:15 +00:00
Richard Henderson 2c45d1a04d alloca-conf.h (alloca): Don't use Gcc builtin or <alloca.h>.
* 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-27 11:45:52 -06:00
Kaveh R. Ghazi 5a657fc371 libiberty.h (make_temp_file): Add a prototype.
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
1999-09-25 13:11:17 +00:00
Kaveh R. Ghazi 33c5ddcd3e * xmemdup.c: Include sys/types.h.
From-SVN: r29218
1999-09-09 00:11:39 +00:00
Jeff Garzik b10647f1b2 xmemdup.c: New xmemdup function.
* xmemdup.c:  New xmemdup function.
	* Makefile.in, makefile.vms, vmsbuild.com:  Use xmemdup.[co].

From-SVN: r29199
1999-09-08 02:19:52 -06:00
Linas Vepstas 3dd6c3afe3 config.table: Add openedition target.
* config.table: Add openedition target.
        * config/mh-openedition: New file.

From-SVN: r29188
1999-09-07 23:33:11 -07:00
Marc Espie 19e28e2aee * pexecute.c (pexecute): Fill in temp_base when needed.
From-SVN: r29053
1999-09-02 01:37:50 -06:00
Richard Henderson 4dfeccf9d0 * getpwd.c: Check HAVE_GETCWD before defining it away.
From-SVN: r29013
1999-08-31 13:33:13 -07:00
Kaveh R. Ghazi 4ac3cb830a Makefile.in (CFILES): Add calloc.c and getpwd.c.
* Makefile.in (CFILES): Add calloc.c and getpwd.c.
	(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.

From-SVN: r28996
1999-08-31 00:50:36 +00:00
Kaveh R. Ghazi e797ff7048 Warning fixes:
* 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'.

From-SVN: r28859
1999-08-25 13:29:34 +00:00
Philippe De Muyter 55247fce70 * strtoul.c (strtoul): Add parentheses around && within ||.
From-SVN: r28819
1999-08-24 02:51:03 -06:00
Daniel Jacobowitz 76632dd06d Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix, libdir, libsubdir and tooldir.
* Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
        libdir, libsubdir and tooldir.
Applied in libchill, libf2c, libiberty and libobjc

From-SVN: r28569
1999-08-06 23:37:16 -06:00
Mark Mitchell d080bbfa45 * splay-tree.h (splay_tree_insert): Return the new node.
From-SVN: r28389
1999-08-02 05:54:50 +00:00
Ian Lance Taylor 652374d338 splay-tree.c (splay_tree_insert): Add initialization to avoid warning.
* splay-tree.c (splay_tree_insert): Add initialization to avoid
        warning.

From-SVN: r28269
1999-07-26 11:57:25 -06:00
Richard Henderson a81c752ad3 argv.c: Include stdlib.h and string.h instead of prototyping directly.
* argv.c: Include stdlib.h and string.h instead of
        prototyping directly.
        * choose-temp.c: Conditionally include string.h.

From-SVN: r28099
1999-07-14 10:29:38 -07:00
Jason Merrill 8f1824d91b * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
From-SVN: r28071
1999-07-12 14:20:41 -04:00
Jason Merrill a654176720 tweak
From-SVN: r28003
1999-07-07 22:43:10 -04:00
Jason Merrill a4494286a6 Makefile.in (needed-list): Only include stuff we actually need for libstdc++.
* Makefile.in (needed-list): Only include stuff we actually need
	for libstdc++.

From-SVN: r27999
1999-07-07 11:22:55 -04:00
Jeff Law e8bb250c8d Whoops. Revert patch applied to the wrong tre.
From-SVN: r27737
1999-06-24 15:30:38 -06:00
Philippe De Muyter 4ef877d9fb setenv.c (sys/types.h, stdio.h): Files included.
* setenv.c (sys/types.h, stdio.h): Files included.
        * 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.

From-SVN: r27736
1999-06-24 15:28:22 -06:00
Andreas Schwab 90e72e20a3 configure.in (checkfuncs): Add gettimeofday.
* configure.in (checkfuncs): Add gettimeofday.
        * config.in, configure: Regenerated.

From-SVN: r27647
1999-06-20 23:01:18 -06:00
Mumit Khan 62133b5e6a configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if the test fails.
p
        * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
        the test fails.
        * configure: Regenerate.

From-SVN: r27642
1999-06-20 22:56:40 -06:00