Commit Graph

24555 Commits

Author SHA1 Message Date
Jeff Law b392db7b3c Daily bump.
From-SVN: r30078
1999-10-19 01:45:07 -06:00
Alasdair Baird 2af3e5fb95 * fold-const.c (fold): Fix thinko in x+(-0) -> x transformation.
From-SVN: r30077
1999-10-19 01:26:59 -06:00
Jeffrey A Law b61a6c8113 cse.c (invalidate_for_call): Do not remove memory references from the table here.
* cse.c (invalidate_for_call): Do not remove memory references from
        the table here.  It's handled elsewhere.

From-SVN: r30076
1999-10-18 17:05:03 -06:00
Tom Tromey 4b84737d47 VMClassLoader.java (getVMClassLoader): New method.
* gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): New
	method.
	(redirect): New static field.
	* java/lang/ClassLoader.java (getSystemClassLoader): Now
	native
	(getVMClassLoader0): Removed.
	* java/lang/natClassLoader.cc (getVMClassLoader0): Removed.
	(redirect): Removed.
	(getSystemClassLoader): Implemented.

From-SVN: r30075
1999-10-18 22:57:07 +00:00
Jeffrey A Law 35c95c5a65 haifa-sched.c (add_dependence): Protect references to the true dependency cache with #ifdef INSN_SCHEDULING.
* haifa-sched.c (add_dependence): Protect references to the
        true dependency cache with #ifdef INSN_SCHEDULING.
        (remove_dependence): Similarly.

From-SVN: r30074
1999-10-18 16:37:30 -06:00
Richard Henderson c88e820682 basic-block.h (set_block_num): Declare.
* basic-block.h (set_block_num): Declare.
        * flow.c (update_life_info): Don't call compute_bb_for_insn
        or free_basic_block_vars.
        * haifa-sched.c (remove_dependence): Conditionalize on HAVE_cc0.
        (insn_orig_block): Remove.
        (INSN_BLOCK): Remove.  Update all callers to use BLOCK_NUM.
        (schedule_block): Keep BLOCK_NUM up-to-date.
        (schedule_insns): Use compute_bb_for_insn.
        * recog.c (split_all_insns): Likewise.
        (peephole2_optimize): Likewise.

From-SVN: r30073
1999-10-18 15:20:27 -07:00
Jeffrey A Law 87b5c7e5e4 mn10200.md (outline_epilogue_jump): Embed a (return) to indicate to the cfg code that this is a return instruction.
* mn10200.md (outline_epilogue_jump): Embed a (return) to indicate
        to the cfg code that this is a return instruction.
        * mn10300.md (return_internal): Similarly.

From-SVN: r30072
1999-10-18 13:59:48 -06:00
Andreas Schwab d3f4f2d6fe m68k.h (INITIAL_FRAME_POINTER_OFFSET): Add one word if the pic register is used.
* config/m68k/m68k.h (INITIAL_FRAME_POINTER_OFFSET): Add one word
	if the pic register is used.

From-SVN: r30071
1999-10-18 16:49:22 +00:00
Richard Henderson 1b3e142338 * ggc-page.c (init_ggc): Work around SunOS unaligned mmap bug.
From-SVN: r30070
1999-10-18 09:38:40 -07:00
Kaveh R. Ghazi 3da5522a60 * calloc.c: Add a public domain notice.
From-SVN: r30069
1999-10-18 15:25:01 +00:00
Bernd Schmidt e3d2508d72 c-decl.c (pushdecl): Use TYPE_CONTEXT rather than TREE_PERMANENT.
* c-decl.c (pushdecl): Use TYPE_CONTEXT rather than TREE_PERMANENT.
        (finish_decl): Duplicate test for TREE_ASM_WRITTEN in else branch of
        if that tests TREE_PERMANENT.

From-SVN: r30068
1999-10-18 02:40:20 -06:00
Philippe De Muyter d7d36ea879 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
From-SVN: r30067
1999-10-18 02:36:29 -06:00
Manfred Hollstein e43cc14299 * POTFILES.in: Track files recently added/deleted/moved.
From-SVN: r30066
1999-10-18 01:55:17 -06:00
Jeff Law 878bfb79f0 Daily bump.
From-SVN: r30063
1999-10-18 01:45:07 -06:00
Jeffrey A Law ca4cd906cb combine.c (get_last_value): If the last set of a register is after subst_low_cuid...
* combine.c (get_last_value): If the last set of a register
        is after subst_low_cuid, then we can not use it to determine
        the register's last value.

