Commit Graph

24863 Commits

Author SHA1 Message Date
Martin v. Löwis
c683f030df bitset: Include limits.h.
* bitset: Include limits.h.
	* bitset (class bitset): Declare reference as our friend.

From-SVN: r30430
1999-11-06 16:20:39 +00:00
Catherine Moore
6518355866 svr4.h (ASM_DECLARE_FUNCTION): Check if already defined.
* config/svr4.h (ASM_DECLARE_FUNCTION): Check if already
        defined.
        (ASM_DECLARE_FUNCTION_SIZE): Likewise.

From-SVN: r30429
1999-11-06 08:55:07 -05:00
Jeff Law
cd55cf682e Daily bump.
From-SVN: r30428
1999-11-06 01:45:07 -07:00
Jeff Law
6185845d48 Fix typo in last change
From-SVN: r30427
1999-11-05 16:35:47 -07:00
Martin v. Löwis
7c355bca10 cp-tree.h (VAR_TEMPL_TYPE_OR_FUNCTION_DECL_CHECK): New macro.
* cp-tree.h (VAR_TEMPL_TYPE_OR_FUNCTION_DECL_CHECK): New macro.
	(DECL_TEMPLATE_INFO): Use it.
	* decl.c (warn_extern_redeclared_static): Do nothing for
	TEMPLATE_DECLs.
	* decl2.c (mark_used): Explicitly check for function or variable.
	* semantics.c (finish_unary_op_expr): Check whether result is also
	an INTEGER_CST.

From-SVN: r30426
1999-11-05 23:11:58 +00:00
J"orn Rennecke
32c8d1bc1f global.c (EXECUTE_IF_SET_IN_ALLOCNO_SET): New macro.
* global.c (EXECUTE_IF_SET_IN_ALLOCNO_SET): New macro.
	(EXECUTE_IF_CONFLICT): Likewise.
	(ALLOCNO_LIVE_P): Avoid signed division.
	(SET_ALLOCNO_LIVE, CLEAR_ALLOCNO_LIVE): Likewise.
	(prune_preferences, find_reg): Use EXECUTE_IF_CONFLICT.
	(record_one_conflict): Use EXECUTE_IF_SET_IN_ALLOCNO_SET.

From-SVN: r30425
1999-11-05 23:07:21 +00:00
Gabriel Dos Reis
36a6e29fbb valarray_meta.h (_DEFINE_EXPR_UNARY_FUNCTION): When building meta-expressions don't forget to take the contained closures.
1999-11-05  Gabriel Dos Reis  <dosreis@cmla.ens-cachan.fr>

        * std/valarray_meta.h (_DEFINE_EXPR_UNARY_FUNCTION):  When
        building meta-expressions don't forget to take the contained
        closures.

From-SVN: r30424
1999-11-05 22:26:12 +00:00
Tom Tromey
e4c4f09a1e * java/lang/natThread.cc (destroy): Removed incorrect comment.
From-SVN: r30423
1999-11-05 20:59:40 +00:00
Richard Henderson
b182031edf haifa-sched.c (schedule_block): Don't crash if there's no next insn for an interblock movement.
* haifa-sched.c (schedule_block): Don't crash if there's no
        next insn for an interblock movement.
        (add_branch_dependences): Don't allow clobber insns to move either.

From-SVN: r30422
1999-11-05 12:04:27 -08:00
Jeff Law
3496699a4c Remove accidental addition of CLEAR_CONFLICT.
From-SVN: r30421
1999-11-05 11:40:34 -07:00
Tom Tromey
09e7d04a1b re GNATS gcj/85 (Compiler optimizes away private methods when native methods might access them)
* class.c (finish_class): Emit inlined methods if any native
	methods exist in the class.  Fixes PR gcj/85.

From-SVN: r30420
1999-11-05 18:27:28 +00:00
Richard Henderson
467403ca55 i386.c (split_xf): New.
* i386.c (split_xf): New.
        * i386-protos.h: Declare it.
        * i386.md (movxf_1): Add general regs alternatives.
        (movxf_1+1): New splitter for same.

