Gavin Romig-Koch [Thu, 26 Aug 1999 20:47:25 +0000 (20:47 +0000)]
For gcc:
* tree.c (lang_unsave_expr_now) : Correct return type.
* tree.h (lang_unsave_expr_now) : Same.
For gcc/cp:
* cp-tree.h (cplus_unsave_expr_now) : Correct return type.
* tree.h (cplus_unsave_expr_now) : Same.
From-SVN: r28906
Jeff Law [Thu, 26 Aug 1999 19:19:58 +0000 (13:19 -0600)]
Fix typo in last entry.
From-SVN: r28905
Jeffrey A Law [Thu, 26 Aug 1999 19:15:22 +0000 (19:15 +0000)]
pa.md (cint_ok_for_move): Use CONST_INT_OK_FOR_LETTER_P macros instead of duplicating code.
* pa.md (cint_ok_for_move): Use CONST_INT_OK_FOR_LETTER_P macros
instead of duplicating code.
From-SVN: r28904
Tom Tromey [Thu, 26 Aug 1999 18:23:33 +0000 (18:23 +0000)]
gjavah.c (print_cxx_classname): Print "::" before qualified name.
* gjavah.c (print_cxx_classname): Print "::" before qualified
name.
http://sourceware.cygnus.com/cgi-bin/gnatsweb.pl?cmd=view&database=java&pr=36
From-SVN: r28902
Bernd Schmidt [Thu, 26 Aug 1999 17:33:35 +0000 (17:33 +0000)]
Ignore no-ops in cprop pass.
From-SVN: r28901
Craig Burley [Thu, 26 Aug 1999 17:31:13 +0000 (17:31 +0000)]
New test
From-SVN: r28900
Craig Burley [Thu, 26 Aug 1999 17:25:27 +0000 (17:25 +0000)]
New test
From-SVN: r28899
Craig Burley [Thu, 26 Aug 1999 17:13:42 +0000 (17:13 +0000)]
New test
From-SVN: r28898
Gregg Townsend [Thu, 26 Aug 1999 17:00:57 +0000 (17:00 +0000)]
verify.c (verify_jvm_instructions): Don't check instruction validity beyond end of method.
Wed Aug 25 15:37:15 1999 Gregg Townsend <gmt@cs.arizona.edu>
* verify.c (verify_jvm_instructions): Don't check instruction
validity beyond end of method.
From-SVN: r28897
Craig Burley [Thu, 26 Aug 1999 16:54:30 +0000 (16:54 +0000)]
New tests
From-SVN: r28895
Alexandre Petit-Bianco [Thu, 26 Aug 1999 16:51:49 +0000 (16:51 +0000)]
re GNATS gcj/32 (A boolean expression containing two qualified expressions makes jc1 die.)
Thu Aug 26 09:10:58 1999 Alexandre Petit-Bianco <apbianco@cygnus.com>
* parse.y (lookup_cl): Changed leading comment. Now does its best
to set the column number.
(qualify_ambiguous_name): Take WFL wrappers into account.
This patch fixes the Java net PR #32.
From-SVN: r28894
Zack Weinberg [Thu, 26 Aug 1999 16:49:42 +0000 (16:49 +0000)]
tree.h: fancy_abort always takes three args.
1999-08-26 09:42 -0700 Zack Weinberg <zack@bitmover.com>
* tree.h: fancy_abort always takes three args.
* resource.c: Move include of system.h before toplev.h.
From-SVN: r28893
Craig Burley [Thu, 26 Aug 1999 15:24:57 +0000 (15:24 +0000)]
New test
From-SVN: r28892
Nick Clifton [Thu, 26 Aug 1999 08:47:03 +0000 (08:47 +0000)]
Accept LABEL_REFs as well as SYMBOL_REFs in mem_loc_descriptor()
From-SVN: r28891
Jeff Law [Thu, 26 Aug 1999 07:45:12 +0000 (01:45 -0600)]
Daily bump.
From-SVN: r28890
Zack Weinberg [Thu, 26 Aug 1999 05:18:44 +0000 (05:18 +0000)]
system.h: Don't redefine abort or trim_filename.
1999-08-25 22:10 -0700 Zack Weinberg <zack@bitmover.com>
* system.h: Don't redefine abort or trim_filename.
* rtl.h: Define abort to fancy_abort (__FILE__, __LINE__, 0)
or fancy_abort (__FILE__, __LINE__, __FUNCTION__) depending on
whether or not __FUNCTION__ is available.
* tree.h: Duplicate rtl.h's definition of abort, for files
that don't include rtl.h. Delete all code to perform type
checking with a compiler other than GCC.
* varray.h: Delete all code to perform type checking with a
compiler other than GCC. Make VARRAY_CHECK() always evaluate
its arguments exactly once, using a statement expression.
Adjust the VARRAY_<type> accessor macros to match.
* toplev.h (fatal_insn, fatal_insn_not_found): Kill.
(_fatal_insn, _fatal_insn_not_found): New fns, take info on
caller's location. Define fatal_insn and fatal_insn_not_found
as macros that use _fatal_insn and _fatal_insn_not_found.
(fancy_abort, trim_filename): Kill prototypes.
* rtl.c (trim_filename): Move here from toplev.c.
(fancy_abort): New function.
(DIR_SEPARATOR): Provide default definition.
* tree.c (tree_check_failed, tree_class_check_failed): Go
through fancy_abort.
(tree_check, tree_class_check, cst_or_constructor_check,
expr_check): Delete.
* varray.c (varray_check_failed): New function.
* toplev.c (fatal_insn, fatal_insn_not_found): Replace with
_fatal_insn and _fatal_insn_not_found. Go through
fancy_abort.
(trim_filename, fancy_abort): Delete.
* builtins.c (expand_builtin_args_info): Report ICE with abort.
* except.c (start_catch_handler): Report ICE with error/abort
combo.
* final.c (output_operand_lossage): Likewise.
* flow.c (verify_flow_info): Likewise.
* gcc.c: Prototype fatal.
* gengenrtl.c: Undef abort after including rtl.h not system.h.
* genattr.c, genattrtab.c, genemit.c, genextract.c,
genflags.c, genopinit.c, genoutput.c, genpeep.c, genrecog.c:
Don't define fancy_abort.
From-SVN: r28889
Mark Mitchell [Thu, 26 Aug 1999 04:19:52 +0000 (04:19 +0000)]
decl.c (grokdeclarator): Amend comment.
* decl.c (grokdeclarator): Amend comment.
* except.c (expand_start_catch_block): Call push_template_decl for
catch-block parameters.
* method.c (synthesize_method): Build an empty compound statement
for the body of a constructor.
From-SVN: r28888
Jason Merrill [Thu, 26 Aug 1999 02:25:45 +0000 (22:25 -0400)]
new
From-SVN: r28887
Jason Merrill [Thu, 26 Aug 1999 02:19:26 +0000 (02:19 +0000)]
tree.c (cp_build_qualified_type_real): If we're asking for the same quals we already have, just return.
* tree.c (cp_build_qualified_type_real): If we're asking for the
same quals we already have, just return.
From-SVN: r28886
Richard Henderson [Thu, 26 Aug 1999 00:59:14 +0000 (17:59 -0700)]
optabs.c (emit_cmp_and_jump_insns): Be more thorough in canonization.
* optabs.c (emit_cmp_and_jump_insns): Be more thorough in
canonization.
From-SVN: r28885
Richard Henderson [Wed, 25 Aug 1999 22:40:16 +0000 (15:40 -0700)]
m88k.h (VERSION_INFO2): Kill.
* m88k.h (VERSION_INFO2): Kill.
(VERSION_STRING): Kill.
(TM_RCS_ID): Kill.
(VERSION_INFO1): Tidy.
(TARGET_VERSION): Update.
* m88k/dgux.h (VERSION_INFO2): Kill.
(ASM_FIRST_LINE): Adjust for death of VERSION_STRING.
* m88k/luna.h (VERSION_INFO1): Tidy.
* m88k/sysv4.h (VERSION_INFO1): Likewise.
* m88k.c (out_rcs_id, tm_rcs_id): Kill.
(output_file_start): Adjust for death of VERSION_STRING.
From-SVN: r28881
Mark Mitchell [Wed, 25 Aug 1999 22:07:18 +0000 (22:07 +0000)]
cp-tree.def (SUBOBJECT): New tree node.
* cp-tree.def (SUBOBJECT): New tree node.
* cp-tree.h (CLEANUP_P): New macro.
(SUBOBJECT_CLEANUP): Likewise.
(keep_next_level): Add parameter.
(get_temp_regvar): Don't declare.
(emit_base_init): Remove parameter.
(expand_aggr_init): Rename to build_aggr_init.
(expand_vec_init): Rename to build_vec_init.
(do_pushlevel): Remove.
(do_poplevel): Likewise.
(finish_cleanup): New function.
(finish_subobject): Likewise.
(stmts_are_full_exprs_p): New variable.
* decl.c (keep_next_level): Add parameter.
(cp_finish_decl): Use build_aggr_init, not
expand_aggr_init. Use finish_expr_stmt to expand the code.
(expand_static_init): Use tree-generating, not RTL-generating,
functions to handle the initialization.
(start_function): Remove dead code. Always have a momentary
obstack inside the function, even before hitting the first curly
brace.
(cplus_expand_expr_stmt): Move calls to
expand_{start,end}_target_temps into semantics.c.
(cp_function): Add stmts_are_full_exprs_p.
(push_cp_function_context): Save it.
(pop_cp_function_context): Restore it.
* decl2.c (get_temp_regvar): Move to init.c.
(do_static_initialization): Use build_{aggr,vec}_init.
(do_static_destruction): Fix typo in comment.
* dump.c (dequeue_and_dump): Handle INIT_EXPR.
* except.c (expand_throw): Use create_temporary_var.
* expr.c (cplus_expand_expr): Use build_{aggr,vec}_init.
* init.c (expand_vec_init_try_block): Remove.
(expand_vec_init_catch_clause): Likewise.
(get_temp_regvar): New function.
(begin_init_stmts): Likewise.
(finish_init_stmts): Likewise.
(perform_member_init): Use build_{aggr,vec}_init. Build up tree
structure here.
(emit_base_init): Likewise. Remove unused parameter.
(expand_virtual_init): Likewise.
(expand_cleanup_for_base): Use finish_subobject.
(expand_aggr_vbase_init_1): Simplify.
(construct_virtual_bases): Use tree-generating functions to build
up initialization.
(expand_aggr_init): Likewise. Rename to build_aggr_init.
(expand_default_init): Likewise.
(expand_aggr_init_1): Likewise.
(expand_vec_init): Rename to build_vec_init.
* method.c (do_build_copy_constructor): Use tree-generating
functions. Don't call clear_last_expr.
(do_build_assign_ref): Likewise.
(synthesize_method): Call clear_last_expr here.
* parse.y (base_init): Don't call clear_last_expr here.
(nodecls): Likewise.
* pt.c (tsubst_expr): Handle a TRY_BLOCK with CLEANUP_P set.
* semantics.c (do_pushlevel): Move to here.
(do_poplevel): Likewise.
(stmts_are_full_exprs_p): New variable.
(finish_expr_stmt): Handle logic for temoprary cleanup here.
(finish_for_stmt): Use finish_expr_stmt.
(finish_cleanup): New function.
(finish_function_try_block): Fix indentation.
(finish_subobject): New function.
(setup_vtbl_ptr): Call keep_next_level here.
(finish_stmt_expr): Handle a block with no scope inside the
statement-expression.
(expand_stmt): Handle a TRY_BLOCK with CLEANUP_P set. Handle
SUBOBJECT.
* tree.c (search_tree): Handle INIT_EXPR.
(mapcar): Likewise.
* typeck.c (build_modify_expr): Don't build an RTL_EXPR.
* typeck2.c (store_init_value): Change expand_aggr_init to
build_aggr_init in comment.
From-SVN: r28878
Jim Meyering [Wed, 25 Aug 1999 22:01:36 +0000 (22:01 +0000)]
cpplib.c (detect_if_not_defined): New function.
1999-08-25 13:51 -0700 Jim Meyering <meyering@ascend.com>
* cpplib.c (detect_if_not_defined): New function.
(do_if): Use it to detect potential once-only headers.
From-SVN: r28877
Paul Burchard [Wed, 25 Aug 1999 21:48:16 +0000 (21:48 +0000)]
lss-001.C, [...]: New tests.
* g++.old-deja/g++.pt/lss-001.C, lss-002.C, lss-003.C, lss-004.C,
lss-005.C, lss-006.C, lss-007.C, lss-008.C, lss-009.C, lss-010.C,
lss-011.C: New tests.
From-SVN: r28874
Jason Merrill [Wed, 25 Aug 1999 21:05:16 +0000 (21:05 +0000)]
* c-common.c (combine_strings): Always set TREE_CONSTANT.
From-SVN: r28873
Gavin Romig-Koch [Wed, 25 Aug 1999 19:29:43 +0000 (19:29 +0000)]
combine.c (nonzero_bits): Allow single-ly set registers to be anywere in the function only if...
* combine.c (nonzero_bits) : Allow single-ly set registers to be
anywere in the function only if they are pseudos and set before
being used (not live at the start of the function).
(num_sign_bit_copies) : Same.
(get_last_value_validate) : Same.
(get_last_value) : Same.
From-SVN: r28871
Tom Tromey [Wed, 25 Aug 1999 18:38:58 +0000 (18:38 +0000)]
G19990304_01.out: New file.
* libjava.toshiba/G19990304_01.out: New file.
* libjava.toshiba/G19990304_01.java: New file.
From-SVN: r28870
Tom Tromey [Wed, 25 Aug 1999 18:37:05 +0000 (18:37 +0000)]
* jvspec.c (lang_specific_driver): Correctly handle --help again.
From-SVN: r28869
Richard Henderson [Wed, 25 Aug 1999 18:14:11 +0000 (11:14 -0700)]
loop.c (express_from): Try harder to unify (* c N) and (* c M) where N and M are constant and N is an...
* loop.c (express_from): Try harder to unify (* c N) and (* c M)
where N and M are constant and N is an integer multiple of M.
From-SVN: r28868
Mark Mitchell [Wed, 25 Aug 1999 18:06:25 +0000 (18:06 +0000)]
* dump.c (dequeue_and_dump): Dump TARGET_EXPRs.
From-SVN: r28867
Andrew MacLeod [Wed, 25 Aug 1999 18:01:48 +0000 (18:01 +0000)]
sbitmap.h (sbitmap_intersection_of_succs): Add prototype.
Wed Aug 25 13:55:47 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
* sbitmap.h (sbitmap_intersection_of_succs): Add prototype.
(sbitmap_intersection_of_preds, sbitmap_union_of_succs,
sbitmap_union_of_preds): Add prototypes.
* sbitmap.c (sbitmap_intersection_of_succs): New function to compute
the intersection of successors with the new flow graph structures.
(sbitmap_intersection_of_preds): New function to compute the
intersection of predecessors with the new flow graph structures.
(sbitmap_union_of_succs): New function to compute the union of
successors with the new flow graph structures.
(sbitmap_union_of_preds): New function to compute the union of
predecessors with the new flow graph structures.
* gcse.c (compute_rdm, compute_available): Use new sbitmap routines.
(expr_reaches_here_p): Use edge and basic_block structures instead
of s_preds and s_succs.
(compute_cprop_avinout): Use new sbitmap routines.
(pre_expr_reaches_here_p): Use edge and basic_block structures instead
of s_preds and s_succs.
* flow.c (compute_flow_dominators): Compute dominators using
edges and basic blocks instead of s_preds and s_succs.
From-SVN: r28866
Tom Tromey [Wed, 25 Aug 1999 17:54:55 +0000 (17:54 +0000)]
G19990310_01.out: New file.
* libjava.lang/G19990310_01.out: New file.
* libjava.lang/G19990310_01.java: New file.
From-SVN: r28865
Andrew MacLeod [Wed, 25 Aug 1999 17:50:53 +0000 (17:50 +0000)]
lists.c (unused_insn_list, [...]): New file for maintaining various types of lists.
Wed Aug 25 13:41:47 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
* lists.c (unused_insn_list, unused_expr_list): New file for
maintaining various types of lists. New statics for maintaining a
cache of available INSN_LIST and EXPR_LIST nodes.
(free_list): Static function for freeing a list of INSN/EXPR nodes.
(alloc_INSN_LIST): Function to get a free INSN_LIST node.
(alloc_EXPR_LIST): Function to get a free EXPR_LIST node.
(init_EXPR_INSN_LIST_cache): Initialize the cache lists.
(free_EXPR_LIST_list): Free an entire list of EXPR_LIST nodes.
(free_INSN_LIST_list): Free an entire list of INSN_LIST nodes.
(free_EXPR_LIST_node): Free an individual EXPR_LIST node.
(free_INSN_LIST_node): Free an individual INSN_LIST node.
* haifa-sched.c (unused_insn_list, unused_expr_list): Moved to flow.c
(free_list, alloc_INSN_LIST, alloc_EXPR_LIST): Moved to flow.c
(remove_dependence, free_pending_lists): Use new global routines.
(flush_pending_lists, sched_analyze_insn): Use new global routines.
(sched_analyze, compute_block_backward_dependences): Use new routines.
(sched_analyze_1, sched_analyze_2): Use new routines.
(schedule_insns): Use new global routines.
* rtl.h (init_EXPR_INSN_LIST_cache, free_EXPR_LIST_list): Add function
prototypes.
(free_INSN_LIST_list, free_EXPR_LIST_node): Add prototypes.
(free_INSN_LIST_node, alloc_INSN_LIST, alloc_EXPR_LIST): Add function
prototypes.
* toplev.c (rest_of_compilation): Initialize node cache.
* Makefile.in (OBJS): Add lists.o to list of object files.
(lists.o): Add dependancies.
From-SVN: r28864
Nick Clifton [Wed, 25 Aug 1999 16:39:21 +0000 (16:39 +0000)]
Fix compile time warning messages.
From-SVN: r28863
Kaveh R. Ghazi [Wed, 25 Aug 1999 13:59:28 +0000 (13:59 +0000)]
gjavah.c (print_name, [...]): Add static prototype.
* gjavah.c (print_name, print_base_classname, utf8_cmp,
cxx_keyword_subst, generate_access, name_is_method_p,
get_field_name, print_field_name, super_class_name, print_include,
decode_signature_piece, print_class_decls, usage, help,
java_no_argument, version, add_namelet, print_namelet): Add static
prototype.
(print_base_classname, utf8_cmp, cxx_keyword_subst,
name_is_method_p): Constify a char*.
(get_field_name): Likewise. Prefer xstrdup over malloc/strcpy.
Provide a final else clause in an if-else-if.
(print_field_info): Add missing final arg in function call to
`print_field_name'.
(print_method_info, decompile_method, decode_signature_piece,
print_c_decl, print_full_cxx_name, print_stub,
print_mangled_classname, super_class_name, print_include,
add_namelet, add_class_decl, print_class_decls, process_file,
help): Constify a char*.
* jcf-write.c (jcf_handler, push_constant1, push_constant2,
push_int_const, find_constant_wide, find_constant_index,
push_long_const, field_op, maybe_wide, emit_dup, emit_pop,
emit_iinc, emit_load_or_store, emit_load, emit_store, emit_unop,
emit_binop, emit_reloc, emit_switch_reloc, emit_case_reloc,
emit_if, emit_goto, emit_jsr, call_cleanups,
make_class_file_name): Add static prototypes.
(generate_bytecode_return, generate_bytecode_insns): Pass a
NULL_PTR, not a NULL_TREE.
* jv-scan.c: Include "jcf.h".
(main): Declare using DEFUN macro.
* jvspec.c (find_spec_file, lang_specific_pre_link,
lang_specific_driver): Add prototypes.
(find_spec_file): Constify a char*.
* keyword.gperf (hash, java_keyword): Add prototypes.
* lang.c (lang_print_error): Add static prototype.
(lang_init): Prefer memcpy over bcopy to avoid casts.
* lex.c (yylex): Add static prototype.
* parse-scan.y: Include "lex.c" earlier.
* parse.h: Remove redundant declaration for `yylex'.
* parse.y (java_decl_equiv, binop_compound_p, search_loop,
labeled_block_contains_loop_p): Add static prototypes.
(not_accessible_p): Make static to match prototype.
* verify.c (start_pc_cmp): Don't needlessly cast away const.
From-SVN: r28862
Kaveh R. Ghazi [Wed, 25 Aug 1999 13:47:00 +0000 (13:47 +0000)]
genattr.c (gen_attr): Add prototype arguments for get_attr_*().
* genattr.c (gen_attr): Add prototype arguments for get_attr_*().
Remove unused prototype for `init_lengths'.
From-SVN: r28861
Kaveh R. Ghazi [Wed, 25 Aug 1999 13:37:46 +0000 (13:37 +0000)]
Warning fixes:
* calls.c (emit_call_1): Mark parameter `stack_size' with
ATTRIBUTE_UNUSED.
(expand_call): Initialize variable `insn'.
(emit_library_call): Likewise for variable `high_to_save'.
(emit_library_call_value): Likewise.
(store_one_arg): Likewise for variables `lower_bound' and
`upper_bound'.
* combine.c (try_combine): Likewise for variables `i2_code_number'
and `other_code_number'.
(find_split_point): Likewise for variables `pos', `unsignedp' and
`inner'.
(simplify_if_then_else): Likewise for variables `op' and `c1'.
(simplify_and_const_int): Remove unused variable `width'.
(merge_outer_ops): Likewise.
* cse.c (simplify_binary_operation): Cast an INTVAL() to `unsigned
HOST_WIDE_INT' when comparing against one.
(simplify_relational_operation): Likewise.
(cse_insn): Initialize variables `src_eqv_volatile',
`src_eqv_in_memory', `src_eqv_in_struct', `src_eqv_hash' and `sets'.
* final.c (init_final): Constify parameter `filename'.
(final_start_function): Mark parameter `optimize' with
ATTRIBUTE_UNUSED.
(profile_function): Likewise for parameters `first' and `optimize'.
(output_source_line): Likewise for parameter `file'.
* integrate.c (subst_constants): Cast a value to `size_t' when
comparing against one.
(mark_stores): Initialize variable `mode'. Cast a value to
`size_t' when comparing against one.
* integrate.h (MAYBE_EXTEND_CONST_EQUIV_VARRAY): Likewise.
* loop.c (move_movables): Initialize variable `first'.
(strength_reduce): Likewise for variable `increment'.
(check_dbra_loop): Likewise for variable `comparison_val'. Cast a
value to `size_t' when comparing against one.
(load_mems): Initialize variable `end_label'.
* output.h (init_final): Constify parameter.
* reload.c (decompose): Initialize variable `base'.
* reload1.c (reload): Likewise for variable `is_scalar'.
(spill_hard_reg): Mark parameter `dumpfile' with ATTRIBUTE_UNUSED.
(choose_reload_regs): Initialize variable `mode'.
(emit_reload_insns): Likewise for variable `store_insn'.
(reload_cse_noop_set_p): Mark parameter `insn' with
ATTRIBUTE_UNUSED.
(reload_combine): Initialize variable `set'.
* unroll.c (unroll_loop): Likewise for variable `local_label'.
(copy_loop_body): Cast a value to `size_t' when comparing against
one.
* varasm.c (assemble_variable): Initialize variable `size_tree'.
(const_hash): Add an `else abort()' in an if-else-if-else sequence.
(remove_from_pending_weak_list): Mark parameter `name' with
ATTRIBUTE_UNUSED.
From-SVN: r28860
Kaveh R. Ghazi [Wed, 25 Aug 1999 13:29:34 +0000 (13:29 +0000)]
Warning fixes:
* cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
comparing against a signed quantity.
(arm_special): Likewise.
(demangle_fund_type): Likewise.
(do_hpacc_template_const_value): Mark parameter `work' with
ATTRIBUTE_UNUSED.
(main): Constify variable `valid_symbols'.
From-SVN: r28859
Alexandre Oliva [Wed, 25 Aug 1999 13:03:00 +0000 (13:03 +0000)]
* thunk1.C: New test.
From-SVN: r28858
Nathan Sidwell [Wed, 25 Aug 1999 12:05:23 +0000 (12:05 +0000)]
* g++.old-deja/g++.other/decl5.C: New test
From-SVN: r28857
Nathan Sidwell [Wed, 25 Aug 1999 12:04:47 +0000 (12:04 +0000)]
decl2.c (handle_class_head): Be graceful about additional scope qualifiers.
* decl2.c (handle_class_head): Be graceful about additional
scope qualifiers. Adjust comments to reflect reality.
From-SVN: r28856
Bernd Schmidt [Wed, 25 Aug 1999 10:27:43 +0000 (10:27 +0000)]
Fix small problem with gcse dumps
From-SVN: r28855
Nick Clifton [Wed, 25 Aug 1999 10:12:07 +0000 (10:12 +0000)]
Do not configure or build ld for AIX native systems.
From-SVN: r28854
Nick Clifton [Wed, 25 Aug 1999 10:01:59 +0000 (10:01 +0000)]
Add support for generating .weak, .type and .size assembler directives.
From-SVN: r28853
Jeff Law [Wed, 25 Aug 1999 08:21:46 +0000 (02:21 -0600)]
Fix typo.
From-SVN: r28852
Jeff Law [Wed, 25 Aug 1999 08:20:52 +0000 (02:20 -0600)]
Fix typo
From-SVN: r28851
Jeff Law [Wed, 25 Aug 1999 08:20:06 +0000 (02:20 -0600)]
Fix typos.
From-SVN: r28850
Jeff Law [Wed, 25 Aug 1999 08:18:41 +0000 (02:18 -0600)]
Typo.
From-SVN: r28849
Jeff Law [Wed, 25 Aug 1999 08:01:01 +0000 (02:01 -0600)]
Fix minor oops in last change.
From-SVN: r28848
Jeff Law [Wed, 25 Aug 1999 07:45:11 +0000 (01:45 -0600)]
Daily bump.
From-SVN: r28847
John David Anglin [Wed, 25 Aug 1999 07:38:23 +0000 (07:38 +0000)]
calls.c (emit_call_1): Use call_pop/call_value_pop for all values of n_popped when...
* calls.c (emit_call_1): Use call_pop/call_value_pop for all values
of n_popped when call/call_value are not defined.
From-SVN: r28846
David O'Brien [Wed, 25 Aug 1999 07:33:08 +0000 (01:33 -0600)]
* configure.in: Alphabetize selection of .ml fragments.
From-SVN: r28845
Jeffrey A Law [Wed, 25 Aug 1999 07:27:13 +0000 (07:27 +0000)]
tm.texi: GNU CC -> GCC conversion.
* tm.texi: GNU CC -> GCC conversion.
(CC1_SPEC): Indicate it is used for all language front ends.
From-SVN: r28844
Rainer Orth [Wed, 25 Aug 1999 07:22:42 +0000 (07:22 +0000)]
* lang-specs.h: Pass cc1 spec to f771.
From-SVN: r28843
Rainer Orth [Wed, 25 Aug 1999 07:14:07 +0000 (07:14 +0000)]
config-ml.in: Pass compiler flag corresponding to multidirs to subdir configures.
* config-ml.in: Pass compiler flag corresponding to multidirs to
subdir configures.
From-SVN: r28842
Michael Tiemann [Wed, 25 Aug 1999 06:51:15 +0000 (06:51 +0000)]
loop.c (strength_reduce): Automatically unroll loops if the unrolled loop size is smaller than the rolled...
* loop.c (strength_reduce): Automatically unroll loops if the
unrolled loop size is smaller than the rolled loop size.
Co-Authored-By: Jeffrey A Law <law@cygnus.com>
From-SVN: r28841
Mark Mitchell [Wed, 25 Aug 1999 06:44:46 +0000 (06:44 +0000)]
flow.c (delete_block): Spell NOTE_INSN_EH_REGION_BEG and NOTE_INSN_EH_REGION_END correctly.
* flow.c (delete_block): Spell NOTE_INSN_EH_REGION_BEG and
NOTE_INSN_EH_REGION_END correctly.
From-SVN: r28840
Michael Tiemann [Wed, 25 Aug 1999 05:28:26 +0000 (05:28 +0000)]
loop.c (insert_bct): Replace use of sdiv_optab with asr_optab and delete comment that code should be...
* loop.c (insert_bct): Replace use of sdiv_optab with asr_optab
and delete comment that code should be rewritten.
From-SVN: r28839
Jeffrey A Law [Wed, 25 Aug 1999 05:24:04 +0000 (05:24 +0000)]
haifa-sched.c (find_rgns): Mark a block found during the DFS search as reachable.
* haifa-sched.c (find_rgns): Mark a block found during the DFS search
as reachable.
From-SVN: r28838
Jeffrey A Law [Wed, 25 Aug 1999 04:58:36 +0000 (04:58 +0000)]
* haifa-sched.c (get_visual_tbl_length): Fix off-by-one error.
From-SVN: r28837
Mumit Khan [Wed, 25 Aug 1999 04:43:17 +0000 (04:43 +0000)]
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
Bernd Schmidt [Wed, 25 Aug 1999 04:24:36 +0000 (04:24 +0000)]
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
Bernd Schmidt [Wed, 25 Aug 1999 03:30:45 +0000 (03:30 +0000)]
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
Art Haas [Wed, 25 Aug 1999 02:52:15 +0000 (02:52 +0000)]
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
Fred Fish [Wed, 25 Aug 1999 02:49:56 +0000 (02:49 +0000)]
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
Bryce McKinlay [Wed, 25 Aug 1999 00:46:23 +0000 (00:46 +0000)]
* posix-threads.cc: Include <errno.h>.
From-SVN: r28831
Richard Henderson [Wed, 25 Aug 1999 00:00:03 +0000 (17:00 -0700)]
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
Richard Henderson [Tue, 24 Aug 1999 22:37:34 +0000 (15:37 -0700)]
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
Bob Manson [Tue, 24 Aug 1999 22:35:55 +0000 (22:35 +0000)]
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
Jason Merrill [Tue, 24 Aug 1999 21:25:13 +0000 (17:25 -0400)]
new
From-SVN: r28827
Jason Merrill [Tue, 24 Aug 1999 21:23:56 +0000 (21:23 +0000)]
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
Nathan Sidwell [Tue, 24 Aug 1999 20:49:12 +0000 (20:49 +0000)]
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
Mark Mitchell [Tue, 24 Aug 1999 18:09:10 +0000 (18:09 +0000)]
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
Nick Clifton [Tue, 24 Aug 1999 13:58:41 +0000 (13:58 +0000)]
Handle DFmode and DImode constant addresses.
From-SVN: r28823
Kaveh R. Ghazi [Tue, 24 Aug 1999 13:34:04 +0000 (13:34 +0000)]
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
Kaveh R. Ghazi [Tue, 24 Aug 1999 13:21:46 +0000 (13:21 +0000)]
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
Bernd Schmidt [Tue, 24 Aug 1999 12:05:09 +0000 (12:05 +0000)]
Fix more problems from GC diffs
From-SVN: r28820
Philippe De Muyter [Tue, 24 Aug 1999 08:51:03 +0000 (10:51 +0200)]
* strtoul.c (strtoul): Add parentheses around && within ||.
From-SVN: r28819
Jeffrey A Law [Tue, 24 Aug 1999 08:48:27 +0000 (08:48 +0000)]
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
Herman A.J. ten Brugge [Tue, 24 Aug 1999 08:44:47 +0000 (10:44 +0200)]
* jump.c (delete_barrier_successors) Match (set (pc) (pc)) insn
exactly.
From-SVN: r28817
Jeff Law [Tue, 24 Aug 1999 07:46:43 +0000 (01:46 -0600)]
Daily bump.
From-SVN: r28815
Matthias Klose [Tue, 24 Aug 1999 05:37:39 +0000 (05:37 +0000)]
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
Zack Weinberg [Tue, 24 Aug 1999 05:31:03 +0000 (05:31 +0000)]
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
Mumit Khan [Tue, 24 Aug 1999 04:20:18 +0000 (04:20 +0000)]
* g++spec.c (lang_specific_driver): Add room for NULL in arglist.
From-SVN: r28812
Jason Merrill [Tue, 24 Aug 1999 04:16:06 +0000 (04:16 +0000)]
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
Tom Tromey [Tue, 24 Aug 1999 04:01:06 +0000 (04:01 +0000)]
boehm.cc: Undefine TRUE and FALSE.
* boehm.cc: Undefine TRUE and FALSE.
* posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
From-SVN: r28810
Jeffrey A Law [Tue, 24 Aug 1999 03:28:57 +0000 (03:28 +0000)]
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
Paul Burchard [Mon, 23 Aug 1999 22:19:01 +0000 (22:19 +0000)]
* decl.c (check_default_argument): Fix typo.
From-SVN: r28808
Bernd Schmidt [Mon, 23 Aug 1999 16:09:52 +0000 (16:09 +0000)]
Fix sparc compilation failure
From-SVN: r28807
Jeff Law [Mon, 23 Aug 1999 07:45:12 +0000 (01:45 -0600)]
Daily bump.
From-SVN: r28806
Alexandre Petit-Bianco [Sun, 22 Aug 1999 18:38:07 +0000 (18:38 +0000)]
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
Mark Mitchell [Sun, 22 Aug 1999 18:11:40 +0000 (18:11 +0000)]
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
Alexandre Oliva [Sun, 22 Aug 1999 16:19:31 +0000 (16:19 +0000)]
Added missing whitespace in function calls within adaptors
Pointed out by Tom
From-SVN: r28803
Jeff Law [Sun, 22 Aug 1999 07:45:08 +0000 (01:45 -0600)]
Daily bump.
From-SVN: r28800
Tom Tromey [Sun, 22 Aug 1999 02:37:04 +0000 (02:37 +0000)]
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
Alexandre Oliva [Sat, 21 Aug 1999 14:26:44 +0000 (14:26 +0000)]
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
Alexandre Oliva [Sat, 21 Aug 1999 13:35:32 +0000 (13:35 +0000)]
Change in_addr_t default to jint
From-SVN: r28796
Alexandre Oliva [Sat, 21 Aug 1999 13:15:55 +0000 (13:15 +0000)]
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
Alexandre Oliva [Sat, 21 Aug 1999 12:49:39 +0000 (12:49 +0000)]
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
Alexandre Oliva [Sat, 21 Aug 1999 11:56:24 +0000 (11:56 +0000)]
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