Bernd Schmidt [Mon, 18 Oct 1999 08:40:20 +0000 (08:40 +0000)]
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.
Jeffrey A Law [Sun, 17 Oct 1999 21:27:56 +0000 (21:27 +0000)]
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.
Andrew MacLeod [Sun, 17 Oct 1999 09:21:25 +0000 (09:21 +0000)]
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.
Bernd Schmidt [Sun, 17 Oct 1999 06:47:27 +0000 (06:47 +0000)]
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.
Jeffrey A Law [Sun, 17 Oct 1999 06:28:22 +0000 (06:28 +0000)]
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.
Anthony Green [Sun, 17 Oct 1999 03:11:50 +0000 (03:11 +0000)]
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.
Greg McGary [Sat, 16 Oct 1999 01:25:01 +0000 (01:25 +0000)]
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".
Jeffrey A Law [Fri, 15 Oct 1999 23:04:06 +0000 (23:04 +0000)]
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.
* mips.c (function_prologue): Fix argument types.
* mips.md (casesi): Use emit_jump_insn for casesi_internal.
(casesi_internal): Write to the scratch register.
* cppexp.c (cpp_parse_escape): Make static. Change second arg
to U_CHAR **.
(parse_charconst): Delete unnecessary cast when calling
cpp_parse_escape.
(cpplib.h): Kill prototype of cpp_parse_escape.
Vladimir Makarov [Fri, 15 Oct 1999 08:19:37 +0000 (08:19 +0000)]
cse.c: Include hashtab.h instead of splay-tree.h (struct cse_reg_info): No longer use...
* cse.c: Include hashtab.h instead of splay-tree.h
(struct cse_reg_info): No longer use variant union. Add new
field "regno". All references changed to avoid union.
(cse_reg_info_used_list, cse_reg_info_used_list_end): New variables.
(free_cse_reg_info): Remove.
(hash_cse_reg_info, cse_reg_info_equal_p): New functions.
(get_cse_reg_info): Revamp to use expandable hash tables instead
of splay trees. Initialize new fields in cse_reg_info structure.
(new_basic_block): Similarly.
* genrecog.c (message_with_line): Prototype.
(validate_pattern): Pass along the set for the dest, not a flag.
Fix non-lvalue message. Don't warn for VOIDmode SET_DEST of CALL.
Check for PC/CC0 as sources.
(nodes_identical): Check for children position match before
allowing the combination.
* rtl.c (read_rtx): Track line number across \\\n.
Anthony Green [Fri, 15 Oct 1999 06:07:41 +0000 (06:07 +0000)]
libtool-version: Catch up by incrementing current.
* libtool-version: Catch up by incrementing current.
* configure.host: Disable use of GCJ_PROPERTIES for mips-tx39.
* configure, include/config.h.in: Rebuilt.
* acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine.
* configure.in: Added --disable-getenv-properties and new define
`DISABLE_GETENV_PROPERTIES'.
* prims.cc (PROCESS_GCJ_PROPERTIES): Define.
(next_property_key): New function.
(next_property_value): New function.
(process_gcj_properties): New function.
(JvRunMain): Call process_gcj_properties.
(_JvRunMain): Ditto.
* java/lang/natSystem.cc (init_properties): Set properties defined
in GCJ_PROPERTIES. Also add 1.2 style versioning properties.
* include/java-props.h: New file.
* java/lang/natSystem.cc (init_properties): Add new properties to
conform with Java Product Versioning Specification.
Jan Hubicka [Fri, 15 Oct 1999 04:50:09 +0000 (06:50 +0200)]
fold-const.c (fold): Move bit_rotate code to the EXPR_PLUS case, falltrought to assocate code.
* fold-const.c (fold): Move bit_rotate code to the EXPR_PLUS case,
falltrought to assocate code.
Convert XOR to OR in code like (a&c1)^(a&c2) where c1 and c2 don't have
bits in common.
* combine.c (simplify_logical): Convert XOR to IOR if operands have
no bits in common; remove XOR to ROTATE conversion.
sparc.md (*): Use {nonimmediate,register}_operand as appropriate instead of general_operand...
* sparc.md (*): Use {nonimmediate,register}_operand as appropriate
instead of general_operand in a SET_DEST. Use const_double_operand
instead of an explicit test against CONST_DOUBLE.
(movsf_const_lo): Add missing register mode.
(goto_handler_and_restore): Add auxiliary test for Pmode.
(flush): Adjust to use address_operand.
(return_sf_no_fpu): Add missing output constraint.
flow.c (propagate_block): Use free_EXPR_LIST_list instead of zapping mem_set_list.
* flow.c (propagate_block): Use free_EXPR_LIST_list instead of
zapping mem_set_list.
(invalidate_mems_from_autoinc): Use free_EXPR_LIST_node.
(mark_set_1, mark_used_regs): Likewise.
Gerald Pfeifer [Thu, 14 Oct 1999 16:41:27 +0000 (16:41 +0000)]
invoke.texi: Label -Wbad-function-cast...
* invoke.texi: Label -Wbad-function-cast, -Wmissing-prototypes,
-Wnested-externs, -Wstrict-prototypes, and -Wtraditional as C only
options. Also add a new item "C-only Warning Options" to the
option summary.
Stephane Carrez [Thu, 14 Oct 1999 10:21:27 +0000 (12:21 +0200)]
stor-layout.c (layout_union): Use HOST_WIDE_INT for const_size...
* stor-layout.c (layout_union): Use HOST_WIDE_INT for const_size;
check for member bit-size overflow and use var_size if it occurs.
(layout_record): Use bitsize_int() to define the type size in bits.
Likewise for computation and assignment to DECL_FIELD_BITPOS.
(layout_decl): Likewise when assigning to DECL_SIZE.
* genrecog.c (special_mode_pred_table): New.
(NUM_SPECIAL_MODE_PREDS): New.
(find_operand): New.
(validate_pattern): New argument `insn'. Warn for assignment to
any predicate accepting non-lvalues. Conditionaly warn for
match_operand without a mode. Try much harder to match source
and destination modes on a set.
* tm.texi (SPECIAL_MODE_PREDICATES): Document.