From-SVN: r30419
1999-11-05 10:19:55 -08:00
Jeff Sturm
3948f9d08f boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current.
1999-11-05  Jeff Sturm  <jsturm@sigma6.com>

	* boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current.
	* prims.cc (parse_heap_size): Use end, not spec.  Use 1024
	multipler for `k'.

From-SVN: r30418
1999-11-05 17:34:32 +00:00
Tom Tromey
ea638d6c94 natThread.cc (stop): Removed argument name.
* java/lang/natThread.cc (stop): Removed argument name.

	* java/lang/ThreadGroup.java (ThreadGroup(int)): No longer
	`private'; now has default access.
	* Makefile.in: Rebuilt.
	* Makefile.am (java/lang/ThreadGroup.h): Removed.

From-SVN: r30417
1999-11-05 17:10:17 +00:00
Nick Clifton
aa608fe69c oops - add missing return values
From-SVN: r30416
1999-11-05 12:08:09 +00:00
Nick Clifton
71152e6da2 Create proc to test for alias attribute support from targets.
Use this test to disable ecos tests for alias support if the target does not
support them.

From-SVN: r30415
1999-11-05 10:38:01 +00:00
Nick Clifton
8c36698e52 If purge_addressof_1 fails to remove addressofs in notes, remove the notes
instead.

From-SVN: r30414
1999-11-05 10:11:40 +00:00
Nick Clifton
ce82ff5c17 Expect error messages from cross targets as well as native targets.
From-SVN: r30413
1999-11-05 09:58:18 +00:00
Mark Mitchell
8dfaeb6384 Makefile.in (typeck2.o): Depend on output.h.
* Makefile.in (typeck2.o): Depend on output.h.
	* typeck2.c: Include output.h.

	* decl.c (flag_ansi): Remove declaration.

	* pt.c (tinst_level_tick): Make it static.
	(last_template_error_tick): Likewise.

	* cp-tree.h (mapcar): Remove declaration.
	(search_tree): Likewise.
	(walk_tree_fn): New typedef.
	(walk_tree): New function.
	* tree.c (bot_manip): Change prototype.  Adjust to be called via
	walk_tree.
	(bot_replace): Likewise.
	(no_linkage_helper): Likewise.
	(copy_tree_r): New function.
	(search_tree): Rename, and adjust, to become ...
	(walk_tree): New function.
	(mapcar): Remove.
	(target_remap): Remove.
	(target_remap_count): Likewise.
	(break_out_target_exprs): Use walk_tree.
	* decl.c (local_variable_p): Change prototype.
	(check_default_argument): Use walk_tree.
	* pt.c (for_each_template_parm_r): New function, split out from ...
	(for_each_template_parm): Here.  Use it, via walk_tree.

From-SVN: r30412
1999-11-05 09:26:11 +00:00
Mark Mitchell
71144a650c Makefile.in (typeck2.o): Depend on output.h.
* Makefile.in (typeck2.o): Depend on output.h.
	* typeck2.c: Include output.h.

From-SVN: r30411
1999-11-05 09:21:53 +00:00
Andreas Jaeger
f4e2ed09c9 genoutput.c (null_operand =): Initialize all fields.
* genoutput.c (null_operand =): Initialize all fields.

        * errors.h: Add extern to prototypes.

From-SVN: r30410
1999-11-05 02:12:56 -07:00
Jeffrey A Law
016cebc3e8 configure.in (m68k-next-nextstep4): Handle Openstep 4.2.
* configure.in (m68k-next-nextstep4): Handle Openstep 4.2.
        * configure: Rebuilt.

From-SVN: r30409
1999-11-05 01:50:01 -07:00
Jeff Law
0b6533c5d8 Daily bump.
From-SVN: r30408
1999-11-05 01:45:06 -07:00
Jeff Law
267cf8089a [multiple changes]
Fri Nov  5 01:24:37 1999  J"orn Rennecke <amylaar@cygnus.co.uk>

        * global.c (CONFLICTP, SET_CONFLICT): Avoid signed division.
        (mirror_conflicts): New function.
        (global_alloc): Call it.
        (expand_preferences): Remove redundant CONFLICTP test.
        (find_reg, dump_conflicts): Likewise.
        (prune_preferences): Process conflicts one word at a time.

