Commit Graph

27031 Commits

Author SHA1 Message Date
Mark Mitchell
dc397323c6 tree.c (size_in_bytes): Return size_zero_node, not integer_zero_node.
* tree.c (size_in_bytes): Return size_zero_node, not
	integer_zero_node.

From-SVN: r32694
2000-03-22 23:55:31 +00:00
Geoff Keating
fae8209ac4 fp-bit.c (pack_d): Correct the case when a denormal is rounded up and stops being denormal.
* config/fp-bit.c (pack_d): Correct the case when a denormal
is rounded up and stops being denormal.

From-SVN: r32693
2000-03-22 23:16:21 +00:00
Richard Henderson
ea2e5dbeca alpha.c (function_arg): Check for void_type_node before using MUST_PASS_IN_STACK.
* config/alpha/alpha.c (function_arg): Check for void_type_node
        before using MUST_PASS_IN_STACK.

From-SVN: r32692
2000-03-22 15:09:29 -08:00
Stephane Carrez
5d64361bdc regmove.c (combine_stack_adjustments_for_block): Check that the stack pointer is a valid memory address.
* regmove.c (combine_stack_adjustments_for_block): Check that
        the stack pointer is a valid memory address.

From-SVN: r32691
2000-03-22 15:05:12 -08:00
Alexandre Petit-Bianco
124906f908 jcf-write.c (generate_bytecode_insns): TRY_FINALLY_EXPR...
Mon Mar 20 08:58:51 2000  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* jcf-write.c (generate_bytecode_insns): TRY_FINALLY_EXPR:
	properly initialize `finished_label.' Don't emit gotos for empty
	try statements.

(Minor fix: http://gcc.gnu.org/ml/gcc-patches/2000-03/msg00762.html)

From-SVN: r32690
2000-03-22 14:48:04 -08:00
Mark Mitchell
3c9d63596f cp-tree.h (BINFO_FOR_VBASE): Adjust documentation.
* cp-tree.h (BINFO_FOR_VBASE): Adjust documentation.
	(CANONICAL_BINFO): New macro.
	(BINFO_NEW_VTABLE_MARKED): Use it.
	(SET_BINFO_NEW_VTABLE_MARKED): Likewise.
	(CLEAR_BINFO_NEW_VTABLE_MARKED): Likewise.
	* class.c (dfs_build_vbase_offset_vtbl_entries): Use BINFO_TYPE,
	not TREE_TYPE.
	(build_primary_vtable): Adjust usage of BINFO_NEW_VTABLE_MARKED.
	(build_secondary_vtable): Likewise.
	(dfs_finish_vtbls): Likewise.
	(dfs_accumulate_vtbl_inits): Likewise.
	(accumulate_vtbl_inits): New function.
	(finish_vtbls): Make sure that virtual bases come after
	non-virtual bases in the vtable group.
	(record_base_offsets): Don't save and restore TREE_VIA_VIRTUAL.
	(finish_struct_1): Adjust usage of BINFO_NEW_VTABLE_MARKED.
	* search.c (struct vbase_info): Move definition.
	(marked_new_vtable_p): Adjust usage of BINFO_NEW_VTABLE_MARKED.
	(unmarked_new_vtable_p): Likewise.
	(dfs_mark_vtable_path): Remove.
	(dfs_mark_new_vtable): Remove.
	(dfs_unmark_new_vtable): Likewise.
	(dfs_clear_search_slot): Likewise.
	(dfs_find_vbases):  Adjust usage of BINFO_NEW_VTABLE_MARKED.
	(dfs_clear_vbase_slots): Likewise.
	(init_vbase_pointers): LIkewise.

From-SVN: r32689
2000-03-22 21:43:45 +00:00
Tom Tromey
26356fee5b iface.java: New file.
* libjava.compile/iface.java: New file.
	* libjava.compile/static_3.java: New file.
	* libjava.compile/static_2.java: New file.
	* libjava.compile/static_1.xfail: New file.
	* libjava.compile/static_1.java: New file.
	* libjava.compile/redef6.xfail: New file.
	* libjava.compile/redef6.java: New file.
	* libjava.compile/redef5.xfail: New file.
	* libjava.compile/redef5.java: New file.
	* libjava.compile/redef4.xfail: New file.
	* libjava.compile/redef4.java: New file.
	* libjava.compile/redef3.xfail: New file.
	* libjava.compile/redef3.java: New file.
	* libjava.compile/redef2.xfail: New file.
	* libjava.compile/redef2.java: New file.
	* libjava.compile/redef1.xfail: New file.
	* libjava.compile/redef1.java: New file.
	* libjava.compile/not_a_redef.java: New file.
	* libjava.compile/inner_1.java: New file.
	* libjava.compile/static_init.xfail: New file.
	* libjava.compile/static_init.java: New file.

From-SVN: r32688
2000-03-22 21:25:21 +00:00
Mark Mitchell
9ffccc97f5 New test case.
From-SVN: r32686
2000-03-22 17:25:56 +00:00
Jan Hubicka
de76b46753 * calls.c: re-install Mar 16 emit_library_call merge.
From-SVN: r32685
2000-03-22 10:51:10 +00:00
Jason Merrill
7e9d4b22c9 typeck.c (type_after_usual_arithmetic_conversions): Prefer a SIZETYPE to a non-SIZETYPE.
* typeck.c (type_after_usual_arithmetic_conversions): Prefer a
        SIZETYPE to a non-SIZETYPE.

From-SVN: r32684
2000-03-22 05:12:50 -05:00
Jeff Law
89fedfc71f Daily bump.
From-SVN: r32683
2000-03-22 01:45:07 -07:00
Jakub Jelinek
021e2ecc82 sparc.c (mem_min_alignment): If not optimizing...
* config/sparc/sparc.c (mem_min_alignment): If not optimizing,
	we cannot be sure that if reload_completed base register will
	be properly aligned.

From-SVN: r32682
2000-03-22 08:58:53 +01:00
Richard Henderson
1fa4609a03 * flow.c (delete_block): Fix typo last change.
From-SVN: r32681
2000-03-21 23:14:41 -08:00
Mark Mitchell
736fb49718 class.c (layout_virtual_bases): Adjust names in conditionally compiled code.
* class.c (layout_virtual_bases): Adjust names in conditionally
	compiled code.

From-SVN: r32680
2000-03-22 05:39:35 +00:00
Mark Mitchell
9785e4b1f3 class.c (record_base_offsets): New function.
* class.c (record_base_offsets): New function.
	(layout_conflict_p): Likewise.
	(layout_nonempty_base_or_field): Use it.
	(layout_empty_base): New function.
	(build_base_field): Use it.
	(build_base_fields): Update comment.
	(layout_virtual_bases): Fold in a little code form
	layout_basetypes.  Use layout_empty_base.
	(layout_basetypes): Remove.
	(end_of_class): New function.
	(layout_class_type): Use it.  Adjust.

	* cp-tree.h (CLASSTYPE_VBASECLASSES): Fix typo in comment.
	(fntype_p): Remove.
	* search.c (dfs_skip_nonprimary_vbases_unmarkedp): Fix typo in
	comment.
	(dfs_skip_nonprimary_vbases_markedp): Likewise.
	* typeck.c (fntype_p): Remove.

From-SVN: r32679
2000-03-22 01:32:09 +00:00
Mark Mitchell
d8b64f80a0 cp-tree.h (TI_SPEC_INFO): Remove.
* cp-tree.h (TI_SPEC_INFO): Remove.
	(CLASSTYPE_TI_SPEC_INFO): Likewise.
	* pt.c (process_partial_specialization): Likewise.

From-SVN: r32678
2000-03-22 00:50:51 +00:00
Mark Mitchell
217f4eb904 class.c (build_base_field): Fix thinko in computation of binfo offsets.
* class.c (build_base_field): Fix thinko in computation of binfo
	offsets.

From-SVN: r32677
2000-03-21 22:28:33 +00:00
Bryce McKinlay
604de2bddf Event.java: Add all the event type constants.
2000-03-21  Bryce McKinlay  <bryce@albatross.co.nz>

        * java/awt/Event.java: Add all the event type constants.
        (Event): Implemented constructors.
        (controlDown): Implemented.
        (metaDown): Implemented.
        (paramString): Stubbed.
        (shiftDown): Implemented.
        (toString): Implemented.
        (translate): Implemented.

From-SVN: r32676
2000-03-21 21:33:53 +00:00
Mark Mitchell
ec47ccca04 tree.c (mark_local_for_remap_p): Mark variables declared in TARGET_EXPRs as well.
* tree.c (mark_local_for_remap_p): Mark variables declared in
	TARGET_EXPRs as well.

From-SVN: r32675
2000-03-21 20:13:06 +00:00
Mark Mitchell
b8de2d021a c-common.c (c_expand_expr_stmt): Use COMPLETE_TYPE_OR_VOID_P...
* c-common.c (c_expand_expr_stmt): Use COMPLETE_TYPE_OR_VOID_P,
	not COMPLETE_TYPE_P, to check the type of the expression.

From-SVN: r32674
2000-03-21 19:33:42 +00:00
Kaveh Ghazi
485976a9f5 Another bogus case added
From-SVN: r32673
2000-03-21 19:08:19 +00:00
Michael Meissner
4287843d62 Fix problems with -mno-fp-regs
From-SVN: r32672
2000-03-21 18:54:16 +00:00
Nathan Sidwell
d0f062fbb3 tree.h (COMPLETE_TYPE_P): New macro.
gcc
	* tree.h (COMPLETE_TYPE_P): New macro.
	(COMPLETE_OR_VOID_TYPE_P): New macro.
	(COMPLETE_OR_UNBOUND_ARRAY_TYPE_P): New macro.
	* stor-layout.c (layout_type, case VOID_TYPE): Don't set TYPE_SIZE.
	* c-aux-info.c (gen_type): Use them.
	* c-common.c (c_expand_expr_stmt): Likewise.
	* c-decl.c (poplevel, pushdecl, start_decl, finish_decl,
	grokdeclarator, grokparms, finish_struct, start_function,
	store_parm_decls, combine_parm_decls): Likewise.
	* c-parse.y (cast_expr): Likewise.
	* c-typeck.c (require_complete_type, c_sizeof, c_sizeof_nowarn,
	c_size_in_bytes, c_alignof, build_component_ref,
	build_indirect_ref, build_array_ref, convert_arguments,
	build_binary_op, pointer_diff, build_unary_op, digest_init: Likewise.
	* calls.c (initialize_argument_information): Likewise.
	* convert.c (convert_to_integer): Likewise.
	* dbxout.c (dbxout_typedefs, dbxout_type, dbxout_symbol): Likewise.
	* dwarfout.c (location_or_const_value_attribute,
	output_enumeration_type_die, output_structure_type_die,
	output_union_type_die, output_type): Likewise.
	* expr.c (safe_from_p, expand_expr): Likewise.
	* function.c (assign_parms): Likewise.
	* sdbout.c (sdbout_symbol, sdbout_one_type): Likewise.
	* tree.c (build_array_type, build_function_type,
	build_method_type, build_offset_type, build_complex_type): Likewise.
	* c-parse.c, c-parse.h: Regenerated.
gcc/cp
	* typeck.c (require_complete_type, complete_type,
	complete_type_or_else, c_sizeof, c_sizeof_nowarn,
	build_array_ref, convert_arguments, pointer_diff,
	build_x_unary_op, build_unary_op, build_c_cast,
	build_modify_expr): Use COMPLETE_TYPE_P etc.
	* call.c (is_complete, convert_like_real,
	build_new_method_call): Likewise.
	* class.c (build_vbase_pointer_fields, check_bases,
	build_base_field, finish_struct_1, pushclass): Likewise.
	* cvt.c (cp_convert_to_pointer, convert_to_void): Likewise.
	* decl.c (maybe_process_template_type_declaration, pushtag,
	pushdecl, redeclaration_error_message, start_decl, start_decl_1,
	layout_var_decl, check_initializer, cp_finish_decl,
	grokdeclarator, require_complete_types_for_parms,
	grok_op_properties, xref_tag, xref_basetypes,
	check_function_type): Likewise.
	* decl2.c (check_classfn, reparse_absdcl_as_casts): Likewise.
	* friend.c (do_friend): Likewise.
	* init.c (build_offset_ref): Likewise.
	* parse.y (structsp): Likewise.
	* pt.c (maybe_process_partial_specialization,
	tsubst_friend_function, instantiate_class_template, tsubst,
	do_type_instantiation, instantiate_pending_templates): Likewise.
	* repo.c (repo_get_id): Likewise.
	* rtti.c (build_typeid, get_typeid, build_dynamic_cast_1,
	synthesize_tinfo_var, emit_support_tinfos): Likewise.
	* search.c (lookup_fnfields_1, lookup_conversions): Likewise.
	* semantics.c (begin_class_definition): Likewise.
	* tree.c (build_cplus_method_type): Likewise.
	* typeck2.c (digest_init, build_functional_cast,
	add_exception_specifier): Likewise.
	* parse.h, parse.c: Regenerated.

From-SVN: r32671
2000-03-21 18:10:48 +00:00
Kaveh R. Ghazi
b9712646fb * gcc.dg/noreturn-1.c: Check for another bogus noreturn case.
From-SVN: r32670
2000-03-21 17:02:57 +00:00
Nathan Sidwell
2854d3c65e cxxabi.h: New header file.
* inc/cxxabi.h: New header file. Define new-abi entry points.
	(__pointer_type_info::target): Rename member to ...
	(__pointer_type_info::type): ... here.
	(__base_class_info::type): Rename member to ...
	(__base_class_info::base): ... here.
	* Make-lang.in (CXX_EXTRA_HEADERS): Add cxxabi.h
	* cp-tree.h (CPTI_ABI): New global tree enumeration.
	(abi_node): New global tree node.
	* decl.c (abi_node): Document.
	(init_decl_processing): Initialize abi_node.
	* rtti.c (build_dynamic_cast_1): Use abi_node for new-abi.
	(get_vmi_pseudo_type_info): Likewise.
	(create_tinfo_types): Likewise.
	(emit_support_tinfos): Likewise.
	* tinfo.h (cxxabi.h): Include for new-abi.
	Move rtti class definitions to new header file.
	* tinfo.cc (abi): Use the namespace.
	(std): Move new abi rtti classes from here ...
	(__cxxabiv1): ... to here.
	* tinfo2.cc (cxxabi.h): Include for new-abi.
	Move rtti class definitions to new header file.
	(std): Move new abi rtti classes from here ...
	(__cxxabiv1): ... to here.
	* inc/typeinfo (__class_type_info): Move into __cxxabiv1
	namespace.

From-SVN: r32669
2000-03-21 16:12:25 +00:00
Jeff Law
b8731430ae Daily bump.
From-SVN: r32668
2000-03-21 01:45:07 -07:00
Michael Hayes
7d6e6314fa * config/c4x/rtems.h: Include config/rtems.h.
From-SVN: r32667
2000-03-21 06:52:18 +00:00
Denis Chertykov
8053f393d2 avr.c (encode_section_info): sets SYMBOL_REF_FLAG if decl is a FUNCTION_DECL
* config/avr/avr.c (encode_section_info): sets SYMBOL_REF_FLAG if
        decl is a FUNCTION_DECL

From-SVN: r32666
2000-03-21 09:45:57 +03:00
Bryce McKinlay
a09f61183a * java/lang/natClass.cc (isInstance): Use JV_CLASS, not getClass().
From-SVN: r32665
2000-03-21 05:54:42 +00:00
Bryce McKinlay
afccdd1d6c natClass.cc (isInstance): Use _Jv_IsAssignableFrom(), not Class.isAssignableFrom().
* java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
        not Class.isAssignableFrom().

From-SVN: r32664
2000-03-21 05:44:29 +00:00
Bryce McKinlay
a162f9d81e natClass.cc (isInstance): Initialize `this'.
2000-03-21  Bryce McKinlay  <bryce@albatross.co.nz>

        * java/lang/natClass.cc (isInstance): Initialize `this'.
        (isAssignableFrom): Initialize `this' and `klass'.
        (_Jv_IsAssignableFrom): If an interface has no idt, it is not
        implemented by any loaded class, so return false.

