Commit Graph

34398 Commits

Author SHA1 Message Date
Kaveh R. Ghazi
cc56c744ee * libiberty.h (alloca): Handle setting C_ALLOCA.
From-SVN: r40978
2001-03-31 18:59:56 +00:00
Marek Michalkiewicz
7656d28aed * config/avr/libgcc.S (__mulhi3): Optimize previous change.
From-SVN: r40976
2001-03-31 16:24:16 +00:00
GCC Administrator
59350e5059 Daily bump.
From-SVN: r40974
2001-03-31 08:16:18 +00:00
Phil Edwards
b935ee2092 tests_flags.in (LIBS): Pass correct path for installed testing.
2001-03-30  Phil Edwards  <pme@sources.redhat.com>

	* tests_flags.in (LIBS):  Pass correct path for installed testing.

From-SVN: r40973
2001-03-30 21:59:12 +00:00
Benjamin Kosnik
62f079c57e mkcheck.in (LIBTOOL): Don't construct -B argument here...
2001-03-28  Benjamin Kosnik  <bkoz@redhat.com>

	* mkcheck.in (LIBTOOL): Don't construct -B argument here...
	* tests_flags.in (CXX): Construct here.
	(static_fail): Don't remove compile.out. Format with spaces.
	(INCLUDES): Deal with xcompiling.
	* configure.in (xcompiling): Substitute.
	* testsuite/Makefile.am: Snake libjava configury.
	* testsuite/Makefile.in: Regenerate.
	* testsuite/23_containers/map_operators.cc: Tweaks.
	* testsuite/23_containers/set_operators.cc: Tweaks.

From-SVN: r40972
2001-03-30 17:41:33 +00:00
Bernd Schmidt
1757e77456 Prevent hoisting code from generating uninitialized accesses.
From-SVN: r40971
2001-03-30 17:18:14 +00:00
Jan Hubicka
886cbb8881 i386.c (ix86_split_long_move): Use change address to compensate stack pointer change in push instruction.
* i386.c (ix86_split_long_move): Use change address to compensate
	stack pointer change in push instruction.

From-SVN: r40968
2001-03-30 15:43:44 +00:00
GCC Administrator
63408ab10c Daily bump.
From-SVN: r40961
2001-03-30 08:16:14 +00:00
Benjamin Kosnik
755f30f40c [multiple changes]
2001-03-28  Benjamin Kosnik  <bkoz@redhat.com>

	* mkcheck.in (LIBTOOL): Don't construct -B argument here...
	* tests_flags.in (CXX): Construct here.
	(static_fail): Don't remove compile.out. Format with spaces.
	(INCLUDES): Deal with xcompiling.
	* configure.in (xcompiling): Substitute.
	* testsuite/Makefile.am: Snake libjava configury.
	* testsuite/Makefile.in: Regenerate.
	* testsuite/23_containers/map_operators.cc: Tweaks.
	* testsuite/23_containers/set_operators.cc: Tweaks.

2001-03-28  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>

	Enable dejagnu testing framework.
	* configure.in: Generate testsuite/Makefile.
	* configure: Regenerate.
	* Makefile.am (check-install): Change rule from this...
	(check-script-install): ...to this.
	(check): Change rule from this...
	(check-script):...to this.
	* Makefile.in: Regenerate.

From-SVN: r40960
2001-03-30 08:14:15 +00:00
Jan Hubicka
f021d6fc66 i386.md (sse_movdfcc_eq): Fix constraint (sse_mov?fcc splitter): Use operands_match_p instead of...
* i386.md (sse_movdfcc_eq): Fix constraint (sse_mov?fcc splitter): Use operands_match_p
	instead of rtx_equal_p; fix the output template.