Fri Nov  5 01:05:21 1999  Richard Henderson <rth@cygnus.com>

        * global.c (build_insn_chain): Use EXECUTE_IF_SET_IN_BITMAP
        instead of an explicit loop.

From-SVN: r30407
1999-11-05 01:31:48 -07:00
Jim Wilson
26132f7136 Fix cse bug that broke the ia64 port.
* cse.c (cse_insn): Revert Oct 31 change.  When computing src_elt,
	if REG_RETVAL check succeeds, then put classp in src_elt.

From-SVN: r30406
1999-11-04 23:08:13 -08:00
Jeffrey A Law
9399d5c63f function.c (pad_to_arg_alignment): Only update argument_pad if the argument's alignment is greater than STACK_BOUNDARY.
* function.c (pad_to_arg_alignment): Only update argument_pad
        if the argument's alignment is greater than STACK_BOUNDARY.

From-SVN: r30405
1999-11-04 23:49:38 -07:00
Richard Henderson
e7749837ca bitmap.h (BITMAP_XFREE): New.
* bitmap.h (BITMAP_XFREE): New.
        * flow.c (life_analysis): Use it.
        (life_analysis_1): Free blocks.

        * combine.c (undo_commit): New.
        (try_combine): Use it.  Don't zap undobuf.undos.
        (combine_instructions): Don't zap undobuf.undos; free the
        undobuf.frees list.

        * local-alloc.c (local_alloc): Free qty_phys_num_sugg.

        * stmt.c (cost_table_): New.
        (estimate_case_costs): Use it instead of xmalloc.

        * toplev.c (compile_file): Reuse dumpname memory instead
        of strdup'ing it.

From-SVN: r30404
1999-11-04 16:49:03 -08:00
Richard Henderson
920a303df9 haifa-sched.c (init_rgn_data_dependences): Correctly size bb_pending_lists_length when zeroing.
* haifa-sched.c (init_rgn_data_dependences): Correctly
        size bb_pending_lists_length when zeroing.

From-SVN: r30403
1999-11-04 16:41:11 -08:00
Richard Henderson
a6028d444a reg-stack.c (convert_regs_1): Initialize target_stack->top after verifying an EH edge.
* reg-stack.c (convert_regs_1): Initialize target_stack->top
        after verifying an EH edge.

From-SVN: r30402
1999-11-04 16:37:48 -08:00
Richard Henderson
bd695e1e9d function.c (diddle_return_value): New.
* function.c (diddle_return_value): New.
        (expand_function_end): Use it.
        * stmt.c (expand_null_return): Likewise.
        (expand_value_return): Likewise.

        * reg-stack.c (subst_stack_regs_pat): Handle clobbers at top-level.

        * reload1.c (reload): Don't remove return value clobbers.

From-SVN: r30401
1999-11-04 16:35:10 -08:00
Richard Henderson
49886fe1ce * rtl.c (read_rtx): Use fatal_with_file_and_line not fatal.
From-SVN: r30400
1999-11-04 13:35:22 -08:00
Richard Henderson
75c6bd46fe cse.c (cse_main): Use xmalloc, not alloca.
* cse.c (cse_main): Use xmalloc, not alloca.
        (cse_basic_block): Likewise.
        * local-alloc.c (local_alloc): Likewise.

From-SVN: r30399
1999-11-04 12:51:04 -08:00
David Billinghurst
17074a35df rtl.c: Include toplev.h.
* rtl.c: Include toplev.h.
(fatal): Remove declaration.

From-SVN: r30398
1999-11-04 19:51:48 +00:00
Tom Tromey
397f674e7f natClass.cc (method_cache_count): Removed.
* java/lang/natClass.cc (method_cache_count): Removed.
	(_Jv_FindMethodInCache): Don't loop looking for the hash entry.
	(_Jv_AddMethodToCache): Don't loop.