From-SVN: r32663
2000-03-21 05:12:20 +00:00
Bryce McKinlay
2ca2f317e2 Test case for PR libgcj/179:
2000-03-21  Bryce McKinlay  <bryce@albatross.co.nz>

        Test case for PR libgcj/179:
        * libjava.lang/pr179.java: New file.
        * libjava.lang/pr179.out: New file.

From-SVN: r32662
2000-03-21 04:55:43 +00:00
Jim Wilson
1ff5b671b6 Minor performance improvements. Minor EH/unwind bug fix.
* config/ia64/ia64.c (ia64_expand_prologue): Don't abort if leaf
	function uses output registers.  Don't save RP for leaf functions.
	Do save RP even if no epilogue.
	* config/ia64/ia64.h (FIXED_REGISTERS): Unmark in/out registers.
	(CALL_USED_REGISTERS): Unmark in registers.
	(REG_ALLOC_ORDER): Move out regs up, to near the top.  Move in regs up,
	to near the middle.

From-SVN: r32661
2000-03-20 20:05:49 -08:00
Tom Tromey
c1f6390295 * Makefile.in: Hand edit for java_raw_api.lo.
From-SVN: r32660
2000-03-21 01:03:02 +00:00
Jim Wilson
d60c4c11a6 Add ia64 support.
* f/target.h (FFETARGET_32bit_longs): New.  Define for alpha, sparc64,
	and ia64.
	(ffetargetInteger1, ffetargetLogical1, ffetargetReal1, ffetargetReal2,
	ffetarget_integerdefault_is_magical): Use FFETARGET_32bit_longs.

