Commit Graph

35978 Commits

Author SHA1 Message Date
Gabriel Dos Reis
8b8d3a3451 * libmath/stubs.c (powf): Fix typo.
From-SVN: r43503
2001-06-22 08:57:02 +00:00
Gabriel Dos Reis
1a79c40144 * libmath/stubs.c (tanhf): Fix typo.
From-SVN: r43502
2001-06-22 07:53:41 +00:00
GCC Administrator
dbd52dc690 Daily bump.
From-SVN: r43501
2001-06-22 07:16:42 +00:00
Gabriel Dos Reis
505d6c69ac stubs.c: New file.
* libmath/stubs.c: New file.
        * libmath/Makefile.am (libmath_la_SOURCES): Add.
        * libmath/Makefile.in.  Regenerate.

From-SVN: r43499
2001-06-22 03:43:48 +00:00
Stan Shebs
3393c3a6e3 * objc/objc-act.c (hash_init): Use xcalloc.
From-SVN: r43498
2001-06-22 02:38:22 +00:00
Phil Edwards
daa19534a9 algo.h: Add "GPL plus runtime exception" comment.
2001-06-21  Phil Edwards  <pme@sources.redhat.com>

	* include/backward/algo.h:  Add "GPL plus runtime exception" comment.
	* include/backward/algobase.h:  Likewise.
	* include/backward/alloc.h:  Likewise.
	* include/backward/bvector.h:  Likewise.
	* include/backward/defalloc.h:  Likewise.
	* include/backward/deque.h:  Likewise.
	* include/backward/function.h:  Likewise.
	* include/backward/hash_map.h:  Likewise.
	* include/backward/hash_set.h:  Likewise.
	* include/backward/hashtable.h:  Likewise.
	* include/backward/heap.h:  Likewise.
	* include/backward/iterator.h:  Likewise.
	* include/backward/list.h:  Likewise.
	* include/backward/map.h:  Likewise.
	* include/backward/multimap.h:  Likewise.
	* include/backward/multiset.h:  Likewise.
	* include/backward/pair.h:  Likewise.
	* include/backward/rope.h:  Likewise.
	* include/backward/set.h:  Likewise.
	* include/backward/slist.h:  Likewise.
	* include/backward/stack.h:  Likewise.
	* include/backward/strstream:  Likewise.
	* include/backward/tempbuf.h:  Likewise.
	* include/backward/tree.h:  Likewise.
	* include/backward/vector.h:  Likewise.
	* include/bits/pthread_allocimpl.h:  Likewise.
	* include/bits/std_algorithm.h:  Likewise.
	* include/bits/std_bitset.h:  Likewise.
	* include/bits/std_deque.h:  Likewise.
	* include/bits/std_functional.h:  Likewise.
	* include/bits/std_iterator.h:  Likewise.
	* include/bits/std_list.h:  Likewise.
	* include/bits/std_map.h:  Likewise.
	* include/bits/std_memory.h:  Likewise.
	* include/bits/std_numeric.h:  Likewise.
	* include/bits/std_queue.h:  Likewise.
	* include/bits/std_set.h:  Likewise.
	* include/bits/std_stack.h:  Likewise.
	* include/bits/std_utility.h:  Likewise.
	* include/bits/std_vector.h:  Likewise.
	* include/bits/stl_algo.h:  Likewise.
	* include/bits/stl_algobase.h:  Likewise.
	* include/bits/stl_alloc.h:  Likewise.
	* include/bits/stl_bvector.h:  Likewise.
	* include/bits/stl_construct.h:  Likewise.
	* include/bits/stl_deque.h:  Likewise.
	* include/bits/stl_function.h:  Likewise.
	* include/bits/stl_heap.h:  Likewise.
	* include/bits/stl_iterator.h:  Likewise.
	* include/bits/stl_iterator_base_funcs.h:  Likewise.
	* include/bits/stl_iterator_base_types.h:  Likewise.
	* include/bits/stl_list.h:  Likewise.
	* include/bits/stl_map.h:  Likewise.
	* include/bits/stl_multimap.h:  Likewise.
	* include/bits/stl_multiset.h:  Likewise.
	* include/bits/stl_numeric.h:  Likewise.
	* include/bits/stl_pair.h:  Likewise.
	* include/bits/stl_pthread_alloc.h:  Likewise.
	* include/bits/stl_queue.h:  Likewise.
	* include/bits/stl_raw_storage_iter.h:  Likewise.
	* include/bits/stl_relops.h:  Likewise.
	* include/bits/stl_set.h:  Likewise.
	* include/bits/stl_stack.h:  Likewise.
	* include/bits/stl_tempbuf.h:  Likewise.
	* include/bits/stl_threads.h:  Likewise.
	* include/bits/stl_tree.h:  Likewise.
	* include/bits/stl_uninitialized.h:  Likewise.
	* include/bits/stl_vector.h:  Likewise.
	* include/bits/type_traits.h:  Likewise.
	* include/ext/hash_map:  Likewise.
	* include/ext/hash_set:  Likewise.
	* include/ext/rope:  Likewise.
	* include/ext/ropeimpl.h:  Likewise.
	* include/ext/slist:  Likewise.
	* include/ext/stl_hash_fun.h:  Likewise.
	* include/ext/stl_hashtable.h:  Likewise.
	* include/ext/stl_rope.h:  Likewise.
	* libsupc++/unwind-cxx.h:  Likewise.
	* src/bitset.cc:  Likewise.
	* src/strstream.cc:  Likewise.