From-SVN: r30397
1999-11-04 19:47:01 +00:00
Tom Tromey
3442c71cfc Makefile.in: Rebuilt.
* Makefile.in: Rebuilt.
	* Makefile.am (libgcjgc_la_SOURCES): Removed quick_threads.c.

From-SVN: r30396
1999-11-04 19:39:50 +00:00
Tom Tromey
a57e0ef582 misc.c (GC_init_inner): Don't call GC_init_linuxppc().
* misc.c (GC_init_inner): Don't call GC_init_linuxppc().
	(GC_thr_init): Don't declare.

From-SVN: r30395
1999-11-04 18:53:24 +00:00
Tom Tromey
81976f93fe configure: Rebuilt.
* configure: Rebuilt.
	* configure.in: Removed qt threads case.
	* dyn_load.c: Don't mention QUICK_THREADS.
	* os_dep.c: Don't mention QUICK_THREADS.
	* misc.c: Don't mention QUICK_THREADS.
	* gcconfig.h: Don't mention QUICK_THREADS.
	* gc_priv.h: Removed QUICK_THREADS code.
	* quick_threads.c: Removed.

From-SVN: r30394
1999-11-04 17:25:07 +00:00
Tom Tromey
7f80fbe501 configure.in: Removed `qt' threads case.
* configure.in: Removed `qt' threads case.
	* include/quick-threads.h: Removed.
	* quick-threads.cc: Removed.

From-SVN: r30393
1999-11-04 17:12:25 +00:00
Tom Tromey
16f39e241a quick-threads.h (_Jv_ThreadCancel): Removed.
* include/quick-threads.h (_Jv_ThreadCancel): Removed.
	(_Jv_ThreadDestroy): Likewise.
	* include/no-threads.h (_Jv_ThreadCancel): Removed.
	(_Jv_ThreadDestroy): Likewise.
	* include/posix-threads.h (struct _Jv_Thread_t): Removed
	`exception' field.
	(_Jv_ThreadCancel): Removed decl.
	(_Jv_ThreadDestroy): Removed.
	* posix-threads.cc (_Jv_ThreadCancel): Removed.
	(throw_cleanup): Removed.
	(really_start): Don't push or pop cleanup.
	(_Jv_ThreadInitData): Don't initialize `exception' field.
	* java/lang/Thread.java (stop): Officially unimplemented.
	* java/lang/natThread.cc (stop): Officially unimplemented.

From-SVN: r30392
1999-11-04 16:45:11 +00:00
Bruce Korb
063174eeda Allow for systems that do not have S_IR* defined values
Do not call realloc with a NULL pointer

From-SVN: r30391
1999-11-04 14:50:44 +00:00
Jeffrey A Law
eae48b73bd * haifa-sched.c (schedule_block): Fix thinko.
From-SVN: r30390
1999-11-04 06:39:28 -07:00
Jeff Law
725474abee Daily bump.
From-SVN: r30389
1999-11-04 01:45:07 -07:00
Mark Mitchell
673b5311a9 flags.h (flag_renumber_insns): Declare.
* flags.h (flag_renumber_insns): Declare.
	* emit-rtl.c (renumber_insns): Check flag_renumber_insns.  Print
	renumbering table.
	* rtl.h (renumber_insns): Change prototype.
	* toplev.c (flag_renumber_insns): Define.
	(rest_of_compilation): Pass rtl_dump_file to flag_renumber_insns.

From-SVN: r30388
1999-11-04 07:23:58 +00:00
Mark Mitchell
d211953910 rtl.h (renumber_insns): New function.
* rtl.h (renumber_insns): New function.
	(remove_unnecessary_notes): Likewise.
	* emit-rtl.c (renumber_insns): Define.
	(remove_unncessary_notes): Likewise.
	* toplev.c (rest_of_compilation): Remove dead code.
	Use renumber_insns and remove_unncessary_notes.