From-SVN: r40959
2001-03-29 22:32:53 +00:00
Jan Hubicka
885a70fdff i386.c (ix86_expand_setcc): Support 64bit.
* i386.c (ix86_expand_setcc): Support 64bit.
	(ix86_expand_int_movcc): Likewise.
	* i386.md (movdicc_rex64, x86_movsicc_0_m1_rex64, movdicc_c_rex64):
	New patterns.

	* i386.md (allocate_stack_worker): Turn to expander.
	(allocate_stack_worker_1, allocate_stack_worker_rex64): New insns.

	* i386.c (print_reg): Do not print x86_64 style regs on IA-32

From-SVN: r40958
2001-03-29 22:25:16 +00:00
Richard Henderson
e4b776a6d0 * libgcc2.c [L__main]: Include unwind-dw2-fde.h instead of frame.h.
From-SVN: r40957
2001-03-29 13:11:23 -08:00
Matthew Hiller
498cf3d0ed mn10300.md (cmpsi): Fix first alternative's output template.
2001-03-28  Matthew Hiller  <hiller@redhat.com>

	* config/mn10300/mn10300.md (cmpsi): Fix first alternative's
	output template.

	* MAINTAINERS: Added self.

From-SVN: r40956
2001-03-29 02:32:46 +00:00
Bryce McKinlay
3b905056f9 configure.in: Use different syntax for subdirectory creation.
* configure.in: Use different syntax for subdirectory creation.
       * configure: Rebuilt.

From-SVN: r40955
2001-03-29 01:03:27 +01:00
Richard Henderson
2bb9b75d52 Makefile.in (cs-tconfig.h): Depend on CONFIG_H, not GCONFIG_H.
* Makefile.in (cs-tconfig.h): Depend on CONFIG_H, not GCONFIG_H.
        Use ALL_CFLAGS not HOST_CFLAGS for sjlj detection.

From-SVN: r40952
2001-03-28 14:20:31 -08:00
Jim Wilson
2bf47a10a9 Fix abort when passing 1.0L as unnamed argument.
* config/ia64/ia64.md (movtf): Change DImode to TFmode in calls to
	operand_subword.

From-SVN: r40951
2001-03-28 13:55:09 -08:00
Alexandre Oliva
400f4e5529 Makefile.am (CXXLINK): Add --tag disable-shared after --tag CXX.
* libsupc++/Makefile.am (CXXLINK): Add --tag disable-shared after
--tag CXX.
(LIBTOOL): Let automake take care of its definition.
* libsupc++/Makefile.in: Rebuilt.

From-SVN: r40947
2001-03-28 21:18:21 +00:00
Loren J. Rittle
a7fd218666 * g++.old-deja/g++.other/eh4.C: Fix typo.
From-SVN: r40946
2001-03-28 21:15:55 +00:00
Loren J. Rittle
2c082cb286 * g++.dg/special/ecos.exp (conpr-1.C): Do not write in $srcdir.
From-SVN: r40943
2001-03-28 21:10:51 +00:00
Kaveh R. Ghazi
80122075e3 expr.c (pop_type_0): Call `concat' rather than building the string manually.
* expr.c (pop_type_0): Call `concat' rather than building the
	string manually.
	(pop_type): Add format specifier in call to `error'.

	* parse.y (patch_method_invocation): Avoid casting away
	const-ness.

From-SVN: r40940
2001-03-28 19:31:43 +00:00
Kaveh R. Ghazi
3fdefbcc63 toplev.h (fatal_error): Add ATTRIBUTE_NORETURN.
* toplev.h (fatal_error): Add ATTRIBUTE_NORETURN.

	* tradcif.y (yyerror): Likewise.  Add format specifier in call to
	`error'.

	* tradcpp.c (macroexpand): Likewise for call to `error_with_line'.

From-SVN: r40939
2001-03-28 19:24:11 +00:00
Alexandre Petit-Bianco
883e9882ff re PR java/2066 (Source parser segfault in resolve_package)
2001-03-21  Alexandre Petit-Bianco  <apbianco@redhat.com>

	* parse.y (qualify_ambiguous_name): Broaden `length'
	recognition. Help MODIFY_EXPR be resolved as expression names.
	Fixes PR java/2066. Fixes PR java/2400.

