Jeffrey A Law
8f04d345d0
* haifa-sched.c (get_visual_tbl_length): Fix off-by-one error.
...
From-SVN: r28837
1999-08-24 22:58:36 -06:00
Mumit Khan
411c6851c3
mkfixinc.sh: Don't fix uwin headers.
...
* fixinc/mkfixinc.sh: Don't fix uwin headers.
* i386/uwin.h (MD_STARTFILE_PREFIX): Define.
(LINK_SPEC): Add -u _main when building executables.
(ASM_DECLARE_FUNCTION): Update from Cygwin.
(ASM_FILE_END): Use the default for ix86-pe.
* i386/xm-uwin.h (HAVE_BCOPY): Undefine.
From-SVN: r28836
1999-08-24 22:43:17 -06:00
Bernd Schmidt
cafba4956b
gcse.c (find_avail_set): Follow chains of register-register copies.
...
* gcse.c (find_avail_set): Follow chains of register-register copies.
Use oprs_not_set_p to guarantee that the returned value can be
substituted.
(cprop_insn): Don't verify the return value of find_avail_set with
oprs_not_set_p.
From-SVN: r28835
1999-08-24 22:24:36 -06:00
Bernd Schmidt
abd535b681
gcse.c (cprop_jump): New function, broken out of cprop_insn.
...
* gcse.c (cprop_jump): New function, broken out of cprop_insn.
(cprop_cc0_jump): New function.
(cprop_insn): Break out new function cprop_jump and use it.
Also use cprop_cc0_jump for machines with CC0.
(cprop): Don't crash if cprop_insn turned the insn into a NOTE.
From-SVN: r28834
1999-08-24 21:30:45 -06:00
Art Haas
b6c8689d9b
final.c (output_addr_const): Handle case where ASM_OPEN_PAREN and ASM_CLOSE_PAREN are empty strings.
...
* final.c (output_addr_const): Handle case where ASM_OPEN_PAREN
and ASM_CLOSE_PAREN are empty strings.
From-SVN: r28833
1999-08-24 20:52:15 -06:00
Fred Fish
d059a2395d
Makefile.in (PREPROCESSOR_DEFINES): New macro.
...
* Makefile.in (PREPROCESSOR_DEFINES): New macro.
(protoize.o): Use PREPROCESSOR_DEFINES and DRIVER_DEFINES.
(unprotoize.o): Ditto.
(test-protoize-simple): Don't define STD_PROTO_DIR.
* protoize.c: Use PARAMS rather than PROTO. Minor whitespace
changes to make 'test-protoize-simple' pass.
(STD_PROTO_DIR): Remove define.
(STANDARD_EXEC_PREFIX): Supply default define.
(standard_exec_prefix): New variable, init to STANDARD_EXEC_PREFIX.
(target_machine): New variable, init to DEFAULT_TARGET_MACHINE.
(target_version): New variable, init to DEFAULT_TARGET_VERSION.
(GET_ENV_PATH_LIST): New macro.
(default_syscalls_dir): No longer initialized to STD_PROTO_DIR.
(do_processing): Initialize default_syscalls_dir using new
macros. Use it to initialize syscalls_absolute_filename.
Co-Authored-By: Geoff Keating <geoffk@cygnus.com>
From-SVN: r28832
1999-08-25 02:49:56 +00:00
Bryce McKinlay
d55d01bdf8
* posix-threads.cc: Include <errno.h>.
...
From-SVN: r28831
1999-08-25 01:46:23 +01:00
Richard Henderson
1f081ffb7d
jump.c (jump_optimize_1): Do cmov opt on any single-set; force B into a register before emit_conditional_move.
...
* jump.c (jump_optimize_1): Do cmov opt on any single-set; force
B into a register before emit_conditional_move.
From-SVN: r28830
1999-08-24 17:00:03 -07:00
Richard Henderson
abe4f192b7
fold-const.c (fold): Reassociate (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c).
...
* fold-const.c (fold): Reassociate (+ (+ (* a b) c) (* d e))
as (+ (+ (* a b) (* d e)) c). Factor a common power-of-two
multiplicand out of (+ (* a b) (* c d)).
From-SVN: r28829
1999-08-24 15:37:34 -07:00
Bob Manson
f2a1bc0267
haifa-sched.c (split_hard_reg_notes): Move to flow.c
...
* haifa-sched.c (split_hard_reg_notes): Move to flow.c
(new_insn_dead_notes): Likewise.
(update_n_sets): Likewise.
(update_flow_info): Move to flow.c, renamed to update_life_info;
extend to handle multiple source insns.
* flow.c: Include resource.h
(unlink_insn_chain): New.
(split_hard_reg_notes): New.
(maybe_add_dead_note): New.
(maybe_add_dead_note_use): New.
(find_insn_with_note): New.
(new_insn_dead_notes): New.
(update_n_sets): New.
(sets_reg_or_subreg_1, sets_reg_or_subreg): New.
(maybe_remove_dead_notes): New.
(update_life_info): New.
(prepend_reg_notes): New.
(replace_insns): New.
* output.h (update_life_info): Declare.
* recog.c (split_block_insns): Use update_life_info.
* resource.c (find_free_register): Use reg_alloc_order, don't use
fixed regs, make sure the mode is supported, don't use new regs.
(reg_dead_p): New.
* rtl.h (replace_insns): Declare.
Co-Authored-By: Richard Henderson <rth@cygnus.com>
From-SVN: r28828
1999-08-24 15:35:55 -07:00
Jason Merrill
952d33b8db
new
...
From-SVN: r28827
1999-08-24 17:25:13 -04:00
Jason Merrill
df39af7db0
call.c (build_conditional_expr): Fix typo.
...
* call.c (build_conditional_expr): Fix typo.
* typeck.c (build_modify_expr, COND_EXPR): Make sure we've got an
lvalue before trying to mess with the sides.
* error.c (dump_expr, CONVERT_EXPR): Handle (void) properly.
From-SVN: r28826
1999-08-24 17:23:56 -04:00
Nathan Sidwell
2ac84cfe01
expr.c (expand_expr): Cope with COND_EXPRs with one non-returning branch.
...
* expr.c (expand_expr): Cope with COND_EXPRs with one
non-returning branch.
From-SVN: r28825
1999-08-24 16:49:12 -04:00
Mark Mitchell
1da93fe012
expr.c (store_expr): Always pass down the target, even when not doing CSE.
...
* expr.c (store_expr): Always pass down the target, even when not
doing CSE.
From-SVN: r28824
1999-08-24 18:09:10 +00:00
Nick Clifton
7a846a6c88
Handle DFmode and DImode constant addresses.
...
From-SVN: r28823
1999-08-24 13:58:41 +00:00
Kaveh R. Ghazi
69277eec77
genattr.c (function_unit_desc): Constify a char*.
...
* genattr.c (function_unit_desc): Constify a char*. Add prototype.
(main): Add prototypes.
* genattrtab.c (substitute_address, write_const_num_delay_slots,
attr_eq, attr_numeral, attr_equal_p, attr_copy_rtx): Prototype.
(write_attr_get): Emit prototypes along with function definition.
(write_eligible_delay): Mark a parameter with ATTRIBUTE_UNUSED.
(write_complex_function): Emit static prototype along with
function definition.
* genemit.c (gen_split): Emit prototypes along with function
definition.
* genoutput.c (output_epilogue): Add prototype to `insn_outfun'.
Likewise for predicates and `insn_operand_predicate'.
(process_template): Emit static prototype along with function
definition.
* genrecog.c (make_insn_sequence): Constify a char*. Add
prototypes for get_split_*().
(write_subroutine): Emit prototypes along with function
definition.
From-SVN: r28822
1999-08-24 13:34:04 +00:00
Kaveh R. Ghazi
33f58a4e96
noncompile.exp: Load_lib c-torture.exp.
...
* noncompile/noncompile.exp: Load_lib c-torture.exp.
(postbase_with_opts): New proc to loop over TORTURE_OPTIONS and
call `postbase' for each one. All callers of `postbase' changed
to call this instead.
From-SVN: r28821
1999-08-24 13:21:46 +00:00
Bernd Schmidt
bf6bb899e1
Fix more problems from GC diffs
...
From-SVN: r28820
1999-08-24 12:05:09 +00:00
Philippe De Muyter
55247fce70
* strtoul.c (strtoul): Add parentheses around && within ||.
...
From-SVN: r28819
1999-08-24 02:51:03 -06:00
Jeffrey A Law
d60eaeffd5
expr.c (convert_move): Fix arguments to TRULY_NOOP_TRUNCATION call.
...
* expr.c (convert_move): Fix arguments to TRULY_NOOP_TRUNCATION
call.
From-SVN: r28818
1999-08-24 02:48:27 -06:00
Herman A.J. ten Brugge
5dd34fe0d5
* jump.c (delete_barrier_successors) Match (set (pc) (pc)) insn
...
exactly.
From-SVN: r28817
1999-08-24 02:44:47 -06:00
Jeff Law
bf8a5a359c
Daily bump.
...
From-SVN: r28815
1999-08-24 01:46:43 -06:00
Matthias Klose
21c8d03dde
cpp.texi: Add a node documenting macro varargs (copied from extend.texi).
...
* cpp.texi: Add a node documenting macro varargs (copied
from extend.texi).
From-SVN: r28814
1999-08-23 23:37:39 -06:00
Zack Weinberg
3ed4f5ed4b
cppspec.c: Put a null pointer at the end of the new argv.
...
1999-08-23 22:23 -0700 Zack Weinberg <zack@bitmover.com>
* cppspec.c: Put a null pointer at the end of the new argv.
From-SVN: r28813
1999-08-24 05:31:03 +00:00
Mumit Khan
732d9b8ce2
* g++spec.c (lang_specific_driver): Add room for NULL in arglist.
...
From-SVN: r28812
1999-08-23 22:20:18 -06:00
Jason Merrill
bbd0d54ab3
exception.cc (__cplus_type_matcher): Call __throw_type_match_rtti_2.
...
* exception.cc (__cplus_type_matcher): Call __throw_type_match_rtti_2.
Return arbitrary pointer or NULL.
(check_eh_spec): Call __throw_type_match_rtti_2.
* tinfo.h (*::dcast): Return int. Add valp parm.
* tinfo.cc (*::dcast): Likewise. Adjust to allow for null pointers.
* tinfo2.cc (__throw_type_match_rtti_2): Likewise.
(__throw_type_match_rtti): Now just a wrapper.
* except.c: Lose CatchMatch, FirstExceptionMatch, and Unwind.
(init_exception_processing): Don't initialize them.
From-SVN: r28811
1999-08-24 00:16:06 -04:00
Tom Tromey
657ac7664c
boehm.cc: Undefine TRUE and FALSE.
...
* boehm.cc: Undefine TRUE and FALSE.
* posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
From-SVN: r28810
1999-08-24 04:01:06 +00:00
Jeffrey A Law
7b5efe21a0
configure.in: Remove code to select/de-select the haifa scheduler.
...
* configure.in: Remove code to select/de-select the haifa
scheduler. Every scheduled port gets haifa now.
* configure: Rebuilt.
* flags.h, genattrtab.c, rtl.h, toplev.c: Remove HAIFA ifdefs.
* sched.c Deleted.
* Makefile.in: Corresponding changes.
From-SVN: r28809
1999-08-23 21:28:57 -06:00
Paul Burchard
8614a1d6a0
* decl.c (check_default_argument): Fix typo.
...
From-SVN: r28808
1999-08-23 18:19:01 -04:00
Bernd Schmidt
c5c60e15bc
Fix sparc compilation failure
...
From-SVN: r28807
1999-08-23 16:09:52 +00:00
Jeff Law
34e456768c
Daily bump.
...
From-SVN: r28806
1999-08-23 01:45:12 -06:00
Alexandre Petit-Bianco
d77613be8b
re GNATS gcj/30 (gcj not reporting unimplemented methods)
...
Sun Aug 22 11:07:41 1999 Alexandre Petit-Bianco <apbianco@cygnus.com>
* parse.y (check_method_redefinition): Changed leading comment.
(check_abstract_method_definitions): New function.
(java_check_abstract_method_definitions): New function.
(java_check_regular_methods): Call it.
(verify_constructor_super): Fixed indentation.
(lookup_method_invoke): Likewise.
(This fixes the Java net PR #30 ,
http://sourceware.cygnus.com/ml/java-prs/1999-q3/msg00034.html )
From-SVN: r28805
1999-08-22 11:38:07 -07:00
Mark Mitchell
9d9169deaa
cp-tree.def (STMT_EXPR): Fix typo in node name.
...
* cp-tree.def (STMT_EXPR): Fix typo in node name.
* dump.c (dump_next_stmt): New function.
(dequeue_and_dump): Use it.
* pt.c (tsubst_copy): Make sure to initialize return value for a
STMT_EXPR, even when processing_template_decl.
* semantics.c (finish_stmt_expr): A statement-expression whose
last statement is not an expression-statement has type `void'.
From-SVN: r28804
1999-08-22 18:11:40 +00:00
Alexandre Oliva
b78639f6f2
Added missing whitespace in function calls within adaptors
...
Pointed out by Tom
From-SVN: r28803
1999-08-22 16:19:31 +00:00
Jeff Law
5b02bbf7bb
Daily bump.
...
From-SVN: r28800
1999-08-22 01:45:08 -06:00
Tom Tromey
33e8c77e61
re GNATS libgcj/40 (wait(timeout) wrongly throws IllegalMonitorState exception)
...
* posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
result. PR 40.
From-SVN: r28799
1999-08-22 02:37:04 +00:00
Alexandre Oliva
ccfe7e4650
configure.in: Check for in_addr_t in netinet/in.h too.
...
* configure.in: Check for in_addr_t in netinet/in.h too. Check
for ip_mreq too.
* acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
(HAVE_STRUCT_IP_MREQ): Added.
* configure, include/config.h.in: Rebuilt.
* java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
if needed.
* java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
Disable if ip_mreq is not available.
From-SVN: r28798
1999-08-21 14:26:44 +00:00
Alexandre Oliva
988f5b7014
Change in_addr_t default to jint
...
From-SVN: r28796
1999-08-21 13:35:32 +00:00
Alexandre Oliva
a3e174eae5
configure.in: Check types ssize_t and in_addr_t.
...
* configure.in: Check types ssize_t and in_addr_t.
* acconfig.h: Undefine them.
* configure, include/config.h.in: Rebuilt.
From-SVN: r28793
1999-08-21 13:15:55 +00:00
Alexandre Oliva
e07eb72abc
natSystem.cc (getpwuid_adaptor): New overloaded function that detects the signature of getpwuid_r.
...
* java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
function that detects the signature of getpwuid_r.
(init_properties): Use it.
* java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
(toString): Use it.
From-SVN: r28792
1999-08-21 12:49:39 +00:00
Alexandre Oliva
fb82082db3
natSystem.cc (getpwuid_adaptor): New overloaded function that detects the signature of getpwuid_r.
...
* java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
function that detects the signature of getpwuid_r.
(init_properties): Use it.
* java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
(toString): Use it.
From-SVN: r28790
1999-08-21 11:56:24 +00:00
Jeff Law
5b33370d63
Daily bump.
...
From-SVN: r28788
1999-08-21 01:45:08 -06:00
Geoffrey Keating
20300b056d
The 'xxx may be clobbered by longjmp/vfork' warnings are part of
...
by -Wuninitialized.
From-SVN: r28787
1999-08-21 05:31:45 +00:00
Jim Wilson
8328efa357
Fix cse.c/resource.c register lifetime inconsistency.
...
* resource.c (mark_target_live_regs): Use
PIC_OFFSET_TABLE_REG_CALL_CLOBBERED.
From-SVN: r28786
1999-08-20 17:54:22 -07:00
Kaveh R. Ghazi
1f9a015e83
rtl.c (rtx_class, [...]): Constify.
...
* rtl.c (rtx_class, note_insn_name, reg_note_name): Constify.
* rtl.h (rtx_class, reg_note_name, note_insn_name): Likewise.
* genopinit.c (gen_insn): Use accessor macro, not `rtx_class'.
From-SVN: r28785
1999-08-20 23:11:19 +00:00
Kaveh R. Ghazi
6f7d635c0e
rtl.h (rtx_format): Constify a char*.
...
* rtl.h (rtx_format): Constify a char*.
* rtl.c (rtx_format): Likewise.
(copy_rtx, copy_most_rtx, read_rtx): Likewise.
(init_rtl): Use accessor macro, not `rtx_format'.
* alias.c (rtx_equal_for_memref_p, find_symbolic_term): Constify a
char*.
* caller-save.c (mark_referenced_regs): Likewise.
* combine.c (subst, make_compound_operation, known_cond,
gen_rtx_combine, update_table_tick, get_last_value_validate,
use_crosses_set_p, mark_used_regs_combine, move_deaths): Likewise.
* cse.c (rtx_cost, mention_regs, canon_hash, exp_equiv_p,
refers_to_p, canon_reg, fold_rtx, cse_process_notes,
count_reg_usage): Likewise.
* emit-rtl.c (gen_rtx, copy_rtx_if_shared, reset_used_flags):
Likewise.
* final.c (leaf_renumber_regs_insn): Likewise.
* flow.c (mark_used_regs, find_use_as_address, dump_flow_info,
dump_edge_info, count_reg_references): Likewise.
* function.c (fixup_var_refs_1, walk_fixup_memory_subreg,
fixup_stack_1, purge_addressof_1, instantiate_virtual_regs_1):
Likewise.
* gcse.c (oprs_unchanged_p, hash_expr_1, expr_equiv_p,
oprs_not_set_p, expr_killed_p, compute_transp, find_used_regs,
add_label_notes): Likewise.
* genattrtab.c (attr_rtx, attr_copy_rtx, encode_units_mask,
clear_struct_flag, count_sub_rtxs, count_alternatives,
compares_alternatives_p, contained_in_p, walk_attr_value,
write_expr_attr_cache): Likewise.
* genconfig.c (walk_insn_part): Likewise.
* genemit.c (max_operand_1, gen_exp): Likewise.
* genextract.c (walk_rtx): Likewise.
* genflags.c (num_operands): Likewise.
* genoutput.c (scan_operands): Likewise.
* genpeep.c (match_rtx): Likewise.
* genrecog.c (add_to_sequence): Likewise.
* haifa-sched.c (may_trap_exp, sched_analyze_2, attach_deaths):
Likewise.
* integrate.c (save_constants, copy_for_inline,
copy_rtx_and_substitute, subst_constants, restore_constants):
Likewise.
* jump.c (mark_jump_label, invert_exp, redirect_exp,
rtx_renumbered_equal_p, rtx_equal_for_thread_p): Likewise.
* local-alloc.c (contains_replace_regs, memref_referenced_p):
Likewise.
* loop.c (record_excess_regs, rtx_equal_for_loop_p,
add_label_notes, replace_call_address, count_nonfixed_reads,
invariant_p, find_single_use_in_loop, find_mem_givs,
find_life_end, maybe_eliminate_biv_1, update_reg_last_use):
Likewise.
* print-rtl.c (reg_names, print_rtx): Likewise.
* recog.c (validate_replace_rtx_1, find_single_use_1): Likewise.
* reg-stack.c (stack_regs_mentioned_p, record_label_references,
record_reg_life_pat, swap_rtx_condition, goto_block_pat,
print_blocks): Likewise.
* regclass.c (fix_register, record_address_regs,
reg_scan_mark_refs): Likewise.
* regmove.c (stable_but_for_p): Likewise.
* reload.c (loc_mentioned_in_p, operands_match_p,
find_reloads_toplevsubst_reg_equivs, find_reloads_address_1,
copy_replacements, refers_to_regno_for_reload_p,
refers_to_mem_for_reload_p, find_inc_amount, regno_clobbered_p,
reload_when_needed_name, reg_class_names, debug_reload_to_stream):
Likewise.
* reload1.c (eliminate_regs, scan_paradoxical_subregs,
delete_address_reloads_1, count_occurrences,
reload_cse_mem_conflict_p, reload_combine_note_use,
add_auto_inc_notes): Likewise.
* resource.c (mark_referenced_resources, mark_set_resources):
Likewise.
* rtlanal.c (rtx_unstable_p, rtx_varies_p, rtx_addr_varies_p,
reg_mentioned_p, regs_set_between_p, modified_between_p,
modified_in_p, refers_to_regno_p, reg_overlap_mentioned_p,
rtx_equal_p, volatile_insn_p, volatile_refs_p, side_effects_p,
may_trap_p, inequality_comparisons_p, replace_rtx, replace_regs,
jmp_uses_reg_or_mem, for_each_rtx, regno_use_in): Likewise.
* sched.c (sched_analyze_2, attach_deaths): Likewise.
* stupid.c (stupid_mark_refs): Likewise.
* unroll.c (remap_split_bivs): Likewise.
* varasm.c (mark_constants): Likewise.
* a29k/a29k.c (uses_local_reg_p): Likewise.
* alpha/alpha.c (summarize_insn): Likewise.
* arm/arm.c (symbol_mentioned_p, label_mentioned_p,
eliminate_lr2ip): Likewise.
* arm/thumb.c (symbol_mentioned_p, label_mentioned_p): Likewise.
* i386/i386.c (symbolic_reference_mentioned_p, copy_all_rtx,
reg_mentioned_in_mem): Likewise.
* ns32k/ns32k.c (global_symbolic_reference_mentioned_p,
symbolic_reference_mentioned_p): Likewise.
* romp/romp.c (unsigned_comparisons_p, hash_rtx): Likewise.
* sh/sh.c (regs_used, mark_use): Likewise.
* vax/vax.c (vax_rtx_cost): Likewise.
From-SVN: r28784
1999-08-20 23:05:25 +00:00
Kaveh R. Ghazi
a4ec8d12f1
machmode.h (mode_name): Constify a char*.
...
* machmode.h (mode_name): Constify a char*.
* rtl.c (mode_name): Likewise.
* genopinit.c (gen_insn): Use accessor macro, not `mode_name'.
* optabs.c (init_libfuncs): Constify a char*.
* print-tree.c (mode_name): Remove redundant declaration.
(print_node): Use accessor macro, not `mode_name'.
* reload1.c (dump_needs): Constify a char*. Use accessor macro,
not `mode_name'.
(new_spill_reg): Constify a char*.
* tree.c (mode_name): Remove redundant declaration.
From-SVN: r28783
1999-08-20 22:44:50 +00:00
Kaveh R. Ghazi
5f06c983f3
rtl.c (rtx_name): Constify a char*.
...
* rtl.c (rtx_name): Constify a char*.
* rtl.h (rtx_name, fix_sched_param): Likewise.
* gmicro/gmicro.c (rtx_name): Remove redundant declaration.
(mypr): Use accessor macro, not `rtx_name'.
* genemit.c (print_code): Constify a char*.
* genopinit.c (gen_insn): Use accessor macro, not `rtx_name'.
* genpeep.c (print_code): Constify a char*.
* genrecog.c (print_code): Likewise.
* graph.c (start_fct, start_bb, node_data, draw_edge, end_fct,
end_bb): Add static prototype.
(draw_edge): Constify a char*.
(end_bb): Remove unused parameter.
* haifa-sched.c (fix_sched_param, safe_concat, print_exp
print_block_visualization): Constify a char*.
From-SVN: r28782
1999-08-20 22:32:54 +00:00
Mark Mitchell
22e9174f54
semantics.c (finish_stmt_expr): Fix typo in comment.
...
* semantics.c (finish_stmt_expr): Fix typo in comment.
* tree.c (search_tree): Handle EXIT_EXPR, LOOP_EXPR.
(mapcar): Likewise.
* init.c (build_vec_delete_1): Make the children of a permanent
BIND_EXPR permanent.
* pt.c (register_specialization): Don't register a specialization
more than once.
From-SVN: r28781
1999-08-20 22:07:22 +00:00
Mark Mitchell
b61148dd4f
* c-common.c (c_get_alias_set): Update comment.
...
From-SVN: r28780
1999-08-20 21:57:38 +00:00