From-SVN: r30062
1999-10-18 01:44:13 -06:00
Mark Mitchell d336e5046c * Makefile.in: Back out previous change.
From-SVN: r30061
1999-10-18 04:07:28 +00:00
Jeffrey A Law 7739ebae53 * pa.c (move_operand): Reject (lo_sum (reg) (unspec ...)).
From-SVN: r30060
1999-10-17 17:08:36 -06:00
Jeff Law 60588660d0 Typo.
From-SVN: r30059
1999-10-17 15:46:36 -06:00
Jeffrey A Law aae0390e20 haifa-sched.c (add_dependence): Only check/update the cache if it exists.
* haifa-sched.c (add_dependence): Only check/update the cache
        if it exists.
        (remove_dependence): Likewise.
        (schedule_insns): Only create the true_dependency_cache if the
        average number of instructions in a basic block is very large.

From-SVN: r30058
1999-10-17 15:27:56 -06:00
Mark Mitchell 81631c486e Makefile.in (ggc-common.o): Depend on genrtl.h.
* Makefile.in (ggc-common.o): Depend on genrtl.h.
	(ggc-simple.o): Likewise.
	(ggc-page.o): Likewise.

From-SVN: r30057
1999-10-17 17:59:07 +00:00
Mark Mitchell 7192e1387b dump.c (dequeue_and_dump): Handle CLEANUP_POINT_EXPR.
* dump.c (dequeue_and_dump): Handle CLEANUP_POINT_EXPR.

	* ir.texi: Clean up documentation of RETURN_INIT.

From-SVN: r30056
1999-10-17 17:40:12 +00:00
Andrew MacLeod a42cd96552 basic-block.h (pre_edge_lcm, [...]): Prototype for exported functions.
* basic-block.h (pre_edge_lcm, pre_edge_rev_lcm, compute_available):
        Prototype for exported functions.
        (pre_lcm, pre_rev_lcm): Remove prototypes.
        * gcse.c (compute_ae_kill): Add ae_gen and ae_kill as parameters.
        (compute_available): Move to lcm.c, and change parameter order.
        (one_classic_gcse_pass): Call compute_ae_kill with parameters.
        (pre_insert, s_preds, s_succs, num_preds, num_succs): Delete.
        (gcse_main): No longer call compute_preds_succs.  Rebuild the
        set table after reach pre pass.
        (pre_insert_map, pre_delete_map, edge_list): New.
        (alloc_pre_mem): Allocate edge vectors.
        (free_pre_mem): Delete edge vectors.
        (compute_pre_data): Call new edge based lcm routines.
        (process_insert_insn): New function.
        (insert_insn_end_bb): Use it.
        (pre_edge_insert): New function.
        (pre_insert_copy_insn): Formatting fixes.  Update BLOCK_END as
        needed.
        (pre_insert_copies): Revamp using new edge based lcm outputs.
        (pre_delete): Likewise.
        (one_pre_gcse_pass): Insert & remove fake edges to the exit
        block.
        (compute_code_hoist_vbeinout): New new edge based routines.
        * lcm.c: Remove all the old LCM functions.  Replace with new ones
        that work with the new cfg datastructures and work with edges
        instead of blocks.

From-SVN: r30055
1999-10-17 03:21:25 -06:00
Andrew MacLeod 3cce638b2b * gcse.c (hash_scan_set): Remove incorrect ! optimize_size check.
From-SVN: r30054
1999-10-17 02:53:48 -06:00
Jeff Law 1e875952c8 Fix typo in last change.
From-SVN: r30053
1999-10-17 02:19:37 -06:00
Jeff Law f002736bd3 Daily bump.
From-SVN: r30052
1999-10-17 01:45:06 -06:00
Bernd Schmidt 8ec450a4de reload.h (struct reload): Add new fields "mode" and "nregs".
* reload.h (struct reload): Add new fields "mode" and "nregs".
        * reload1.c: Change all occurrences of reload_mode and reload_nregs
        to reference the "mode" and "nregs" field within struct reload.