From-SVN: r30387
1999-11-04 06:44:29 +00:00
David S. Miller
c0ec7a7575 [multiple changes]
Wed Nov  3 15:11:27 1999  David S. Miller  <davem@redhat.com>

	* config/sparc/sparc.md: Remove insn type fpsqrt, add fpsqrts
	and fpsqrtd.  Use them and create fdiv function unit to more
	accurately represent fpu sqrt pipeline semantics on UltraSparc.
	* config/sparc/sparc.c: Account for fpsqrt{s,d} changes.

Wed Nov  3 15:11:27 1999  Matteo Frigo <athena@fftw.org>

	* config/sparc/sparc.md: Adjust FADD/FMUL result latencies to
	3 on UltraSparc.
	* config/sparc/sparc.c (ultra_schedule_insn): Insert launched
	insn into ready list, do not use just a raw swap.

From-SVN: r30386
1999-11-03 15:25:02 -08:00
Mark Mitchell
aeeeda0391 rtl.h (renumber_insns): New function.
* rtl.h (renumber_insns): New function.
	(remove_unnecessary_notes): Likewise.
	* emit-rtl.c (renumber_insns): Define.
	(remove_unncessary_notes): Likewise.
	* toplev.c (rest_of_compilation): Remove dead code.
	Use renumber_insns and remove_unncessary_notes.

From-SVN: r30385
1999-11-03 23:18:57 +00:00
Mark Mitchell
0511851c7b gcse.c (struct null_pointer_info): New type.
* gcse.c (struct null_pointer_info): New type.
	(get_bitmap_width): New function.
	(current_block): Remove.
	(nonnull_local): Likewise.
	(nonnull_killed): Likewise.
	(invalidate_nonnull_info): Take a null_pointer_info as input.
	(delete_null_pointer_checks_1): New function.
	(delete_null_pointer_checks): Use it.

From-SVN: r30384
1999-11-03 22:45:45 +00:00
Mark Mitchell
989037420d haifa-sched.c (find_rgns): Replace uses of alloca with xmalloc.
* haifa-sched.c (find_rgns): Replace uses of alloca with xmalloc.
	(split_edges): Likewise.
	(schedule_block): Likewise.
	(compute_block_backward_dependencies): Likewise.
	(schedule_region): Likewise.
	(schedule_insns): Likewise.

From-SVN: r30383
1999-11-03 22:44:10 +00:00
Catherine Moore
8cd0faaf32 defaults.h (ASM_OUTPUT_ALTERNATE_LABEL_NAME): Provide default.
* defaults.h (ASM_OUTPUT_ALTERNATE_LABEL_NAME): Provide default.
        * emit-rtl.c (gen_label_rtx): Support LABEL_ALTERNATE_NAME.
        * final.c (final_scan_insn): Emit LABEL_ALTERNATE_NAME.
        * ggc-common.c (ggc_mark_rtx_children): Mark LABEL_ALTERNATE_NAME.
        * jump.c (delete_unreferenced_labels): Don't delete if
        LABEL_ALTERNATE_NAME is set.
        * print-rtl.c (print_rtx): Dump alternate name.
        * rtl.def (CODE_LABEL): Change format to "iuuis00s".
        * rtl.h (LABEL_ALTERNATE_NAME): Define.
        * rtl.texi (LABEL_ALTERNATE_NAME): Document.
        * tm.texi (ASM_OUTPUT_ALTERNATE_LABEL_NAME): Document.

From-SVN: r30382
1999-11-03 16:55:51 -05:00
Mark Mitchell
1e30f9b4da class.c (check_bitfield_decl): New function, split out from finish_stuct_1.
* class.c (check_bitfield_decl): New function, split out from
	finish_stuct_1.
	(check_field_decl): Likewise.  Recursively examine members of
	anonymous structs.
	(finish_struct_1): Use them.
	* cp-tree.h (ANON_UNION_TYPE_P): New macro.

From-SVN: r30381
1999-11-03 21:34:04 +00:00