Commit Graph

24756 Commits

Author SHA1 Message Date
Jeff Law
5e481b31ee Daily bump.
From-SVN: r30137
1999-10-23 01:45:06 -06:00
Jason Merrill
ecb2452b82 regen
From-SVN: r30136
1999-10-22 23:20:47 -04:00
Jeffrey A Law
6ab589e0c9 arm.c (logical_binary_operator): New fucntion.
* arm.c (logical_binary_operator): New fucntion.
        * arm.h (logical_binary_operator): Declare it.
        (PREDICATE_CODES): Handle logical_binary_operator.
        * arm.md (anddi3, anddi_zesidi_di, anddi_sesdi_di): Use "#" for
        output constraints.  Add appropriate splitters.
        (anddi_notdi_di, anddi_notzesidi_di, anddi_notsesidi_di): Likewise.
        (iordi3, iordi_zesidi_di, iordi_sesidi_di): Likewise.
        (xordi3, xordi_zesidi_di, xordi_sesidi_di): Likewise.

From-SVN: r30135
1999-10-22 18:09:29 -06:00
Bernd Schmidt
dfac187e9f Fix register elimination problem
From-SVN: r30134
1999-10-22 22:02:17 +00:00
Tom Tromey
b8c3c4f014 Makefile.in: Rebuilt.
* Makefile.in: Rebuilt.
	* Makefile.am (java/lang/ClassLoader.h): New target.
	* java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference
	to `redirect'.

	* include/java-props.h (_Jv_Compiler_Properties): Changed
	declaration.
	* gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare.
	* include/jvm.h (_Jv_GCSetInitialHeapSize,
	_Jv_GCSetMaximumHeapSize): Declare.
	(JvRunMain, _Jv_RunMain): Declare.
	(_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare.
	* nogc.cc (_Jv_GCSetInitialHeapSize): New function.
	(_Jv_GCSetMaximumHeapSize): Likewise.
	* boehm.cc (_Jv_GCSetInitialHeapSize): New function.
	(_Jv_GCSetMaximumHeapSize): Likewise.
	* prims.cc (parse_heap_size): New function.
	(_Jv_SetInitialHeapSize): Likewise.
	(_Jv_SetMaximumHeapSize): Likewise.
	(_Jv_Compiler_Properties): New global.
	* gij.cc (help): New function.
	(version): Likewise.
	(heap_size): Likewise.
	(heap_max_size): Likewise.
	(main): Parse arguments.  Set _Jv_Compiler_Properties.
	Include <config.h>, <java-props.h>.
	(_Jv_Compiler_Properties): Removed.

From-SVN: r30133
1999-10-22 19:43:41 +00:00
Tom Tromey
2fca54beb2 jvgenmain.c (main): _Jv_Compiler_Properties now an extern; set in generated `main'.
* jvgenmain.c (main): _Jv_Compiler_Properties now an extern; set
	in generated `main'.

From-SVN: r30132
1999-10-22 19:40:50 +00:00
Mark Mitchell
7ebb782bd0 i386.md: Add missing `y' modifiers to uses of fst, fstp, fld, and fld.
* i386.md: Add missing `y' modifiers to uses of fst, fstp, fld,
	and fld.

From-SVN: r30131
1999-10-22 15:59:21 +00:00
Bruce Korb
8f9ca91274 Use C-coded tests and fixes for #endif/#else labels
From-SVN: r30130
1999-10-22 13:23:43 +00:00
Jeff Law
5685b5d3c2 Daily bump.
From-SVN: r30129
1999-10-22 01:45:07 -06:00
Mark Mitchell
5f7cbe4eb3 cp-tree.def (EMPTY_CLASS_EXPR): New tree node.
* cp-tree.def (EMPTY_CLASS_EXPR): New tree node.
	* call.c (build_call): Use EMPTY_CLASS_EXPR instead of RTL_EXPR.
	* expr.c (cplus_expand_expr): Expand it.
	* ir.texi: Document EMPTY_CLASS_EXPR.

From-SVN: r30128
1999-10-22 06:35:17 +00:00
Alexandre Petit-Bianco
ac22f9cb2c re GNATS gcj/56 (gcj segfaults in jc1 on OK java file)
Thu Oct 21 01:27:31 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* parse.y (resolve_qualified_expression_name): Handle MODIFY_EXPR.
	(qualify_ambiguous_name): Likewise.

This fixes the net PR #56
(http://sourceware.cygnus.com/ml/java-prs/1999-q3/msg00131.html)

From-SVN: r30127
1999-10-21 23:06:47 -07:00
Alexandre Petit-Bianco
100f7cd8b9 re GNATS gcj/37 (gcj fails to compile "jBYTEmark" from source code when optimization is used)
Wed Oct 20 01:41:47 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* parse.y (java_complete_tree): fold_constant_for_init to work on
 	permanent_obstack.
	(java_complete_lhs): Likewise.
	(array_constructor_check_entry): Complete an initializer element
 	on permanent_obstack.

This patch fixes the net PR #37
(http://sourceware.cygnus.com/ml/java-prs/1999-q3/msg00043.html)

From-SVN: r30126
1999-10-21 22:27:34 -07:00
Jeffrey A Law
d84319deb3 Makefile.in (cse.o): Depend on hashtab.h, not splay-tree.h.
* Makefile.in (cse.o): Depend on hashtab.h, not splay-tree.h.  Also
        depend on ggc.h.

From-SVN: r30125
1999-10-21 20:38:57 -06:00
Matthias Klose
84221183be * gcc.1: Document exit codes.
From-SVN: r30124
1999-10-21 20:32:26 -06:00
Mark Mitchell
8badec73eb dump.c (dequeue_and_dump): Replace several uses of queue_and_dump_index with dump_child.
1999-10-21  Mark Mitchell  <mark@codesourcery.com>

	* dump.c (dequeue_and_dump): Replace several uses of
	queue_and_dump_index with dump_child.

From-SVN: r30123
1999-10-22 01:40:30 +00:00
Kaveh R. Ghazi
b1474bb79e calls.c: Include tm_p.h later, so everything we need is defined.
* calls.c: Include tm_p.h later, so everything we need is defined.
        * expr.c: Likewise.
        * function.c: Likewise.

        * except.c: Include tm_p.h.

        * sparc.c: Likewise.
        (dwarf2out_cfi_label): Don't prototype.
        (check_return_regs, epilogue_renumber,
        ultra_cmove_results_ready_p, ultra_fpmode_conflict_exists,
        ultra_find_type, ultra_build_types_avail, ultra_flush_pipeline,
        ultra_rescan_pipeline_state, set_extends, ultra_code_from_mask,
        ultra_schedule_insn): Add static prototype.
        (data_segment_operand, text_segment_operand): Call itself with the
        proper number of arguments.
        (sparc_flat_save_restore, sparc_v8plus_shift): Constify a char*.

        * sparc.h: Move all declarations to sparc-protos.h.
        (SELECT_RTX_SECTION):  Pass a missing MODE argument to
        symbolic_operand.

        * sparc/sysv4.h (SELECT_RTX_SECTION): Likewise.

        * config/svr4.h (text_section, ctors_section, dtors_section): Add
        Prototypes.
        (ASM_OUTPUT_SECTION_NAME, UNIQUE_SECTION,
        ASM_FINISH_DECLARE_OBJECT, ASM_OUTPUT_LIMITED_STRING,
        ASM_OUTPUT_ASCII): Constify a char*.

        * sparc-protos.h: New file for sparc prototypes.

cp:
        * expr.c: Include tm_p.h.

From-SVN: r30122
1999-10-21 16:58:33 +00:00
Kaveh R. Ghazi
ec97b83a1c function.c (record_insns, contains): Always declare and define.
* function.c (record_insns, contains): Always declare and define.
       (record_insns): Mark with ATTRIBUTE_UNUSED.

From-SVN: r30121
1999-10-21 16:26:42 +00:00
Jonathan Larmour
ec8aac6f55 Apply patches submitted by eCos team.
From-SVN: r30120
1999-10-21 12:05:58 +00:00
Nick Clifton
8141abe88d Allos suppression of some ARM multilibs
From-SVN: r30119
1999-10-21 10:54:53 +00:00
Mark Mitchell
8f471b0d0f cp-tree.h (SCOPE_PARTIAL_P): New macro.
* cp-tree.h (SCOPE_PARTIAL_P): New macro.
	(pushlevel_temporary): Remove.
	(add_scope_stmt): New function.
	* decl.c (pushlevel_temporary): Remove.
	(poplevel): Use add_scope_stmt.
	(start_decl_1): Likewise.
	* semantics.c (add_scope_stmt): New function.
	(do_pushlevel): Use it.
	(do_poplevel): Use it.
	(expand_stmt): Check SCOPE_PARTIAL_P.

From-SVN: r30118
1999-10-21 08:05:57 +00:00
Jeff Law
070cd782ac Daily bump.
From-SVN: r30117
1999-10-21 01:45:06 -06:00
Mark Mitchell
699ed0ce1f cp-tree.def (EMPTY_CLASS_EXPR): New tree node.
* cp-tree.def (EMPTY_CLASS_EXPR): New tree node.
	* call.c (build_call): Use EMPTY_CLASS_EXPR instead of RTL_EXPR.
	* expr.c (cplus_expand_expr): Expand it.
	* ir.texi: Document EMPTY_CLASS_EXPR.

From-SVN: r30116
1999-10-21 07:10:36 +00:00
Jeffrey A Law
e54635a2f3 sparc.md (movsf_const_intreg): If splitting, length must be > 1.
* sparc.md (movsf_const_intreg): If splitting, length must be > 1.
        (movdf_const_intreg_sp64): Similarly.

From-SVN: r30112
1999-10-20 23:33:20 -06:00
Jeffrey A Law
b768aa38c2 local-alloc.c (update_equiv_regs): Check the correct insn for pre-existing REG_EQUIV notes.
* local-alloc.c (update_equiv_regs): Check the correct insn
        for pre-existing REG_EQUIV notes.

From-SVN: r30111
1999-10-20 23:01:02 -06:00
Mark Mitchell
16b702cd43 cse.c (cse_end_of_basic_block): Don't return the end of a basic block reached by a branch if...
* cse.c (cse_end_of_basic_block): Don't return the end of a basic
	block reached by a branch if we're not going to actually process
	this block

From-SVN: r30109
1999-10-21 03:37:33 +00:00
Jim Wilson
56d410bbc0 Fix noncompile/940510-1.c testsuite failures.
* noncompile/noncompile.exp: For 940510-1.c, change compiler_output
	to look for one error message instead of two.

From-SVN: r30108
1999-10-20 16:20:01 -07:00
Jim Wilson
417d348c5a Fix numerous -O3 -g testsuite failures for DWARF2 targets.
* integrate.c (integrate_decl_tree): Set DECL_CONTEXT to 0 if this is
	a local extern function declaration.

From-SVN: r30107
1999-10-20 15:19:06 -07:00
Richard Henderson
276ab4a49c i386.c (ix86_expand_prologue): Properly wrap USE around reg for CALL_INSN_FUNCTION_USAGE.
* i386.c (ix86_expand_prologue): Properly wrap USE around
        reg for CALL_INSN_FUNCTION_USAGE.

From-SVN: r30106
1999-10-20 13:58:29 -07:00
Andrew Haley
c26040ee1e mips.md (movdf_internal1a): Allow floating-point move between GP_REGs.
Thu Oct 14 18:51:37 1999  Andrew Haley  <aph@cygnus.com>

        * config/mips/mips.md (movdf_internal1a): Allow floating-point
        move between GP_REGs.

From-SVN: r30105
1999-10-20 18:29:09 +00:00
Andrew Haley
7086004dd0 thumb.h (GO_IF_LEGITIMATE_ADDRESS): Take account of the mode size when finding out if an offset is legal.
Wed Oct 20 15:36:11 1999  Andrew Haley  <aph@cygnus.com>

	* config/arm/thumb.h (GO_IF_LEGITIMATE_ADDRESS): Take account of
	the mode size when finding out if an offset is legal.

From-SVN: r30104
1999-10-20 15:36:33 +00:00
Richard Henderson
49c3bb1275 basic-block.h (PROP_*): Move constants from ...
* basic-block.h (PROP_*): Move constants from ...
        * flow.c: ... here.
        (compute_bb_for_insn): Free the array before reallocating.
        (update_life_info): New arg PROP_FLAGS; pass on to propagate_block.
        (allocate_reg_life_data): Reset all reg variables collected by
        propagate_block.
        (get_block_head_tail): Don't convert from bb to block.
        (get_bb_head_tail): New.  Update all callers of get_block_head_tail.
        (find_insn_reg_weight): Take block not bb.
        (schedule_block): Don't set block num for moved insns.
        (schedule_region): Don't update_life_info or find_insn_reg_weight.
        (schedule_insns): Do it here instead.
        * combine.c (combine_instructions): Invoke compute_bb_for_insn
        before update_life_info.
        * recog.c (split_all_insns, peephole2_optimize): Update for
        new arg to update_life_info.
        * rtlanal.c (remove_note): Cope with NULL note.
        * toplev.c (rest_of_compilation): Don't invoke recompute_reg_usage
        if we did sched1.

From-SVN: r30103
1999-10-20 07:04:12 -07:00
Richard Earnshaw
5b9188072e * gcc-page.c: Try MAP_ANON if we don't have MAP_ANONYMOUS.
From-SVN: r30102
1999-10-20 12:53:23 +00:00
Richard Earnshaw
506f9fbf42 (split_edge): Handle casesi insns.
From-SVN: r30101
1999-10-20 12:45:22 +00:00
Richard Earnshaw
ee7b8369c2 (merge_blocks_move_predecessor_nojumps): Re-order the basic block records so...
(merge_blocks_move_predecessor_nojumps): Re-order the basic
block records so that merge_blocks_nomove will clean up correctly.

From-SVN: r30100
1999-10-20 12:39:01 +00:00
Richard Earnshaw
dc9e9f3f88 (jump_optimize_1): More accurately detect casesi insns.
From-SVN: r30099
1999-10-20 10:21:47 +00:00
Jeff Law
2cd6f3b397 Daily bump.
From-SVN: r30098
1999-10-20 01:45:06 -06:00
Mark Mitchell
4f71f6300a cp-tree.h (DECL_NAMESPACE_SCOPE_P): Don't treat template parameters as having namespace scope.
* cp-tree.h (DECL_NAMESPACE_SCOPE_P): Don't treat template
	parameters as having namespace scope.

From-SVN: r30097
1999-10-20 07:02:30 +00:00
Jeffrey A Law
7978192f77 pa.md (call, call_value): Do not emit a blockage after restoring the PIC register.
* pa.md (call, call_value): Do not emit a blockage after restoring
        the PIC register.

From-SVN: r30096
1999-10-19 23:45:09 -06:00
Mark Mitchell
1bef1e7c43 * c-typeck.c (c_expand_asm_operands): Fix typo.
From-SVN: r30095
1999-10-20 00:18:10 +00:00
Bryce McKinlay
921150153a Test code for GNATS gcj/71 and GNATS gcj/72.
1999-10-19  Bryce McKinlay  <bryce@albatross.co.nz>

        * libjava.compile/invokeinterface: New directory.
        * libjava.compile/invokeinterface/Test.java: New file. Test code for
        PR gcj/71 and PR gcj/72.
        * libjava.compile/invokeinterface/A.java: New file.
        * libjava.compile/invokeinterface/B.java: New file.

From-SVN: r30094
1999-10-20 01:09:33 +01:00
Tom Tromey
51ae407148 jcf-parse.c (parse_source_file): Call jcf_dependency_add_file.
* jcf-parse.c (parse_source_file): Call jcf_dependency_add_file.
	From Mike Moreton <mike@pillim.demon.co.uk>.

From-SVN: r30093
1999-10-19 23:05:28 +00:00
Gabriel Dos Reis
172d33bca7 valarray_meta.h: (_BinClos::_BinClos): Fix typo.
1999-10-19  Gabriel Dos Reis  <dosreis@cmla.ens-cachan.fr>

        * std/valarray_meta.h: (_BinClos::_BinClos): Fix typo.

From-SVN: r30092
1999-10-19 22:10:36 +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
Mark Mitchell
858a0ff109 method.c (PARM_CAN_BE_ARRAY_TYPE): Remove.
* method.c (PARM_CAN_BE_ARRAY_TYPE): Remove.
	(mangling_flags): New type.
	(build_overload_int): Change prototype.
	(build_overload_value): Likewise.
	(numeric_output_need_bar): Improve comment.
	(mangle_expression): New function, broken out from ...
	(build_overload_int): Here.
	(build_overload_value): Adjust for use of mangling flags.  Don't
	warn about real-valued template parameters here.  Do handle
	complex expressions involving real-valued template parameters.
	(build_template_parm_names): Encase non-type template parameters
	in underscores, if necessary.
	(process_overload_item): Remove conditional on
	PARM_CAN_BE_ARRAY_TYPE.

From-SVN: r30090
1999-10-19 17:40:48 +00:00
Bernd Schmidt
9ce71c6fbd arm.c: Verify modes on operands in predicates
From-SVN: r30088
1999-10-19 16:47:23 +00:00
Richard Earnshaw
3a2ea2588f Fix APCS violation.
From-SVN: r30087
1999-10-19 14:27:00 +00:00
Bruce Korb
db025289c4 use genfixes within Makefile.in and move comments to README
From-SVN: r30086
1999-10-19 13:22:45 +00:00
Nick Clifton
0c70c30f29 Do not generate error message about unrecognised command line switches of
other languages.

From-SVN: r30085
1999-10-19 13:02:39 +00:00
Mumit Khan
61e8b354cf Applied Mumit Khan's patch to fix #pragma push/pop handling.
From-SVN: r30084
1999-10-19 10:44:30 +00:00
Jeffrey A Law
f099b1c909 reg-stack.c (stack_result): Aggregates are not returned in stack registers.
* reg-stack.c (stack_result): Aggregates are not returned in
        stack registers.

From-SVN: r30081
1999-10-19 02:12:30 -06:00