From-SVN: r30051
1999-10-17 00:47:27 -06:00
Jeffrey A Law 356edbd763 haifa-sched.c (true_dependency_cache): New.
* haifa-sched.c (true_dependency_cache): New.
        (add_dependence): Use the true dependency cache to avoid expensive
        walks down the LOG_LINKS dependency list.  Add entries to the
        cache as necessary.
        (remove_dependence): Remove entries from the true dependency cache
        as needed.
        (schedule_insns): Allocate and initialize and free the true
        dependency cache.

From-SVN: r30050
1999-10-17 00:28:22 -06:00
Jeffrey A Law e75f2df7e5 haifa-sched.c (schedule_insns): Do not remove inter-block dependencies anymore.
* haifa-sched.c (schedule_insns): Do not remove inter-block
        dependencies anymore.

From-SVN: r30049
1999-10-16 21:50:21 -06:00
Anthony Green 6c413a50e6 ClassLoader.java (getSystemResource): Use getSystemClassLoader instead of ClassLoader.system.
* java/lang/ClassLoader.java (getSystemResource): Use
        getSystemClassLoader instead of ClassLoader.system.
        (getSystemResourceAsStream): Ditto.

        * java/lang/natClassLoader.cc (redirect): Make static and
        remove #ifdef INTERPRETER so it is always defined.
        (getVMClassLoader0): Remove #ifdef INTERPRETER so it always
        returns a VMClassLoader.

        * java/util/ResourceBundle.java (trySomeGetBundle): Create a
        PropertyResourceBundle if a properties file is found before a
        ResourceBundle class.

From-SVN: r30048
1999-10-17 03:11:50 +00:00
Richard Henderson 1b284f05ac t-cygwin (winnt.o): Depend on RTL_H and TREE_H.
* i386/t-cygwin (winnt.o): Depend on RTL_H and TREE_H.
        * i386/t-winnt: Likewise.

From-SVN: r30045
1999-10-16 11:22:29 -07:00
Manfred Hollstein 28fe2fb748 Makefile.in (LANGUAGES): Omit "proto".
* Makefile.in (LANGUAGES): Omit "proto".
	(clean): Remove stale comment about removing unprotoize.c.

From-SVN: r30044
1999-10-16 15:52:04 +00:00
Kaveh R. Ghazi 9c592305f4 protoize.c (safe_read, safe_write): Avoid the gcc extension of using arithmetic on void pointers.
* protoize.c (safe_read, safe_write): Avoid the gcc extension of
        using arithmetic on void pointers.

From-SVN: r30043
1999-10-16 15:32:00 +00:00
Jeffrey A Law 706c5c2fdc haifa-sched.c (compute_block_forward_dependencies): Only check for notes, deleted insns and duplicates if ENABLE_CHECKING is defined.
* haifa-sched.c (compute_block_forward_dependencies): Only check
	for notes, deleted insns and duplicates if ENABLE_CHECKING is defined.

From-SVN: r30042
1999-10-16 02:54:07 -06:00
Jeff Law c2d88e8417 Daily bump.
From-SVN: r30041
1999-10-16 01:45:07 -06:00
Richard Henderson fa7ae3bc4d * gcc.c-torture/execute/991016-1.c: New test.
From-SVN: r30040
1999-10-16 00:08:45 -07:00
Richard Henderson 297c333589 gcse.c (hash_expr_1): Add in MEM_ALIAS_SET.
* gcse.c (hash_expr_1): Add in MEM_ALIAS_SET.
        (expr_equiv_p): Reject memories with different alias sets.

From-SVN: r30039
1999-10-16 00:08:27 -07:00
Greg McGary 9329983a8f lex.c (lang_init_options): Set flag_bounds_check as "unspecified".
* lex.c (lang_init_options): Set flag_bounds_check as "unspecified".
(lang_init): Set default for flag_bounds_check if still "unspecified".

From-SVN: r30038
1999-10-16 01:27:32 +00:00
Greg McGary 02f06e649d top.h (ffe_is_subscript_check_): Remove extern decl.
* top.h (ffe_is_subscript_check_): Remove extern decl.
(ffe_is_subscript_check, ffe_set_is_subscript_check): Remove macros.
* top.c (ffe_is_subscript_check_): Remove global variable.
(ffe_decode_option): Remove "(no-)bounds-check" flag handling.
Set flag_bounds_check for "(no-)fortran-bounds-check".
* com.c
(ffecom_arrayref_): s/ffe_is_subscript_check ()/flag_bounds_check/
(ffecom_char_args_x_): Ditto.