From-SVN: r32658
2000-03-20 15:50:48 -08:00
Geoffrey Keating
1c882ea4e7 rs6000.md (bunordered): New expander.
* config/rs6000/rs6000.md (bunordered): New expander.
(bordered): New expander.
(buneq): New expander.
(bunge): New expander.
(bungt): New expander.
(bunle): New expander.
(bunlt): New expander.
(bltgt): New expander.

* config/rs6000/rs6000.c (ccr_bit): Handle unordered comparisons.
(ccr_bit_negated_p): New function.
(print_operand): For %C, generate appropriate cror for UNEQ,
UNLT, UNGT, and LTGT.  For %T and %t, use ccr_bit_negated_p.

From-SVN: r32657
2000-03-20 23:47:39 +00:00
Andreas Jaeger
8c57aea6ec * tree.h (safe_for_unsave): Prototype.
From-SVN: r32656
2000-03-20 15:44:30 -08:00
Andreas Jaeger
bf5e8d0c60 sdbout.c (sdbout_one_type): Add braces to avoid "ambigous else" warning.
* sdbout.c (sdbout_one_type): Add braces to avoid "ambigous else"
        warning.

From-SVN: r32655
2000-03-20 15:42:47 -08:00
Richard Henderson
9e11785b7c regmove.c (stack_memref_p): Fix typo, reorg for readability.
* regmove.c (stack_memref_p): Fix typo, reorg for readability.
        (combine_stack_adjustments_for_block): Don't allow sp references
        in the side of a set we're not fixing up.
        * toplev.c (rest_of_compilation): Run combine_stack_adjustments
        after life_analysis.