(http://gcc.gnu.org/ml/gcc-patches/2001-03/msg01935.html)

From-SVN: r40938
2001-03-28 11:22:05 -08:00
Jeffrey Oldham
0f5c1ee409 jvgenmain.c (do_mangle_classname): End string constant with '\0'.
2001-03-28  Jeffrey Oldham  <oldham@codesourcery.com>

	* jvgenmain.c (do_mangle_classname): End string constant with '\0'.

From-SVN: r40936
2001-03-28 18:16:14 +00:00
DJ Delorie
0ac19cfa6d Revert cflags patch.
From-SVN: r40935
2001-03-28 12:50:11 -05:00
Philip Blundell
145c1defc3 20010328-1.c: New test.
2001-03-28  Philip Blundell  <philb@gnu.org>

	* gcc.c-torture/compile/20010328-1.c: New test.

From-SVN: r40934
2001-03-28 17:46:52 +00:00
Marek Michalkiewicz
500164d236 libgcc.S (__mulhi3): Correct tests to exit the loop when multiplier or multiplicand is zero.
* config/avr/libgcc.S (__mulhi3): Correct tests to exit the loop
	when multiplier or multiplicand is zero.

From-SVN: r40933
2001-03-28 17:11:28 +00:00
Bernd Schmidt
112333d3e4 Fix missing barrier problem
From-SVN: r40932
2001-03-28 14:25:37 +00:00
Bernd Schmidt
669ff14e8d Make hash values more random
From-SVN: r40931
2001-03-28 14:21:18 +00:00
Richard Henderson
3553b09d2c rs6000.h (EPILOGUE_USES): Use TARGET_AIX, not TARGET_TOC for special toc restore handling.
* config/rs6000/rs6000.h (EPILOGUE_USES): Use TARGET_AIX,
        not TARGET_TOC for special toc restore handling.
        * config/rs6000/rs6000.md (eh_return): Likewise.

From-SVN: r40930
2001-03-28 04:22:48 -08:00
Richard Henderson
94b68558d1 * Makefile.in (make-temp-file.o): Depend on config.h.
From-SVN: r40929
2001-03-28 03:32:54 -08:00
Richard Henderson
1150a84134 sparc.c (eligible_for_epilogue_delay): False if current_function_calls_eh_return.
* config/sparc/sparc.c (eligible_for_epilogue_delay): False if
        current_function_calls_eh_return.
        (output_function_epilogue): Handle eh_return.
        * config/sparc/sparc.h (DOESNT_NEED_UNWINDER): Remove.
        (EH_RETURN_DATA_REGNO): New.
        (EH_RETURN_STACKADJ_RTX): New.
        (EH_RETURN_HANDLER_RTX): New.
        * config/sparc/sparc.md (call/short branch peepholes): Check
        can_throw_internal instead of in_same_eh_region.

From-SVN: r40928
2001-03-28 03:23:52 -08:00
Richard Henderson
83720594ce rs6000.c (rs6000_stack_info): Allocate space for eh_return data registers.
* config/rs6000/rs6000.c (rs6000_stack_info): Allocate space
        for eh_return data registers.
        (rs6000_emit_prologue): Save eh_return data registers.
        (rs6000_emit_epilogue): Force inline restores if eh_return.
        Restore eh_return data registers.  Mind EH_RETURN_STACKADJ_RTX.
        * config/rs6000/rs6000.h (rs6000_stack_t): Add ehrd_offset.
        (EH_RETURN_DATA_REGNO, EH_RETURN_STACKADJ_RTX): New.
        (EPILOGUE_USES): True for TOC_REGISTER if calls_eh_return and
        the target uses one.
        * config/rs6000/rs6000.md (eh_epilogue, eh_reg_restore): Remove.
        (return_eh_si, return_eh_di): Remove.
        (eh_return): New, from corpse of eh_epilogue.
        (eh_set_lr_si, eh_set_lr_di): New.

From-SVN: r40927
2001-03-28 03:19:20 -08:00
Richard Henderson
1020a5ab7e i386.c (general_no_elim_operand): Disallow virtual regs.
* config/i386/i386.c (general_no_elim_operand): Disallow virtual regs.
        (ix86_save_reg): If maybe_eh_return, true for EH_RETURN_DATA_REGNOs.
        True for pic register if current_function_calls_eh_return.
        (ix86_expand_epilogue): Change "emit_return" argument into "style".
        Handle eh_return requirements.
        * config/i386/i386.h (EH_RETURN_DATA_REGNO): New.
        (EH_RETURN_STACKADJ_RTX): New.
        * config/i386/i386.md (exception_receiver): Remove.
        (eh_return, eh_return_1): New.
        * config/i386/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.

From-SVN: r40926
2001-03-28 03:14:40 -08:00
Richard Henderson
4573b4de23 alpha.c (alpha_sa_mask): Add EH_RETURN_DATA_REGNOs.
* config/alpha/alpha.c (alpha_sa_mask): Add EH_RETURN_DATA_REGNOs.
        (alpha_mark_machine_status): No eh_epilogue_sp_ofs ...
        (alpha_expand_epilogue): ... use EH_RETURN_STACKADJ_RTX instead.
        * config/alpha/alpha.h (machine_function): Remove eh_epilogue_sp_ofs.
        (EH_RETURN_DATA_REGNO): New.
        (EH_RETURN_STACKADJ_RTX, EH_RETURN_HANDLER_RTX): New.
        * config/alpha/alpha.md (eh_epilogue): Remove.
        (exception_receiver): Use $26 for ldgp input.
        * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.

From-SVN: r40925
2001-03-28 03:09:20 -08:00
Richard Henderson
52a11cbfcf IA-64 ABI Exception Handling.
From-SVN: r40924
2001-03-28 03:04:51 -08:00
Richard Henderson
ce1c98ea45 java-tree.h (throw_node): Define as a single member of java_global_trees instead of a separate array.
* java-tree.h (throw_node): Define as a single member of
        java_global_trees instead of a separate array.
        (JTI_THROW_NODE): New.
        * decl.c (throw_node): Don't declare.
        (init_decl_processing): Init a scalar throw_node.
        Don't register it for gc.
        * check-init.c (check_init): Reference scalar throw_node.
        * expr.c (build_java_athrow): Likewise.
        * jcf-write.c (generate_bytecode_insns): Likewise.
        * parse.h (BUILD_THROW): Likewise.

From-SVN: r40922
2001-03-28 00:59:30 -08:00
Richard Henderson
da7da8f977 decl.c (end_java_method): Do not save and restore flag_non_call_exceptions.
* decl.c (end_java_method): Do not save and restore
        flag_non_call_exceptions.
        * parse.y (source_end_java_method): Likewise.
        * lang.c (flag_exceptions): Don't declare.
        (java_init_options): Set flag_non_call_exceptions.  Set
        flag_exceptions here ...
        (java_init): ... not here.

From-SVN: r40921
2001-03-28 00:38:22 -08:00
Richard Henderson
826840d96a decl.c (struct named_label_list): Rename eh_region to in_try_scope, add in_catch_scope.
* decl.c (struct named_label_list): Rename eh_region to
        in_try_scope, add in_catch_scope.
        (struct binding_level): Rename eh_region to is_try_scope,
        add is_catch_scope.
        (note_level_for_try): Rename from note_level_for_eh.
        (note_level_for_catch): New.
        (poplevel): Copy both is_try_scope and is_catch_scope to
        the named_label_list struct.
        (check_previous_goto_1): Don't check for catch block via
        DECL_ARTIFICIAL; use in_try_scope instead.
        (check_goto): Likewise.
        * cp-tree.h (note_level_for_try, note_level_for_catch): Declare.
        * except.c (expand_start_catch_block): Call note_level_for_catch.
        * semantics.c (begin_compound_stmt): Update for note_level_for_try.

From-SVN: r40920
2001-03-28 00:25:45 -08:00
GCC Administrator
1e7c4465e9 Daily bump.
From-SVN: r40919
2001-03-28 08:16:40 +00:00
Richard Henderson
a614d82edd regmove.c (perhaps_ends_bb_p): Use can_throw_internal to reduce false positives.
* regmove.c (perhaps_ends_bb_p): Use can_throw_internal to
        reduce false positives.
        (regmove_optimize): Disable if flag_non_call_exceptions.

From-SVN: r40917
2001-03-28 00:08:43 -08:00
Richard Henderson
7cc8342c77 stmt.c (expand_return): Remove always true predicate.
* stmt.c (expand_return): Remove always true predicate.
        (expand_decl_cleanup_no_eh): Remove dead code.

From-SVN: r40916
2001-03-27 23:49:20 -08:00
Richard Henderson
ca3c102896 sched-deps.c (sched_analyze_insn): Consolidate scheduling barrier code.
* sched-deps.c (sched_analyze_insn): Consolidate scheduling
        barrier code.  Add a scheduling barrier if a non-call insn
        can throw internally.

From-SVN: r40915
2001-03-27 23:42:04 -08:00
Richard Henderson
4f73495e07 rtlanal.c (rtx_addr_can_trap_p): Virtual registers cannot trap.
* rtlanal.c (rtx_addr_can_trap_p): Virtual registers cannot trap.
        Auto-inc addresses trap only if their base register does.

From-SVN: r40914
2001-03-27 23:34:51 -08:00
Richard Henderson
54590688b5 except.c (can_throw_internal): Rename from can_throw.
* except.c (can_throw_internal): Rename from can_throw.
        * except.h, resource.c: Update references.

From-SVN: r40913
2001-03-27 23:29:21 -08:00
Richard Henderson
8cd442715f integrate.c (copy_insn_list): Use returnjump_p.
* integrate.c (copy_insn_list): Use returnjump_p.
        (copy_insn_notes): Recurse for CALL_PLACEHOLDER.

From-SVN: r40912
2001-03-27 23:20:43 -08:00
Richard Henderson
89996b6e7c function.h (struct function): Move all boolean valued fields to single bit fields at the end of the struct.
* function.h (struct function): Move all boolean valued fields
        to single bit fields at the end of the struct.

From-SVN: r40911
2001-03-27 23:08:57 -08:00
Richard Henderson
2f2ee4bba2 flow.c (cleanup_cfg): Take no argument.
* flow.c (cleanup_cfg): Take no argument.
        * output.h, sibcall.c, toplev.c: Update all calls.

From-SVN: r40910
2001-03-27 22:53:49 -08:00
Richard Henderson
ad73b55832 flow.c (tidy_fallthru_edges): Don't combine complex edges.
* flow.c (tidy_fallthru_edges): Don't combine complex edges.
        (calculate_global_regs_live): Kill call-clobbered registers
        across exception edges.
        * reg-stack.c (convert_regs_1): Kill the entire target stack
        across non-call exception edges.

From-SVN: r40909
2001-03-27 22:22:23 -08:00
Richard Henderson
461fc4de6a Remove flag_new_exceptions.
From-SVN: r40908
2001-03-27 22:11:49 -08:00
Richard Henderson
662795a85f combine.c (distribute_notes): If non-call exceptions, put the note on the trapping instruction.
* combine.c (distribute_notes) [REG_EH_REGION]: If non-call
        exceptions, put the note on the trapping instruction.

From-SVN: r40907
2001-03-27 21:40:43 -08:00