From-SVN: r43496
2001-06-21 23:03:00 +00:00
Richard Henderson
ebf1c218a5 flow.c (entry_exit_blocks): Initialize frequency.
* flow.c (entry_exit_blocks): Initialize frequency.
        (split_block): Copy it.
        (dump_flow_info): Dump it.

From-SVN: r43494
2001-06-21 14:33:33 -07:00
J"orn Rennecke
6dee4e5f8e sh.c (barrier_align): Also recognize branch-around-a-jump-sequence from machine-depedent_reorg for...
* sh.c (barrier_align): Also recognize branch-around-a-jump-sequence
	from machine-depedent_reorg for purposes of alignment supression
	when no delay slot insn has been added.

From-SVN: r43493
2001-06-21 22:17:51 +01:00
Neil Booth
a6e865f8b8 re PR preprocessor/3260 (#include __FILE__ broken)
PR preprocessor/3260
	* cppmacro.c (make_string_token): Null terminate.

From-SVN: r43492
2001-06-21 20:56:07 +00:00
DJ Delorie
b91055dde9 alpha.h (struct machine_function): Remove.
* config/alpha/alpha.h (struct machine_function): Remove.
* config/alpha/alpha.c (integrate.h): Include.
(override_options): Don't set up machine_status hooks.
(alpha_init_machine_status): Remove.
(alpha_mark_machine_status): Remove.
(alpha_free_machine_status): Remove.
(alpha_return_addr): Use get_hard_reg_initial_val.
(alpha_gp_save_rtx): Likewise.
(alpha_ra_ever_killed): Use has_hard_reg_initial_val.

From-SVN: r43491
2001-06-21 16:34:39 -04:00
Aldy Hernandez
552ecbd900 handle interrupt_handler correctly
From-SVN: r43490
2001-06-21 19:37:35 +00:00
Phil Edwards
5005dee96e Fix massive typo/thinko in previous ChangeLog entry.
From-SVN: r43489
2001-06-21 19:32:19 +00:00
Phil Edwards
c51b1b1b77 install.texi: Add 'c' to list of --enable-languages choices.
2001-06-21  Phil Edwards  <pme@sources.redhat.com>

	* doc/install.texi:  Add 'c' to list of --enable-languages choices.


Index: doc/install.texi
===================================================================
RCS file: /cvs/gcc/gcc/gcc/doc/install.texi,v
retrieving revision 1.31
diff -u -3 -p -r1.31 install.texi
--- install.texi	2001/06/21 15:25:54	1.31
+++ install.texi	2001/06/21 18:59:08
@@ -546,7 +546,7 @@ their runtime libraries should be built.
 @var{langN} you can issue the following command in the
 @file{gcc} directory of your GCC source tree:@* @samp{grep language=
 */config-lang.in}@* Currently, you can use any of the following:
-@code{c++}, @code{f77}, @code{java} and @code{objc}.
+@code{c}, @code{c++}, @code{f77}, @code{java} and @code{objc}.
 @code{CHILL} is not currently maintained, and will almost
 certainly fail to compile.  Note that this switch does not work with
 EGCS 1.1.2 or older versions of egcs.  It is supported in GCC 2.95

From-SVN: r43488
2001-06-21 19:00:08 +00:00
DJ Delorie
024070cb34 * integrate.c (mark_hard_reg_initial_vals): Check for NULL.
From-SVN: r43487
2001-06-21 13:55:00 -04:00
DJ Delorie
c0e7830f8c integrate.c (ggc.h): Include.
* integrate.c (ggc.h): Include.
(initial_value_pair, initial_value_struct,
setup_initial_hard_reg_value_integration): Add prototypes.
(expand_inline_function): Call
setup_initial_hard_reg_value_integration.
(has_func_hard_reg_initial_val, get_func_hard_reg_initial_val,
get_hard_reg_initial_val, has_hard_reg_initial_val): New functions
to keep track of values present at the start of a function.
(mark_hard_reg_initial_vals): New, for gc.
(setup_initial_hard_reg_value_integration): New.  Sets up pseudo
mappings for initial values.
(emit_initial_value_sets): New.  Emits code to set initial value
pseudos.
* integrate.h: Add prototypes for new functions.
* function.h (struct function): Add hard_reg_initial_vals field.
* function.c (integrate.h): Include.
(mark_function_status): Call
mark_hard_reg_initial_vals.
* toplev.c (integrate.h): Include.
(rest_of_compilation): Call emit_initial_value_sets.

From-SVN: r43486
2001-06-21 12:50:56 -04:00
Stan Shebs
2147b1541c contrib.texi, [...]: Use the correct name "Objective-C" everywhere instead of "Objective C".
* doc/contrib.texi, doc/cpp.texi, doc/cppinternals.texi,
	doc/extend.texi, doc/gcc.texi, doc/install.texi, doc/invoke.texi,
	doc/objc.texi, doc/tm.texi: Use the correct name "Objective-C"
	everywhere instead of "Objective C".

From-SVN: r43485
2001-06-21 15:25:56 +00:00
Tom Tromey
470042c712 java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL.
* include/java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL.
	From Corey Minyard.

From-SVN: r43484
2001-06-21 15:17:21 +00:00
Gabriel Dos Reis
8164237cfc indirect_array.h (indirect_array<>::operator=): Make copy and assignment operator public.
* include/bits/indirect_array.h (indirect_array<>::operator=):
	Make copy and assignment operator public.  Implement.  Format.

	* include/bits/valarray_array.h (__valarray_copy): Add overloads
	for copy between index arrays.  Format.

From-SVN: r43483
2001-06-21 12:01:09 +00:00
GCC Administrator
c0eadc6bfe Daily bump.
From-SVN: r43482
2001-06-21 07:16:54 +00:00
Alexandre Petit-Bianco
8e41c4f38e class.c (java_hash_tree_node): Fixed indentation in leading comment.
2001-06-20  Alexandre Petit-Bianco  <apbianco@redhat.com>

	* class.c (java_hash_tree_node): Fixed indentation in leading comment.
	* parse.y (do_resolve_class): Moved comments out to leading comment
	section. Removed local `start', New local `_ht' and
	`circularity_hash.'  Record `enclosing' in hash table and search
	it to detect circularity.  Use `enclosing' as an argument to
	`lookup_cl.' Free the hash table when done.

(http://gcc.gnu.org/ml/gcc-patches/2001-06/msg01318.html )

From-SVN: r43480
2001-06-20 20:20:04 -07:00
Joseph Myers
6c0a4eab24 c-tree.texi, [...]: Consistently use "front end" and "back end" as nouns and "front-end" and...
* doc/c-tree.texi, doc/contrib.texi, doc/extend.texi,
	doc/gcc.texi, doc/install-old.texi, doc/install.texi,
	doc/invoke.texi, doc/rtl.texi: Consistently use "front end" and
	"back end" as nouns and "front-end" and "back-end" as adjectives.

From-SVN: r43479
2001-06-21 01:03:48 +01:00
Jan Hubicka
86e5b1b905 * predict.c (estimate_probability): Fix loop bounds.
From-SVN: r43478
2001-06-20 19:55:43 +00:00
Jan Hubicka
097c2d51de toplev.c (rest_of_compilation): Run mark_constant_function before profile-arcs.
* toplev.c (rest_of_compilation): Run mark_constant_function
	before profile-arcs.

From-SVN: r43477
2001-06-20 17:12:34 +00:00
Jan Hubicka
861f9cd090 predict.c (estimate_loops_at_level, [...]): New functions.
* predict.c (estimate_loops_at_level, propagate_freq
	estimate_bb_frequencies, count_to_freqs): New functions.
	(estimate_probability): Call estimate_bb_frequencies.
	* basic-block.h (basic_block_def): Add field "freq".
	(BB_FREQ_MAX): New constant.

From-SVN: r43476
2001-06-20 17:10:11 +00:00
Tom Tromey
c01b7cdf97 re PR java/2319 (invalid UTF-8 sequences should be rejected)
* lex.c (java_read_char): Disallow invalid and overlong
	sequences.  Fixes PR java/2319.

From-SVN: r43475
2001-06-20 16:21:24 +00:00
J"orn Rennecke
5d29121331 sh.c (barrier_align): Don't ask for alignment when seeing a branch-around-a-jump from...
* sh.c (barrier_align): Don't ask for alignment when seeing a
	branch-around-a-jump from machine_dependent_reorg.

From-SVN: r43474
2001-06-20 17:04:31 +01:00
Jeffrey A Law
5e93ca8698 ssa.c (rename_block): Update parameter to remove_phi_alternative
* ssa.c (rename_block): Update parameter to remove_phi_alternative
        (convert_from_ssa): Do create REG_DEAD and REG_UNUSED notes when
        re-running life analysis.

From-SVN: r43473
2001-06-20 08:44:04 -06:00
Stan Shebs
f5e6aae050 objc-act.c (hash_init): Assume xmalloc always succeeds, also use memset to clear the hash tables.
* objc/objc-act.c (hash_init): Assume xmalloc always succeeds,
	also use memset to clear the hash tables.
	(hash_enter): Assume xmalloc always succeeds.
	(hash_add_attr): Ditto.
	(continue_class): Ditto.

From-SVN: r43472
2001-06-20 13:51:19 +00:00
Michael Meissner
5f2d6cfa81 Fix __builtin_expect on PowerPCs
From-SVN: r43470
2001-06-20 07:18:18 +00:00
GCC Administrator
f34c9fd4a6 Daily bump.
From-SVN: r43468
2001-06-20 07:17:00 +00:00
Benjamin Kosnik
8c3b1101bf mknumeric_limits: Add static definitions, format.
2001-06-19  Benjamin Kosnik  <bkoz@redhat.com>

	* mknumeric_limits: Add static definitions, format.
	* testsuite/18_support/numeric_limits.cc (test02): Add test.

	* include/c_std/bits/std_cwchar.h: Include ctime.
	* testsuite/17_intro/header_cwchar.cc : Check.

	* include/c_std/bits/std_cwctype.h: Inject wctype.
	* testsuite/17_intro/header_cwctype.cc: Update.

From-SVN: r43467
2001-06-20 03:06:44 +00:00
Benjamin Kosnik
54da4898cc mknumeric_limits: Add static defintions, format.
2001-06-19  Benjamin Kosnik  <bkoz@redhat.com>

	* mknumeric_limits: Add static defintions, format.
	* testsuite/18_support/numeric_limits.cc (test02): Add test.

	* include/c_std/bits/std_cwchar.h: Include ctime.
	* testsuite/17_intro/header_cwchar.cc : Check.

	* include/c_std/bits/std_cwctype.h: Inject wctype.

From-SVN: r43466
2001-06-20 03:05:31 +00:00
Geoffrey Keating
78373aded0 rtl.texi (Machine Modes): Correct description of floating-point modes on machines with non-8-bit bytes.
* doc/rtl.texi (Machine Modes): Correct description of
	floating-point modes on machines with non-8-bit bytes.

From-SVN: r43465
2001-06-19 18:30:28 +00:00
Jeffrey A Law
fd9305ef93 ssa.c (remove_phi_alternative): Remove declaration.
* ssa.c (remove_phi_alternative): Remove declaration.  No longer
        static.  Second argument is a pointer to a basic block structure,
        not a basic block index.
        (convert_to_ssa): Do not remove dead code.
        (convert_from_ssa): Do not remove dead code to create death notes.
        * ssa.h (remove_phi_alternative): Declare.

From-SVN: r43464
2001-06-19 10:54:26 -06:00
Jeffrey A Law
164d59e04e flow.c (delete_unreachable_blocks): Fix patch error in previous change (call to find_unreachable_blocks was lost).
* flow.c (delete_unreachable_blocks): Fix patch error in
        previous change (call to find_unreachable_blocks was lost).

From-SVN: r43463
2001-06-19 09:03:01 -06:00
Bernd Schmidt
4fb3cbd7e5 Fix incorrect note handling.
From-SVN: r43462
2001-06-19 14:34:23 +00:00
Jeffrey A Law
10ab5c54a1 ssa.c (ssa_uses): Remove definition.
* ssa.c (ssa_uses): Remove definition.
        (apply_delayed_renames): Don't grow ssa_uses.
        (rename_block): Remove comment related to ssa_uses.
        (rename_registers): Do not initialize ssa_uses.
        (convert_from_ssa): Do not free ssa_uses.

From-SVN: r43460
2001-06-19 08:18:49 -06:00
Jeffrey A Law
57fae080ee Makefile.in (OBJS): Replace dce.o with ssa-dce.o
* Makefile.in (OBJS): Replace dce.o with ssa-dce.o
        (dependencies): Replace dce.c with ssa-dce.c and dce.o with
        ssa-dce.o.

From-SVN: r43459
2001-06-19 08:13:13 -06:00
Jeffrey A Law
30eadf3d09 * POTFILES.in: Replace dce.c with ssa-dce.c.
From-SVN: r43458
2001-06-19 08:04:13 -06:00
Jeffrey A Law
d11ace49cf * ssa-dce.c: Renamed from dce.c.
From-SVN: r43457
2001-06-19 07:53:25 -06:00
Richard Sandiford
c93586fa83 except.c (initialize_handler_parm): Expect __cxa_begin_catch to return pointers to data members by reference rather...
* except.c (initialize_handler_parm): Expect __cxa_begin_catch to
        return pointers to data members by reference rather than by value.

From-SVN: r43456
2001-06-19 09:32:57 -04:00
Mark J. Roberts
a0d4ddde2c BigInteger.java (byteArrayToIntArray): Don't include extraneous/malformed sign word.
2001-06-19  Mark J. Roberts  <mjr@statesmean.com>

	* java/math/BigInteger.java (byteArrayToIntArray): Don't include
	extraneous/malformed sign word.

From-SVN: r43455
2001-06-19 11:42:03 +00:00
Eric Christopher
57dadce202 emit-rtl.c (gen_lowpart_common): Do not assume that SFmode and DFmode are UNITS_PER_WORD and 2*UNITS_PER_WORD.
2001-06-19  Eric Christopher <echristo@redhat.com>

	* emit-rtl.c (gen_lowpart_common): Do not assume that SFmode
	and DFmode are UNITS_PER_WORD and 2*UNITS_PER_WORD.  Use
	GET_MODE_BITSIZE instead of GET_MODE_SIZE/UNITS_PER_WORD.

From-SVN: r43454
2001-06-19 08:34:34 +00:00
GCC Administrator
beec1ac56e Daily bump.
From-SVN: r43453
2001-06-19 07:16:51 +00:00
Benjamin Kosnik
3768cee7ca stl_raw_storage_iter.h: Format.
2001-06-18  Benjamin Kosnik  <bkoz@redhat.com>

	* include/bits/stl_raw_storage_iter.h: Format. Correct derivation.
	* testsuite/20_util/raw_storage_iterator.cc: Same.

        * include/bits/stl_alloc.h (_S_chunk_alloc): Change malloc to
        operator new.
        (__mem_interface): New typedef for switching between malloc and new.
	* testsuite/20_util/allocator_members.cc: New file.

	* testsuite/20_util/comparisons.cc: New file.
	* testsuite/20_util/pairs.cc: New file.

From-SVN: r43451
2001-06-19 01:51:33 +00:00
J"orn Rennecke
afbc5d8693 sh.c (output_branch): Delete bogus code.
* sh.c (output_branch): Delete bogus code.

	* sh.c (initial_elimination_offset):
	Fix FROM == RETURN_ADDRESS_POINTER_REGNUM case.

From-SVN: r43450
2001-06-19 01:58:29 +01:00
Richard Henderson
c8b2822138 * concat.c: Include <sys/types.h>.
From-SVN: r43449
2001-06-18 13:46:48 -07:00
Jeffrey A Law
1e29ee12f0 flow.c (find_unreachable_blocks): New function.
* flow.c (find_unreachable_blocks): New function.
	(delete_unreachable_blocks): Use find_unreachable_blocks.
	* basic-block.h (find_unreachable_blocks): Declare.

From-SVN: r43448
2001-06-18 13:46:37 -06:00
Jeffrey A Law
fbf8334971 * dce.c (eliminate_dead_code): Fix formatting glitch.
From-SVN: r43447
2001-06-18 12:57:41 -06:00
Stan Shebs
b2af8e32ec objc.dg: New directory.
* objc.dg: New directory.
	* objc.dg/dg.exp: New file.
	* objc.dg/alias.m: New.
	* objc.dg/class-1.m: New.
	* objc.dg/class-2.m: New.
	* objc.dg/const-str-1.m: New.
	* objc.dg/const-str-2.m: New.
	* objc.dg/id-1.m: New.
	* objc.dg/method-1.m: New.
	* objc.dg/super-class-1.m: New.
	* lib/objc-dg.exp: New file.

From-SVN: r43446
2001-06-18 16:48:37 +00:00