From-SVN: r32654
2000-03-20 14:52:04 -08:00
Richard Henderson
e245d3af6f calls.c (expand_call): Don't bother generating tail call sequences if there are pending cleanups.
* calls.c (expand_call): Don't bother generating tail call
        sequences if there are pending cleanups.  Use
        expand_start_target_temps/expand_end_target_temps to elide
        cleanups created during sibcall expansion.

From-SVN: r32653
2000-03-20 14:40:50 -08:00
Jason Merrill
e139e81e89 new
From-SVN: r32652
2000-03-20 16:37:40 -05:00
Geoff Keating
1c521d4150 configure.in: Set $IFS to a value if it doesn't already have one in the --enable-checking...
* configure.in: Set $IFS to a value if it doesn't already have one
in the --enable-checking handling.
* configure: Regenerate.

From-SVN: r32651
2000-03-20 20:58:53 +00:00
Jed Wing
10bd7f8c2d method.c (build_overload_int): Use host_integerp.
* method.c (build_overload_int): Use host_integerp.

Co-Authored-By: Jason Merrill <jason@casey.cygnus.com>

From-SVN: r32650
2000-03-20 13:12:59 -05:00
Theodore Papadopoulo
c65a922c68 init.c (build_offset_ref): Handle the case of a templated member function.
* init.c (build_offset_ref): Handle the case of a templated member
        function.