From-SVN: r30037
1999-10-16 01:26:10 +00:00
Greg McGary 13f9ac51e3 java-tree.h (flag_bounds_check): Remove extern decl.
* java-tree.h (flag_bounds_check): Remove extern decl.
* lang.c (flag_bounds_check): Remove global variable.
(lang_f_options): Remove "bounds-check" entry.
(lang_init_options): Default flag_bounds_check to "on".

From-SVN: r30036
1999-10-16 01:25:52 +00:00
Greg McGary a8aa79754d flags.h (flag_bounds_check, [...]): New extern decls.
* flags.h (flag_bounds_check, flag_bounded_pointers): New extern decls.
* toplev.c (flag_bounds_check, flag_bounded_pointers): New flags.
(f_options): Add "bounded-pointers" and "bounds-check" entries.
* c-lang.c (lang_init_options): Set flag_bounds_check as "unspecified".
(lang_init): Set default for flag_bounds_check if still "unspecified".

From-SVN: r30035
1999-10-16 01:25:01 +00:00
Michael Hayes a9d3cc3f1a * config/c4x/c4x.md (HF mode patterns): Add missing modes.
From-SVN: r30034
1999-10-16 00:43:59 +00:00
Michael Hayes 0dced2c729 c4x.md (movstrqi_small): Utilise parallel move instructions.
* config/c4x/c4x.md (movstrqi_small): Utilise parallel move
	instructions.

From-SVN: r30033
1999-10-16 00:39:15 +00:00
Michael Hayes 37641f7dbd Try again!?
From-SVN: r30032
1999-10-16 00:31:18 +00:00
Michael Hayes 6c7811a860 * config/c4x/c4x.md (*db_noclobber,
*decrement_and_branch_until_zero_noclobber): New patterns and
	associated splitters.

From-SVN: r30031
1999-10-16 00:29:20 +00:00
Michael Hayes 1f7c7f6f8c c4x.md (parallel instruction patterns): Rework constraints to keep reload happy.
* config/c4x/c4x.md (parallel instruction patterns): Rework
	constraints to keep reload happy.

From-SVN: r30030
1999-10-16 00:15:44 +00:00
Michael Hayes 57e5bce85b * config/c4x/c4x.md (*absqi2_noclobber, *negqi2_noclobber,
*one_cmplqi2_noclobber, *subqi3_noclobber, *andqi3_255_noclobber,
	*andqi3_65535_noclobber, *andnqi3_noclobber, *xorqi3_noclobber):
	Add new patterns and associated post-reload splitters.

From-SVN: r30029
1999-10-16 00:09:36 +00:00
Michael Hayes 3411b713f4 * config/c4x/c4x.c (c4x_emit_libcall): Use ggc_alloc_string.
From-SVN: r30028
1999-10-15 23:46:06 +00:00
Michael Hayes 3b5e8a16ba c4x.c (c4x_rptb_insert): Emit rpts_top pattern if appropriate.
* config/c4x/c4x.c (c4x_rptb_insert): Emit rpts_top pattern
	if appropriate.
	* config/c4x/c4x.md (rpts_top): New pattern and splitter.

From-SVN: r30027
1999-10-15 23:37:53 +00:00
Michael Hayes 1a616dfc0c c4x.c (src_operand): Check SYMBOL_REF and LABEL_REF memory mode.
* config/c4x/c4x.c (src_operand):  Check SYMBOL_REF and LABEL_REF
	memory mode.

From-SVN: r30026
1999-10-15 23:29:00 +00:00
Jeffrey A Law f9b5668e11 pa.c (move_operand): Rely on memory_address_p to determine the validity of non-indexed memory addresses.
* pa.c (move_operand): Rely on memory_address_p to determine the
        validity of non-indexed memory addresses.
        * pa.h (GO_IF_LEGITIMATE_ADDRESS): Allow LO_SUM with a symbolic
        operand in DFmode and SFmode when generating PA2.0 code.

From-SVN: r30025
1999-10-15 17:04:06 -06:00