From-SVN: r32649
2000-03-20 12:44:24 -05:00
Martin v. Löwis
949d707dcf c-parse.in (SAVE_WARN_FLAGS): Use size_int.
* c-parse.in (SAVE_WARN_FLAGS): Use size_int.
	* c-parse.y, c-parse.c, objc/objc-parse.y, objc/objc-parse.c:
	Regenerated.

From-SVN: r32648
2000-03-20 13:22:38 +00:00
Jan Hubicka
4b6baf0ec0 jump.c (delete_noop_moves): Remove code attempting to combine stack adjustments.
* jump.c (delete_noop_moves): Remove code attempting to
	combine stack adjustments.

From-SVN: r32647
2000-03-20 10:45:56 +00:00
Jeff Law
a24f8a86aa Daily bump.
From-SVN: r32646
2000-03-20 01:45:09 -07:00
Nick Clifton
9e291dbee4 remove extraneous code checked in with previous delta
From-SVN: r32645
2000-03-19 21:57:35 +00:00
Richard Henderson
1722dcfc0c * gcc.c-torture/compile/20000314-2.c: Use __SIZE_TYPE__, not size_t.
From-SVN: r32644
2000-03-19 12:28:03 -08:00
Martin v. Löwis
c14f7160a1 emit-rtl.c (push_to_full_sequence, [...]): New functions.
* emit-rtl.c (push_to_full_sequence, end_full_sequence): New functions.
	* except.c (emit_cleanup_handler): Use them.
	(expand_end_all_catch): Likewise.
	* function.c (fixup_var_refs): Likewise.
	(expand_function_end): Clear catch_clauses_last.
	* rtl.h (push_to_full_sequence, end_full_sequence): Declare.
	* except.h (struct eh_status): New field x_catch_clauses_last.
	(catch_clauses_last): New define.

	* cp/except.c (expand_exception_blocks): Clear catch_clauses_last.

	* java/except.c (emit_handlers): Clear catch_clauses_last.

From-SVN: r32643
2000-03-19 18:25:27 +00:00