Richard Sandiford [Mon, 4 Apr 2005 19:43:52 +0000 (19:43 +0000)]
Add PR number to last entry.
From-SVN: r97572
Richard Sandiford [Mon, 4 Apr 2005 19:42:51 +0000 (19:42 +0000)]
Makefile.in (tree-ssa-loop-ivopts.o): Depend on langhooks.h.
* Makefile.in (tree-ssa-loop-ivopts.o): Depend on langhooks.h.
* tree-ssa-loop-ivopts.c: Include langhooks.h.
(add_standard_iv_candidates_for_size): New function, extracting code
from add_standard_iv_candidates and parameterizing it by type size.
(add_standard_iv_candidates): Use add_standard_iv_candidates_for_size.
From-SVN: r97571
Richard Sandiford [Mon, 4 Apr 2005 19:41:14 +0000 (19:41 +0000)]
system.h (GCOV_SIZE_TYPE): Unposion.
* system.h (GCOV_SIZE_TYPE): Unposion.
* gcov-io.h (GCOV_TYPE_NODE): Delete, replacing with...
(GCOV_TYPE_SIZE): ...this new macro.
* coverage.h (get_gcov_type, GCOV_TYPE_NODE): Declare.
* coverage.c (get_gcov_type, get_gcov_unsigned_t): New functions.
(rtl_coverage_counter_ref): Use GCOV_TYPE_SIZE.
(build_fn_info_type, build_fn_info_value, build_ctr_info_type)
(build_ctr_info_value, build_gcov_info): Use get_gcov_unsigned_t
instead of unsigned_intSI_type_node.
* rtl-profile.c (rtl_gen_interval_profiler, rtl_gen_pow2_profiler)
(rtl_gen_one_value_profiler_no_edge_manipulation)
(rtl_gen_const_delta_profiler): Use GCOV_TYPE_SIZE.
* value-prof.c: Include coverage.h.
From-SVN: r97570
Mark Mitchell [Mon, 4 Apr 2005 19:11:07 +0000 (19:11 +0000)]
re PR c++/20679 (Parse error when accessing attributes of an inner class. Enclosing class is template and have methods with the same name.)
PR c++/20679
* parser.c (cp_parser_template_name): Fix thinko.
PR c++/20679
* g++.dg/template/overload4.C: New test.
From-SVN: r97569
Daniel Berlin [Mon, 4 Apr 2005 19:02:16 +0000 (19:02 +0000)]
Fix PR tree-optimization/20703 Fix PR tree-optimization/20725
2005-04-02 Daniel Berlin <dberlin@dberlin.org>
Diego Novillo <dnovillo@redhat.com>
Fix PR tree-optimization/20703
Fix PR tree-optimization/20725
* tree-ssa-pre.c (phi_translate): Handle tcc_comparison.
(create_expression_by_pieces): Ditto.
(valid_in_set): Ditto. Also handle tcc_declaration.
(find_or_generate_expression): Handle comparison class.
(insert_into_preds_of_block): Ditto.
(insert_aux): Ditto.
(create_value_expr_from): Handle comparison class, recursively
handle reference nodes.
(compute_avail): Handle comparison classes, rewrite a little cleaner.
(execute_pre): Fix spacing.
(do_fre): Renamed to execute_fre.
Co-Authored-By: Diego Novillo <dnovillo@redhat.com>
From-SVN: r97567
Tom Tromey [Mon, 4 Apr 2005 18:40:24 +0000 (18:40 +0000)]
ClassLoader.java (loadClass): Resolve class even if it was already found.
* java/lang/ClassLoader.java (loadClass): Resolve class even if
it was already found.
From-SVN: r97565
Eric Botcazou [Mon, 4 Apr 2005 18:11:46 +0000 (20:11 +0200)]
invoke.texi (SPARC options): Document that -mlittle-endian is not supported on Linux either.
* doc/invoke.texi (SPARC options): Document that
-mlittle-endian is not supported on Linux either.
From-SVN: r97561
Tom Tromey [Mon, 4 Apr 2005 18:00:53 +0000 (18:00 +0000)]
URL.java (DEFAULT_SEARCH_PATH): Added org.metastatic.jessie.
* java/net/URL.java (DEFAULT_SEARCH_PATH): Added
org.metastatic.jessie.
From-SVN: r97560
Mark Mitchell [Mon, 4 Apr 2005 17:52:49 +0000 (17:52 +0000)]
Makefile.am (check-local): Remove.
* testsuite/Makefile.am (check-local): Remove.
(curent_symbols.txt): Likewise.
(check-abi): Do not depend on current_symbols.txt.
* testsuite/Makefile.in: Regenerated.
* testsuite/libstdc++-abi/abi.exp: Build current_symbols.txt.
From-SVN: r97558
Nathan Sidwell [Mon, 4 Apr 2005 17:45:16 +0000 (17:45 +0000)]
re PR c++/20746 ([4.0 only] Incorrect return value for covariant return function returning null ptr)
cp:
PR c++/20746
* method.c (use_thunk): Protect covariant pointer return
adjustments from NULL pointers.
testsuite:
PR c++/20746
* g++.dg/abi/covariant5.C: New.
From-SVN: r97557
Eric Botcazou [Mon, 4 Apr 2005 17:18:54 +0000 (17:18 +0000)]
re PR target/4198 ([sparclite-elf] does not build, needs tweaking for crtstuff.c changes)
PR target/4198
PR target/12027
* config.gcc (Obsolete configurations): Remove
sparclite-*-coff*, sparclite-*-elf* and sparc-*-openbsd*.
(sparclite-*-coff*): Delete.
(sparclite-*-elf*): Likewise.
(sparc86x-*-elf*): Likewise.
(target_cpu_default) <sparc*-*-*>: Remove sparc86x.
* config/sparc/lite.h: Delete.
* config/sparc/litecoff.h: Likewise.
* config/sparc/liteelf.h: Likewise.
* config/sparc/sp86x-elf.h: Likewise.
* config/sparc/t-sparclite: Likewise.
* config/sparc/t-sp86x: Likewise.
From-SVN: r97555
Adrian Straetling [Mon, 4 Apr 2005 16:25:05 +0000 (16:25 +0000)]
s390-protos.h: (s390_comparison...
2005-04-04 Adrian Strae�tling <straetling@de.ibm.com>
* config/s390/s390-protos.h: (s390_comparison,
s390_alc_comparison, s390_slb_comparison, const0_operand,
consttable_operand, larl_operand, s_operand,
shift_count_operand, bras_sym_operand, load_multiple_operation,
store_multiple_operation, s390_plus_operand): Remove prototypes.
(s390_legitimate_address_without_index_p): New prototype.
* config/s390/s390.c: (SYMBOL_FLAG_ALIGN1, DISP_IN_RANGE): Move
to s390.h.
(s390_comparison, s390_alc_comparison, s390_slb_comparison,
const0_operand, consttable_operand, larl_operand, s_operand,
shift_count_operand, bras_sym_operand, load_multiple_operation,
store_multiple_operation, s390_plus_operand): Move to
predicates.md.
(check_mode): Remove.
(s390_branch_condition_mask): Remove 'static'. Move prototype to
s390-protos.h.
(s390_legitimate_address_without_index_p): New.
* config/s390/s390.h (PREDICATE_CODES): Remove.
* config/s390/s390.md: Include predicates.md.
* config/s390/predicates.md: New.
From-SVN: r97554
Kazu Hirata [Mon, 4 Apr 2005 15:29:52 +0000 (15:29 +0000)]
gcj.texi: Fix a typo.
* gcj.texi: Fix a typo.
* lang.c: Fix a comment typo.
From-SVN: r97551
Eric Botcazou [Mon, 4 Apr 2005 15:29:10 +0000 (17:29 +0200)]
re PR target/20446 (invalid assembly with -gstabs+)
PR target/20446
* config/sparc/sparc.h (NEED_INDICATE_EXEC_STACK): Define to 0.
* config/sparc/linux.h (TARGET_ASM_FILE_END): Delete.
(NEED_INDICATE_EXEC_STACK): Define to 1.
* config/sparc/linux64.h (TARGET_ASM_FILE_END): Delete.
(NEED_INDICATE_EXEC_STACK): Define to 1.
* config/sparc/sparc.c (TARGET_ASM_FILE_END): Set to sparc_file_end.
(add_pc_to_pic_symbol): Rename into pic_helper_symbol.
(add_pc_to_pic_symbol_name): Rename into pic_helper_symbol_name.
(pic_helper_emitted_p): New global.
(emit_pic_helper): New function extracted from...
(load_pic_register): ...here. Add 'delay_pic_helper' parameter.
Do not call emit_pic_helper if delay_pic_helper is true.
(sparc_expand_prologue): Pass 'false' to load_pic_register.
(sparc_output_mi_thunk): Pass 'true' to load_pic_register.
(sparc_file_end): New function.
From-SVN: r97550
Kazu Hirata [Mon, 4 Apr 2005 15:25:17 +0000 (15:25 +0000)]
* config/mcore/predicates.md: Fix a comment typo.
From-SVN: r97549
Kazu Hirata [Mon, 4 Apr 2005 15:17:10 +0000 (15:17 +0000)]
mcore-protos.h: Remove the prototypes for mcore_arith_reg_operand...
* config/mcore/mcore-protos.h: Remove the prototypes for
mcore_arith_reg_operand, mcore_general_movsrc_operand,
mcore_general_movdst_operand, mcore_reload_operand,
mcore_arith_J_operand, mcore_arith_K_operand,
mcore_arith_K_operand_not_0, mcore_arith_M_operand,
mcore_arith_K_S_operand, mcore_arith_imm_operand,
mcore_arith_any_imm_operand, mcore_arith_O_operand,
mcore_literal_K_operand, mcore_addsub_operand,
mcore_compare_operand, mcore_load_multiple_operation,
mcore_store_multiple_operation, mcore_call_address_operand.
Add a prototype for const_ok_for_mcore.
* config/mcore/mcore.c (mcore_call_address_operand,
mcore_general_movsrc_operand, mcore_general_movdst_operand,
mcore_arith_reg_operand, mcore_reload_operand,
mcore_arith_J_operand, mcore_arith_K_operand,
mcore_arith_K_operand_not_0, mcore_arith_K_S_operand,
mcore_arith_M_operand, mcore_arith_imm_operand,
mcore_arith_any_imm_operand, mcore_arith_O_operand,
mcore_literal_K_operand, mcore_addsub_operand,
mcore_compare_operand, mcore_load_multiple_operation,
mcore_store_multiple_operation): Move to predicates.md.
(const_ok_for_mcore): Export.
* config/mcore/mcore.h (PREDICATE_CODES): Remove.
* config/mcore/mcore.md: Include predicates.md.
* config/mcore/predicates.md: New.
From-SVN: r97548
Jan Hubicka [Mon, 4 Apr 2005 15:12:55 +0000 (17:12 +0200)]
decl2.c (finish_objects): Revert my previous patch.
* decl2.c (finish_objects): Revert my previous patch.
(cp_finish_file): Likewise.
From-SVN: r97547
Jon Grimm [Mon, 4 Apr 2005 15:12:36 +0000 (15:12 +0000)]
Add myself to MAINTAINERS.
From-SVN: r97546
Andreas Krebbel [Mon, 4 Apr 2005 14:31:07 +0000 (14:31 +0000)]
2064.md ("z_mul", "z_inf"): New insn reservations.
2005-04-04 Andreas Krebbel <krebbel1@de.ibm.com>
Adrian Straetling <straetling@de.ibm.com>
* config/s390/2064.md ("z_mul", "z_inf"): New insn reservations.
* config/s390/2084.md ("x_mul_hi", "x_mul_sidi", "x_div"): Likewise.
* config/s390/s390.md ("imulhi", "imulsi", "imuldi"): Added to "type"
attribute.
("imul"): Removed from "type" attribute.
("*muldi3_sign", "muldi3"): Changed type to imuldi.
("mulsi3/1", "mulsi3/3", "mulsi/4", "mulsidi3", "umulsidi3"):
Changed type to imulsi.
("*mulsi3_sign", "mulsi3/2"): Changed type to imulhi.
Co-Authored-By: Adrian Straetling <straetling@de.ibm.com>
From-SVN: r97545
Richard Sandiford [Mon, 4 Apr 2005 14:22:02 +0000 (14:22 +0000)]
* config/mcore/mcore.h (target_flags, HARDLIT_BIT, ALIGN8_BIT, DIV_BIT)
(RELAX_IMM_BIT, W_FIELD_BIT, OVERALIGN_FUNC_BIT, CGDATA_BIT)
(SLOW_BYTES_BIT, LITTLE_END_BIT, M340_BIT, TARGET_HARDLIT)
(TARGET_DIV, TARGET_RELAX_IMM, TARGET_W_FIELD, TARGET_OVERALIGN_FUNC)
(TARGET_CG_DATA, TARGET_SLOW_BYTES, TARGET_LITTLE_END, TARGET_M340)
(TARGET_SWITCHES, mcore_stack_increment_string)
(TARGET_OPTIONS): Delete.
(TARGET_DEFAULT, OPTIMIZATION_OPTIONS): Use MASK_* constants rather
than *_BIT constants.
(TARGET_8ALIGN): #undef old definition before redefining to 1.
* config/mcore/mcore.c (mcore_stack_increment_string): Delete.
(TARGET_DEFAULT_TARGET_FLAGS): Override default to TARGET_DEFAULT.
(mcore_override_options): Delete mcore_stack_increment code.
Change use of M340_BIT to MASK_M340.
* config/mcore/mcore.opt: New file.
From-SVN: r97544
Ian Lance Taylor [Mon, 4 Apr 2005 13:59:20 +0000 (13:59 +0000)]
arm.c (replace_symbols_in_block): Remove static function.
* config/arm/arm.c (replace_symbols_in_block): Remove static
function.
From-SVN: r97543
Kazu Hirata [Mon, 4 Apr 2005 13:55:05 +0000 (13:55 +0000)]
sh.h (PREDICATE_CODES): Add CONST to general_movsrc_operand.
* config/sh/sh.h (PREDICATE_CODES): Add CONST to
general_movsrc_operand.
From-SVN: r97542
Kazu Hirata [Mon, 4 Apr 2005 13:51:28 +0000 (13:51 +0000)]
mcore.h (PREDICATE_CODES): Add SYMBOL_REF and LABEL_REF to mcore_general_movsrc_operand.
* config/mcore/mcore.h (PREDICATE_CODES): Add SYMBOL_REF and
LABEL_REF to mcore_general_movsrc_operand. Add SYMBOL_REF to
mcore_call_address_operand.
From-SVN: r97541
Kazu Hirata [Mon, 4 Apr 2005 13:45:53 +0000 (13:45 +0000)]
fr30-protos.h: Remove the prototypes for stack_add_operand...
* config/fr30/fr30-protos.h: Remove the prototypes for
stack_add_operand, add_immediate_operand,
high_register_operand, low_register_operand, call_operand,
di_operand, and nonimmediate_di_operand.
* config/fr30/fr30.c (stack_add_operand,
add_immediate_operand, high_register_operand,
low_register_operand, call_operand, di_operand,
nonimmediate_di_operand): Move to predicates.md.
* config/fr30/fr30.h (PREDICATE_CODES): Remove.
* config/fr30/fr30.md: Include predicates.md.
* config/fr30/predicates.md: New.
From-SVN: r97540
Francois-Xavier Coudert [Mon, 4 Apr 2005 12:10:21 +0000 (14:10 +0200)]
* intrinsic.texi: BES?? functions are not in the f95 standard.
From-SVN: r97538
Nathan Sidwell [Mon, 4 Apr 2005 12:04:38 +0000 (12:04 +0000)]
re PR c++/20505 (internal error when compiling with -ggdb2 and no error with -ggdb1)
PR debug/20505
* g++.dg/debug/const2.C: New.
From-SVN: r97537
Alan Modra [Mon, 4 Apr 2005 11:53:15 +0000 (11:53 +0000)]
passes.c (rest_of_handle_final): NULL unlikely_text_section_name after freeing.
* passes.c (rest_of_handle_final): NULL unlikely_text_section_name
after freeing.
From-SVN: r97536
Richard Earnshaw [Mon, 4 Apr 2005 10:51:38 +0000 (10:51 +0000)]
re PR target/14812 (ARM optimizer changes rsb/cmp to cmn, but condition codes different)
PR target/14812
* arm.c (arm_select_cc_mode): Return CC_Zmode when comparing against
a negated value.
From-SVN: r97533
Alan Modra [Mon, 4 Apr 2005 10:09:46 +0000 (10:09 +0000)]
* mf-runtime.c (__mfu_unregister): Warning fix for char unsigned.
From-SVN: r97532
Jakub Jelinek [Mon, 4 Apr 2005 08:50:35 +0000 (10:50 +0200)]
re PR rtl-optimization/16104 (ICE in reload_cse_simplify_operands, at postreload.c:378 with SSE2 code on -O2)
PR rtl-optimization/16104
* fold-const.c (fold_unary): Fix folding of vector conversions.
* gcc.c-torture/execute/
20050316-1.c: New test.
From-SVN: r97529
Nathan Sidwell [Mon, 4 Apr 2005 08:18:55 +0000 (08:18 +0000)]
* g++.dg/template/spec23.C: Fix dg-error text.
From-SVN: r97527
Richard Sandiford [Mon, 4 Apr 2005 07:47:01 +0000 (07:47 +0000)]
config.gcc (xstormy16-*-elf): Set extra_options.
* config.gcc (xstormy16-*-elf): Set extra_options.
* config/stormy16/stormy16.h (target_flags, TARGET_SWITCHES): Delete.
* config/stormy16/stormy16.opt: New file.
From-SVN: r97526
Richard Sandiford [Mon, 4 Apr 2005 07:44:33 +0000 (07:44 +0000)]
* config/pdp11/pdp11.h (target_flags, TARGET_SWITCHES, TARGET_DEFAULT)
(TARGET_FPU, TARGET_SOFT_FLOAT, TARGET_AC0, TARGET_NO_AC0, TARGET_45)
(TARGET_BCOPY_BUILTIN, TARGET_INT16, TARGET_INT32, TARGET_FLOAT32)
(TARGET_FLOAT64, TARGET_ABSHI_BUILTIN, TARGET_BRANCH_EXPENSIVE)
(TARGET_BRANCH_CHEAP, TARGET_SPLIT, TARGET_NOSPLIT)
(TARGET_UNIX_ASM): Delete.
(TARGET_40_PLUS): Redefine in terms of TARGET_40 and TARGET_45.
* config/pdp11/2bsd.h (TARGET_UNIX_ASM_DEFAULT): Use MASK_UNIX_ASM.
* config/pdp11/pdp11.c (pdp11_handle_option): New function.
(TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
* config/pdp11/pdp11.opt: New file.
From-SVN: r97525
Roger Sayle [Mon, 4 Apr 2005 05:02:10 +0000 (05:02 +0000)]
re PR c++/19199 (Wrong warning about returning a reference to a temporary)
2005-04-03 Roger Sayle <roger@eyesopen.com>
Alexandre Oliva <aoliva@redhat.com>
PR c++/19199
* fold-const.c (non_lvalue): Split tests into...
(maybe_lvalue_p): New function.
(fold_cond_expr_with_comparison): Preserve lvalue-ness for the
C++ front-end prior to lowering into gimple form.
* g++.dg/expr/lval2.C: New.
* expr2.C: Fixed.
From-SVN: r97522
GCC Administrator [Mon, 4 Apr 2005 00:16:29 +0000 (00:16 +0000)]
Daily bump.
[[Split portion of a mixed commit.]]
From-SVN: r97511.2
Kaveh R. Ghazi [Sun, 3 Apr 2005 22:08:12 +0000 (22:08 +0000)]
builtins.def (BUILT_IN_STPNCPY, [...]): New.
* builtins.def (BUILT_IN_STPNCPY, BUILT_IN_STRCASECMP,
BUILT_IN_STRNCASECMP): New.
* doc/extend.texi: Document stpncpy, strcasecmp, strncasecmp
and strndup.
testsuite:
* gcc.dg/nonnull-3.c: Also test __builtin_stpncpy,
__builtin_strcasecmp and __builtin_strncasecmp.
From-SVN: r97498
Francois-Xavier Coudert [Sun, 3 Apr 2005 19:15:41 +0000 (21:15 +0200)]
* intrinsic.texi: Document COS, EXP, LOG, LOG10, SIN, SQRT, TAN.
From-SVN: r97496
Francois-Xavier Coudert [Sun, 3 Apr 2005 17:46:07 +0000 (19:46 +0200)]
intrinsic.texi: Document BESJ0, BESJ1, BESJN, BESY0, BESY1, BESYN, ATAN, COSH, ERF, ERC, SINH, TANH.
* intrinsic.texi: Document BESJ0, BESJ1, BESJN, BESY0, BESY1,
BESYN, ATAN, COSH, ERF, ERC, SINH, TANH.
From-SVN: r97495
Richard Earnshaw [Sun, 3 Apr 2005 14:41:22 +0000 (14:41 +0000)]
re PR target/14812 (ARM optimizer changes rsb/cmp to cmn, but condition codes different)
PR target/14812
* arm.md (addsi3_compare0_for_combiner): Delete.
(addsi3_compare0_scratch_for_combiner): Delete.
(cmpsi_neg_shiftsi): Delete.
(compare_negsi_si): New pattern.
(cmpsi_negshiftsi_si): New pattern.
(negated_cbranchsi4): Restrict to equality_operator.
* arm.md (movhi_insn_arch4): delete trailing white space from assembler
template.
From-SVN: r97493
Kazu Hirata [Sun, 3 Apr 2005 14:30:29 +0000 (14:30 +0000)]
* doc/install.texi: Fix a typo.
From-SVN: r97492
Kazu Hirata [Sun, 3 Apr 2005 14:24:28 +0000 (14:24 +0000)]
* pt.c: Fix comment typos.
From-SVN: r97491
Kazu Hirata [Sun, 3 Apr 2005 14:09:57 +0000 (14:09 +0000)]
cfghooks.c, [...]: Fix comment typos.
* cfghooks.c, cfgrtl.c, modulo-sched.c, config/i386/winnt.c:
Fix comment typos.
From-SVN: r97490
Nathan Sidwell [Sun, 3 Apr 2005 12:33:02 +0000 (12:33 +0000)]
re PR c++/20723 (ICE in more_specialized_fn, more than one user-defined conversion "srp<int>" to "ptr<int>")
cp:
PR c++/20723
* pt.c (more_specialized_fn): Member functions are unordered wrt
non-members. Conversion operators are unordered wrt other
functions.
testsuite:
PR c++/20723
* g++.dg/template/spec22.C: New.
* g++.dg/template/spec23.C: New.
From-SVN: r97489
Steven Bosscher [Sun, 3 Apr 2005 11:26:41 +0000 (11:26 +0000)]
re PR middle-end/20648 (ICE in cfg_layout_redirect_edge_and_branch_force)
PR middle-end/20648
* bb-reorder.c (duplicate_computed_gotos): Do not unfactor
a computed goto if the edge to the computed goto block has
incoming abnormal edges. Clarify how the function works.
From-SVN: r97486
Nathan Sidwell [Sun, 3 Apr 2005 10:27:51 +0000 (10:27 +0000)]
params.c (set_param_value): Use gcc_assert & gcc_unreachable.
* params.c (set_param_value): Use gcc_assert & gcc_unreachable.
* passes.c (open_dump_file, rest_of_handle_final): Likewise.
* postreload-gcse.c (expr_equiv_p, oprs_unchanged_p,
hash_scan_set, reg_set_between_after_reload_p,
reg_used_between_after_reload_p, get_avail_load_store_reg,
eliminate_partially_redundant_load): Likewise.
* postreload.c (reload_cse_simplify_set,
reload_combine_note_use): Likewise.
* predict.c (predict_insn, expected_value_to_br_prob,
propagate_freq, expensive_function_p): Likewise.
* print-rtl.c (print_rtx): Likewise.
* profile.c (instrument_edges, instrument_values,
compute_branch_probabilities, branch_prob, union_groups,
tree_register_profile_hooks, rtl_register_profile_hooks): Likewise.
* protoize.c (in_system_include_dir, file_could_be_converted,
file_normally_convertible, gen_aux_info_file, seek_to_line,
do_cleaning): Likewise.
* tree-ssa-alias.c (collect_points_to_info_r): Likewise.
* tree-ssa-ccp.c (execute_fold_all_builtins): Likewise.
* tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
From-SVN: r97485
Mostafa Hagog [Sun, 3 Apr 2005 09:27:07 +0000 (09:27 +0000)]
cfg.c (clear_bb_flags): Don't clear BB_DISABLE_SCHEDULE.
2005-03-31 Mostafa Hagog <mustafa@il.ibm.com>
* cfg.c (clear_bb_flags): Don't clear BB_DISABLE_SCHEDULE.
* modulo-sched.c (undo_replace_buff_elem): New structure.
(kernel_number_of_cycles, ps_unschedule_node,
undo_generate_reg_moves,free_undo_replace_buff,
undo_permute_partial_schedule, loop_single_full_bb_p,
SIMPLE_SMS_LOOP_P, loop_canon_p, canon_loop,
build_loops_structure, get_sched_window): New.
(generate_reg_moves): Return undo_replace_buff_elem and other
fixes.
(generate_prolog_epilog): Remove old loop versioning.
(sms_schedule): Use loop information and loop_version.
(sms_schedule_by_order): Split part of it to get_sched_window.
* passes.c (rest_of_handle_sms): call cfg_layout_initialize
cfg_layout_finalize and free_dominance_info before/after SMS.
From-SVN: r97484
Mostafa Hagog [Sun, 3 Apr 2005 08:44:33 +0000 (08:44 +0000)]
cfghooks.c (lv_flush_pending_stmts, [...]): New.
2005-03-30 Mostafa Hagog <mustafa@il.ibm.com>
* cfghooks.c (lv_flush_pending_stmts,
cfg_hook_duplicate_loop_to_header_edge, extract_cond_bb_edges,
lv_adjust_loop_header_phi, lv_add_condition_to_bb): New.
* cfghooks.h (cfg_hook_duplicate_loop_to_header_edge,
lv_add_condition_to_bb,
lv_adjust_loop_header_phi, extract_cond_bb_edges,
flush_pending_stmts): New in cfg_hooks structure.
(cfg_hook_duplicate_loop_to_header_edge, lv_flush_pending_stmts,
extract_cond_bb_edges, lv_adjust_loop_header_phi,
lv_add_condition_to_bb): New declarations.
* cfgloop.h (duplicate_loop_to_header_edge): Change return type to
bool.
(loop_version): Declare.
* cfgloopmanip.c (cfghooks.h): Include.
(duplicate_loop_to_header_edge): Change return type to bool.
(loop_version, lv_adjust_loop_entry_edge): Move here.
* cfgrtl.c (cfgloop.h): Include.
(rtl_verify_flow_info_1): Fix.
(rtl_lv_add_condition_to_bb, rtl_extract_cond_bb_edges): New.
(rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Add hooks to
initialization.
* tree-cfg.c (tree_lv_adjust_loop_header_phi,
tree_lv_add_condition_to_bb): New.
(tree_cfg_hooks): Add new hooks to initialization.
* tree-ssa-loop-manip.c (lv_adjust_loop_header_phi,
lv_adjust_loop_entry_edge, tree_ssa_loop_version): Remove.
From-SVN: r97481
Anthony Green [Sun, 3 Apr 2005 08:08:59 +0000 (08:08 +0000)]
re PR libgcj/20727 (double free or corruption)
2005-04-02 Anthony Green <green@redhat.com>
PR libgcj/20727
* java/nio/DirectByteBufferImpl.java: Fix buffer ownership bug.
From-SVN: r97479
Dale Ranta [Sun, 3 Apr 2005 08:07:43 +0000 (08:07 +0000)]
re PR libfortran/20068 (Backspace problems)
PR libfortran/20068
PR libfortran/20125
PR libfortran/20156
PR libfortran/20471
* io/backspace.c (unformatted_backspace): Fix error in arithmetic.
(st_backspace): When in WRITING mode, we flush and falling back
into READING mode. In all cases, correctly position the stream.
* gfortran.dg/backspace.f: New test.
Co-Authored-By: Francois-Xavier Coudert <coudert@clipper.ens.fr>
From-SVN: r97478
Kazu Hirata [Sun, 3 Apr 2005 06:32:13 +0000 (06:32 +0000)]
stormy16-protos.h: Remove the prototypes for xstormy16_ineqsi_operator...
* config/stormy16/stormy16-protos.h: Remove the prototypes for
xstormy16_ineqsi_operator, equality_operator,
inequality_operator, shift_operator,
xstormy16_below100_operand, xstormy16_below100_or_register,
xstormy16_splittable_below100_or_register,
xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand.
* config/stormy16/stormy16.c (xstormy16_ineqsi_operator,
equality_operator, inequality_operator,
xstormy16_below100_operand, xstormy16_below100_or_register,
xstormy16_splittable_below100_or_register,
xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand,
nonimmediate_nonstack_operand, shift_operator): Move to
predicates.md.
* config/stormy16/stormy16.h (PREDICATE_CODES): Remove.
* config/stormy16/stormy16.md: Include predicates.md.
* config/stormy16/predicates.md: New.
From-SVN: r97476
Kazu Hirata [Sun, 3 Apr 2005 05:37:21 +0000 (05:37 +0000)]
stormy16.h (PREDICATE_CODES): Add SUBREG to xstormy16_below100_or_register...
* config/stormy16/stormy16.h (PREDICATE_CODES): Add SUBREG to
xstormy16_below100_or_register,
xstormy16_splittable_below100_or_register, and
nonimmediate_nonstack_operand.
From-SVN: r97475
Steven G. Kargl [Sun, 3 Apr 2005 01:20:56 +0000 (01:20 +0000)]
Document ALLOCATED, ANINT, ANY, ASIN; Fix typos.
From-SVN: r97473
Kazu Hirata [Sun, 3 Apr 2005 00:38:00 +0000 (00:38 +0000)]
iq2000.c (uns_arith_operand, [...]): Move to predicates.md.
* config/iq2000/iq2000.c (uns_arith_operand, arith_operand,
small_int, large_int, reg_or_0_operand, simple_memory_operand,
equality_op, cmp_op, pc_or_label_operand, call_insn_operand,
move_operand, power_of_2_operand): Move to predicates.md.
* config/iq2000/iq2000.h (SPECIAL_MODE_PREDICATES,
PREDICATE_CODE): Remove.
* config/iq2000/iq2000.md: Include predicates.md.
* config/iq2000/predicates.md: New.
From-SVN: r97472
GCC Administrator [Sun, 3 Apr 2005 00:16:56 +0000 (00:16 +0000)]
Daily bump.
[[Split portion of a mixed commit.]]
From-SVN: r97470.2
Mark Wielaard [Sat, 2 Apr 2005 21:03:33 +0000 (21:03 +0000)]
BasicAttributes.java (equals): Compare to any Attributes and attribute order doesn't matter.
2005-04-02 Mark Wielaard <mark@klomp.org>
* javax/naming/directory/BasicAttributes.java (equals): Compare to any
Attributes and attribute order doesn't matter.
(BasicAttributesEnumeration.where): Initialize to zero.
(BasicAttributesEnumeration.nextElement): Update and compare where
appropriately (zero based).
From-SVN: r97461
Richard Sandiford [Sat, 2 Apr 2005 20:44:38 +0000 (20:44 +0000)]
* config/m68hc11/m68hc11.h (target_flags, MASK_SHORT)
(MASK_AUTO_INC_DEC, MASK_M6811, MASK_M6812, MASK_M68S12)
(MASK_NO_DIRECT_MODE, MASK_MIN_MAX, MASK_LONG_CALLS)
(TARGET_SHORT, TARGET_M6811, TARGET_M6812, TARGET_M68S12)
(TARGET_AUTO_INC_DEC, TARGET_MIN_MAX, TARGET_NO_DIRECT_MODE)
(TARGET_LONG_CALLS, TARGET_SWITCHES, TARGET_OPTIONS)
(SUBTARGET_SWITCHES, SUBTARGET_OPTIONS, m68hc11_regparm_string)
(m68hc11_reg_alloc_order, m68hc11_soft_reg_count)
(TARGET_M68HC11): Delete.
(TARGET_DEFAULT): Change the default setting from MASK_M6811 to 0.
* config/m68hc11/m68hc12.h (TARGET_M68HC12): Delete.
* config/m68hc11/m68hc11.c (m68hc11_regparm_string)
(m68hc11_reg_alloc_order, m68hc11_soft_reg_count)
(nb_soft_regs): Delete.
(TARGET_DEFAULT_TARGET_FLAGS): Override default with TARGET_DEFAULT.
(m68hc11_override_options): Remove the code that caters for MASK_M6811
and MASK_M6812 being set simultaneously. Change the code that sets
the default m68hc11_soft_reg_count to use integers instead of strings.
(m68hc11_conditional_register_usage, hard_regno_mode_ok): Use
m68hc11_soft_reg_count (which now has an int type) as the number
of soft registers.
* config/m68hc11/m68hc11.opt: New file.
From-SVN: r97458
Kaveh R. Ghazi [Sat, 2 Apr 2005 20:28:00 +0000 (20:28 +0000)]
bcmp.c: Fix warnings and implement using memcmp.
* bcmp.c: Fix warnings and implement using memcmp.
* bcopy.c: Fix warnings.
* bzero.c: Fix warnings and implement using memset.
From-SVN: r97457
Kaveh R. Ghazi [Sat, 2 Apr 2005 19:57:12 +0000 (19:57 +0000)]
configure.ac (ac_libiberty_warn_cflags): Add -Wwrite-strings -Wstrict-prototypes.
* configure.ac (ac_libiberty_warn_cflags): Add -Wwrite-strings
-Wstrict-prototypes.
* configure, config.in: Regenerate.
* bsearch.c, index.c, rindex.c, strstr.c, strtol.c, waitpid.c: Fix
warnings and reconcile interfaces with relevant standards.
From-SVN: r97456
Kazu Hirata [Sat, 2 Apr 2005 19:31:23 +0000 (19:31 +0000)]
m68hc11-protos.h: Add a prototype for m68hcc_auto_inc_p.
* config/m68hc11/m68hc11-protos.h: Add a prototype for
m68hcc_auto_inc_p.
Remove the prototypes for tst_operand, cmp_operand,
stack_register_operand, d_register_operand,
hard_addr_reg_operand, splitable_operand,
m68hc11_logical_operator, m68hc11_arith_operator,
m68hc11_non_shift_operator, m68hc11_shift_operator,
m68hc11_unary_operator, m68hc11_eq_compare_operator,
non_push_operand, hard_reg_operand, and
reg_or_some_mem_operand.
* config/m68hc11/m68hc11.c (m68hcc_auto_inc_p): Make it
extern.
(tst_operand, cmp_operand, non_push_operand,
splitable_operand, reg_or_some_mem_operand,
stack_register_operand, d_register_operand,
hard_addr_reg_operand, hard_reg_operand,
m68hc11_eq_compare_operator, m68hc11_logical_operator,
m68hc11_arith_operator, m68hc11_non_shift_operator,
m68hc11_shift_operator, m68hc11_unary_operator): Move to
predicates.md.
* config/m68hc11/m68hc11.h (PREDICATE_CODES): Remove.
* config/m68hc11/m68hc11.md: Include predicates.md.
* config/m68hc11/predicates.md: New.
From-SVN: r97455
Kazu Hirata [Sat, 2 Apr 2005 17:41:35 +0000 (17:41 +0000)]
fr30.h (PREDICATE_CODES): Remove fp_displacement_operand, sp_displacement_operand.
* config/fr30/fr30.h (PREDICATE_CODES): Remove
fp_displacement_operand, sp_displacement_operand.
From-SVN: r97453
Ian Lance Taylor [Sat, 2 Apr 2005 17:17:02 +0000 (17:17 +0000)]
* cp-demangle.c: Update copyright.
From-SVN: r97452
Alexandre Oliva [Sat, 2 Apr 2005 17:08:07 +0000 (17:08 +0000)]
re PR debug/19345 (Segmentation fault with VLA and inlining and dwarf2)
gcc/ChangeLog:
PR debug/19345
* dwarf2out.c (add_abstract_origin_attribute): Revert accidental
change checked in along with 2005-03-03's patch for debug/20253.
* tree-inline.c (remap_type): Remap TYPE_STUB_DECL.
(remap_decl): Insert type decl in map earlier.
gcc/testsuite/ChangeLog:
* gcc.dg/pr19345.c: New test.
From-SVN: r97449
Alexandre Oliva [Sat, 2 Apr 2005 17:02:15 +0000 (17:02 +0000)]
re PR tree-optimization/20640 (ICE on NULL PHI_ARG_DEF)
gcc/ChangeLog:
PR tree-optimization/20640
* tree-ssa-dce.c (remove_dead_stmt): Don't redirect edge to
post-dominator if it has phi nodes.
(eliminate_unnecessary_stmts): Remove dead phis in all blocks
before dead statements.
gcc/testsuite/ChangeLog:
PR tree-optimization/20640
* gcc.dg/torture/tree-loop-1.c: New.
From-SVN: r97446
Alexandre Oliva [Sat, 2 Apr 2005 16:56:27 +0000 (16:56 +0000)]
re PR middle-end/20491 (internal compiler error: in subreg_regno_offset, at rtlanal.c:3042)
PR middle-end/20491
* final.c (alter_subreg): Don't call subreg_regno for a non-REG.
From-SVN: r97444
Alexandre Oliva [Sat, 2 Apr 2005 16:53:44 +0000 (16:53 +0000)]
re PR rtl-optimization/20290 (Miscompilation on ppc/arm with -Os)
gcc/ChangeLog:
PR rtl-optimization/20290
* loop.c (for_each_insn_in_loop): Don't assume the loop body runs
in every iteration if the entry point is the exit test.
gcc/testsuite/ChangeLog:
PR rtl-optimization/20290
* gcc.c-torture/execute/loop-ivopts-2.c: New.
From-SVN: r97441
Hans-Peter Nilsson [Sat, 2 Apr 2005 16:34:41 +0000 (16:34 +0000)]
* config/cris/cris.md (attribute "length"): Define.
From-SVN: r97440
Douglas Gregor [Sat, 2 Apr 2005 12:56:18 +0000 (12:56 +0000)]
tuple_iterate.h (tuple_element): Use new macro _GLIBCXX_T_NUM_ARGS_PLUS_1 because _T is a macro on Darwin.
2005-04-02 Douglas Gregor <doug.gregor@gmail.com>
* include/tr1/tuple_iterate.h (tuple_element): Use new macro
_GLIBCXX_T_NUM_ARGS_PLUS_1 because _T is a macro on Darwin.
* include/tr1/repeat.h (_GLIBCXX_T_NUM_ARGS_PLUS_1): Define for
each iteration.
* scripts/gen_includers.h: Define _GLIBCXX_T_NUM_ARGS_PLUS_1 for
each iteration.
From-SVN: r97438
Geoffrey Keating [Sat, 2 Apr 2005 10:46:03 +0000 (10:46 +0000)]
predicates.md (indexed_or_indirect_operand): New.
* config/rs6000/predicates.md (indexed_or_indirect_operand): New.
(word_offset_memref_operand): New.
* config/rs6000/rs6000-protos.h (word_offset_memref_operand): Delete.
(indexed_or_indirect_operand): Delete.
* config/rs6000/rs6000.c (word_offset_memref_operand): Delete.
(indexed_or_indirect_operand): Delete.
From-SVN: r97437
Geoffrey Keating [Sat, 2 Apr 2005 10:15:27 +0000 (10:15 +0000)]
* config/rs6000/t-darwin8: Comment out ppc64 multilib.
From-SVN: r97436
Geoffrey Keating [Sat, 2 Apr 2005 09:58:36 +0000 (09:58 +0000)]
re PR target/20650 (float.c fails to build with weird error message)
PR 20650
* config/rs6000/rs6000.md (fix_truncdfsi2): Make destination
a register.
From-SVN: r97435
Geoffrey Keating [Sat, 2 Apr 2005 09:48:31 +0000 (09:48 +0000)]
t-darwin (TARGET_LIBGCC2_CFLAGS): Add -pipe.
* config/rs6000/t-darwin (TARGET_LIBGCC2_CFLAGS): Add -pipe.
* config/t-darwin (TARGET_LIBGCC2_CFLAGS): Likewise.
From-SVN: r97434
Jan-Benedict Glaw [Sat, 2 Apr 2005 02:29:49 +0000 (02:29 +0000)]
* gcc/config/vax/vax.md: Spellcheck, fix whitespace.
From-SVN: r97430
Thomas Fitzsimmons [Sat, 2 Apr 2005 02:26:51 +0000 (02:26 +0000)]
re PR libgcj/20090 (gij should be implemented in Java)
2005-04-01 Thomas Fitzsimmons <fitzsim@redhat.com>
* gcj.texi (Invoking gij): Add descriptions of new -X options.
Mention recognized-and-ignored compatibility options.
(Memory allocation): Add descriptions of JvMalloc, JvRealloc and
JvFree.
(About CNI): Add Memory allocation section.
2005-04-01 Thomas Fitzsimmons <fitzsim@redhat.com>
PR libgcj/20090, PR libgcj/20526
* gij.cc (nonstandard_opts_help): New function.
(add_option): New function.
(main): Support java options. Set java.class.path. Don't set
_Jv_Jar_Class_Path.
* prims.cc (parse_x_arg): New function.
(parse_init_args): Call parse_x_arg for -X and _ options, when
ignoreUnrecognized is true.
(new _Jv_RunMain): New vm_args variant.
(old _Jv_RunMain): Call new vm_args _Jv_RunMain.
(_Jv_Jar_Class_Path): Remove variable.
* include/java-props.h: Likewise.
* include/cni.h (JvRealloc): New function.
* include/jvm.h (_Jv_RunMain): Declare vm_args variant.
* java/lang/natRuntime.cc (insertSystemProperties): Remove
_Jv_Jar_Class_Path logic. Use JV_VERSION and JV_API_VERSION
macros.
* configure.ac (JV_VERSION): Define.
(JV_API_VERSION): Likewise.
* configure: Regenerate.
* include/config.h.in: Regenerate.
From-SVN: r97429
Douglas Gregor [Sat, 2 Apr 2005 02:02:29 +0000 (02:02 +0000)]
functional (_Maybe_wrap_member_pointer): Wrap up member pointers in _Mem_fn but let other function objects pass through...
2005-04-01 Douglas Gregor <doug.gregor@gmail.com>
* include/tr1/functional (_Maybe_wrap_member_pointer): Wrap up
member pointers in _Mem_fn but let other function objects pass
through unchanged.
* include/tr1/functional_iterator (bind): Reduce number of bind()
overloads to two to eliminate ambiguities. Use
_Maybe_wrap_member_pointer to handle member pointers gracefully.
From-SVN: r97428
Mark Anderson [Sat, 2 Apr 2005 01:18:45 +0000 (01:18 +0000)]
natDouble.cc (parseDouble): Handle NaN, Infinity and -Infinity as parameters.
2005-04-01 Mark Anderson <mark@panonet.net>
* java/lang/natDouble.cc (parseDouble): Handle NaN, Infinity and
-Infinity as parameters.
From-SVN: r97424
GCC Administrator [Sat, 2 Apr 2005 00:16:38 +0000 (00:16 +0000)]
Daily bump.
[[Split portion of a mixed commit.]]
From-SVN: r97422.2
Mark Mitchell [Fri, 1 Apr 2005 20:20:22 +0000 (20:20 +0000)]
Makefile.am (noinst_PROGRAMS): Remove.
* testsuite/Makefile.am (noinst_PROGRAMS): Remove.
(site.exp): Write out the path to the baseline file.
(check-abi): Use DejaGNU.
(check-abi-verbose): Remove.
* testsuite/Makefile.in: Regenerated.
* testsuite/abi_check.cc (main): Check the return value from
compare_symbols.
* testsuite/testsuite_abi.cc (compare_symbols): Return a value.
* testsuite/testsuite_abi.h (compare_symbols): Adjust prototype.
* testsuite/libstdc++-abi/abi.exp: New file.
From-SVN: r97417
Michael Koch [Fri, 1 Apr 2005 20:04:21 +0000 (20:04 +0000)]
2005-04-01 Michael Koch <konqueror@gmx.de>
* java/io/PipedInputStream.java
(read): Make sure a positive byte value is returned. Revised javadoc.
Thanks to Olafur Bragason for reporting these bugs.
From-SVN: r97416
Tom Tromey [Fri, 1 Apr 2005 19:19:13 +0000 (19:19 +0000)]
natVMClassLoader.cc (getSystemClassLoaderInternal): Updated for name change.
* java/lang/natVMClassLoader.cc (getSystemClassLoaderInternal):
Updated for name change.
(nativeFindClass): New method.
(loadClass): Use nativeFindClass.
* java/lang/natClassLoader.cc (_Jv_FindClass): Use single-argument
form of loadClass.
* java/lang/VMClassLoader.java (tried_libraries, lib_control,
LIB_FULL, LIB_CACHE, LIB_NEVER): New fields from old
VMClassLoader.
(initialize): New method.
(nativeFindClass): Declare.
* gnu/gcj/runtime/natVMClassLoader.cc: Removed.
* gnu/gcj/runtime/VMClassLoader.java: Removed.
* gnu/gcj/runtime/ExtensionClassLoader.java: Renamed from
VMClassLoader.java.
(definePackageForNative): Removed.
(tried_libraries, LIB_CACHE, LIB_FULL, LIB_NEVER, lib_control):
Moved to VMClassLoader.java.
* prims.cc (_Jv_CreateJavaVM): Updated for renaming.
* Makefile.am (gnu/gcj/runtime/ExtensionClassLoader.h): Renamed.
(ordinary_java_source_files): Added ExtensionClassLoader.java,
removed VMClassLoader.java.
(nat_source_files): Removed natVMClassLoader.cc.
From-SVN: r97414
Tom Tromey [Fri, 1 Apr 2005 17:54:27 +0000 (17:54 +0000)]
Makefile.in: Rebuilt.
* Makefile.in: Rebuilt.
* Makefile.am (db_pathtail): Use $(gcc_version), not
@gcc_version@.
From-SVN: r97412
Jeroen Frijters [Fri, 1 Apr 2005 17:39:13 +0000 (17:39 +0000)]
2005-04-01 Jeroen Frijters <jeroen@frijters.net>
* java/util/Timer.java
(run): Stop the queue if a task throws an exception.
From-SVN: r97411
Tom Tromey [Fri, 1 Apr 2005 17:18:39 +0000 (17:18 +0000)]
decl.c (java_init_decl_processing): Fix types of _Jv_MonitorEnter...
* decl.c (java_init_decl_processing): Fix types of
_Jv_MonitorEnter, _Jv_MonitorExit, _Jv_AllocObject,
_Jv_AllocObjectNoFinalizer, _Jv_Throw, _Jv_NewPrimArray,
_Jv_JNI_PopSystemFrame, _Jv_divI, _Jv_remI, _Jv_divJ, _Jv_remJ.
From-SVN: r97409
Ian Lance Taylor [Fri, 1 Apr 2005 16:44:31 +0000 (16:44 +0000)]
gcc.c: Don't include <sys/resource.h> or declare getrusage.
* gcc.c: Don't include <sys/resource.h> or declare getrusage.
(rus, prus): Remove static variables.
(execute): Use pex_run/pex_get_status rather than pexecute/pwait.
(process_command): Permit report_times and use_pipes together.
From-SVN: r97406
Joseph Myers [Fri, 1 Apr 2005 16:16:38 +0000 (17:16 +0100)]
c-decl.c (validate_proto_after_old_defn): Look at TYPE_MAIN_VARIANT of argument types.
* c-decl.c (validate_proto_after_old_defn): Look at
TYPE_MAIN_VARIANT of argument types.
testsuite:
* gcc.dg/old-style-then-proto-1.c: New test.
From-SVN: r97403
Paul Brook [Fri, 1 Apr 2005 15:59:09 +0000 (15:59 +0000)]
arm.c (thumb_call_via_label): Include space for SP.
2005-04-01 Paul Brook <paul@codesourcery.com>
* config/arm/arm.c (thumb_call_via_label): Include space for SP.
(arm_output_function_epilogue): Allow call_via_SP.
(thumb_call_via_reg, arm_file_end): Ditto.
* config/arm/arm.h (struct machine_function): Include space for SP.
(thumb_call_via_label): Update declaration.
From-SVN: r97402
Paul Brook [Fri, 1 Apr 2005 15:58:41 +0000 (15:58 +0000)]
arm.c (thumb_call_via_label): Include space for SP.
2005-04-01 Paul Brook <paul@codesourcery.com>
* config/arm/arm.c (thumb_call_via_label): Include space for SP.
(arm_output_function_epilogue): Allow call_via_SP.
(thumb_call_via_reg, arm_file_end): Ditto.
* config/arm/arm.h (struct machine_function): Include space for SP.
(thumb_call_via_label): Update declaration.
[[Split portion of a mixed commit.]]
From-SVN: r97400.2
Ian Lance Taylor [Fri, 1 Apr 2005 15:27:58 +0000 (15:27 +0000)]
final.c (final_scan_insn): Revert part of 2005-03-30 patch...
* final.c (final_scan_insn): Revert part of 2005-03-30 patch: when
doing a peephole optimization, once again put any notes in the
proper position.
From-SVN: r97399
Francois-Xavier Coudert [Fri, 1 Apr 2005 15:27:05 +0000 (17:27 +0200)]
backspace.f90: Check after backspace and read was incorrect.
* gfortran.fortran-torture/execute/backspace.f90: Check
after backspace and read was incorrect.
From-SVN: r97397
Andrew Pinski [Fri, 1 Apr 2005 15:01:30 +0000 (15:01 +0000)]
re PR treelang/20604 (treelang does not get passed -fPIC by default on *-darwin)
2005-04-01 Andrew Pinski <pinskia@physics.uc.edu>
PR treelang/20604
* lang-spec.c: Simplify @treelang to what the other
languages do.
From-SVN: r97396
Kazu Hirata [Fri, 1 Apr 2005 14:36:37 +0000 (14:36 +0000)]
* bb-reorder.c, fold-const.c, varasm.c: Fix comment typos.
From-SVN: r97395
Nathan Sidwell [Fri, 1 Apr 2005 14:17:36 +0000 (14:17 +0000)]
local-alloc.c (update_equiv_regs): Use gcc_assert, gcc_unreachable.
* local-alloc.c (update_equiv_regs): Use gcc_assert, gcc_unreachable.
(block_alloc, find_free_reg): Likewise.
* loop-doloop.c (doloop_modify): Likewise.
* loop-invariant.c (record_use): Likewise.
* loop-iv.c (get_biv_step_1, get_biv_step, iv_analyze,
get_iv_value, canon_condition, eliminate_implied_condition,
eliminate_implied_condition, simplify_using_initial_values,
shorten_into_mode, canonicalize_iv_subregs,
iv_number_of_iterations): Likewise.
* loop-unroll.c (expand_var_during_unrolling): Likewise.
* loop-unswitch.c (compare_and_jump_seq, unswitch_single_loop,
unswitch_loop): Likewise.
* loop.c (INSN_LUID, loop_optimize, rtx_equal_for_loop_p,
move_movables, replace_call_address, find_and_verify_loops,
rtx_equal_for_prefetch_p, fold_rtx_mult_add, loop_iterations,
record_giv, final_giv_value, general_induction_var,
simplify_giv_expr, extension_within_bounds_p, try_copy_prop,
loop_giv_dump): Likewise.
From-SVN: r97394
Kazu Hirata [Fri, 1 Apr 2005 14:13:20 +0000 (14:13 +0000)]
treelang.texi: Fix typos.
* treelang/treelang.texi: Fix typos.
* treelang/treetree.c: Fix comment typos.
From-SVN: r97393
Nathan Sidwell [Fri, 1 Apr 2005 14:08:01 +0000 (14:08 +0000)]
gcov-io.h (GCOV_CHECK, [...]): Remove.
* gcov-io.h (GCOV_CHECK, GCOV_CHECK_READING,
GCOV_CHECK_WRITING): Remove.
(gcov_position, gcov_rewrite): Use gcc_assert.
* gcov-io.c (gcov_open, gcov_write_words, gcov_write_length,
gcov_read_words, gcov_sync, gcov_seek): Use gcc_assert.
* libgcov.c (__gcov_merge_single, __gcov_merge_delta): Use
gcc_assert.
From-SVN: r97392
Kazu Hirata [Fri, 1 Apr 2005 14:03:36 +0000 (14:03 +0000)]
* tree-inline.c: Fix a typo.
From-SVN: r97391
Nathan Sidwell [Fri, 1 Apr 2005 13:58:20 +0000 (13:58 +0000)]
configure.ac (enable-checking): Explicitly set all variables for collective switch values.
* configure.ac (enable-checking): Explicitly set all variables for
collective switch values. Alphabetize variables. Rename
ac_checking_valgrind to ac_valgrind_checking. Allow 'none' as
synonym for 'no'.
* doc/install.texi (enable-checking): Update documentation.
* configure: Rebuilt.
From-SVN: r97390
Kazu Hirata [Fri, 1 Apr 2005 13:55:11 +0000 (13:55 +0000)]
tree-inline.c (copy_body_r): Use CONSTANT_CLASS_P where possible.
* tree-inline.c (copy_body_r): Use CONSTANT_CLASS_P where
possible.
From-SVN: r97389
Kaveh R. Ghazi [Fri, 1 Apr 2005 13:48:19 +0000 (13:48 +0000)]
strcat.c: Check the result buffer past the terminating NUL using memcmp.
* gcc.c-torture/execute/builtins/strcat.c: Check the result
buffer past the terminating NUL using memcmp.
* gcc.c-torture/execute/builtins/strncat.c: Likewise.
* gcc.c-torture/execute/builtins/strncpy.c: Likewise.
From-SVN: r97388
Kaveh R. Ghazi [Fri, 1 Apr 2005 13:45:36 +0000 (13:45 +0000)]
strncmp-2.c: Also test x86_64.
* gcc.c-torture/execute/builtins/strncmp-2.c: Also test x86_64.
Fix unused/uninitialized variable warnings.
From-SVN: r97387
Kaveh R. Ghazi [Fri, 1 Apr 2005 13:33:11 +0000 (13:33 +0000)]
strncat.c: Fix uninitialized var.
* gcc.c-torture/execute/builtins/lib/strncat.c: Fix uninitialized var.
* gcc.c-torture/execute/builtins/lib/strpbrk.c: Fix discarded const.
* gcc.c-torture/execute/builtins/strlen-3.c: Fix uninitialized var.
* gcc.c-torture/execute/builtins/strncmp.c: Delete unused var.
From-SVN: r97386
Kaveh R. Ghazi [Fri, 1 Apr 2005 13:31:28 +0000 (13:31 +0000)]
abs-1-lib.c, [...]: Add missing prototypes.
* gcc.c-torture/execute/builtins/abs-1-lib.c,
gcc.c-torture/execute/builtins/fputs-lib.c,
gcc.c-torture/execute/builtins/lib/fprintf.c,
gcc.c-torture/execute/builtins/lib/main.c,
gcc.c-torture/execute/builtins/lib/memcmp.c,
gcc.c-torture/execute/builtins/lib/memmove.c,
gcc.c-torture/execute/builtins/lib/mempcpy.c,
gcc.c-torture/execute/builtins/lib/memset.c,
gcc.c-torture/execute/builtins/lib/printf.c,
gcc.c-torture/execute/builtins/lib/sprintf.c,
gcc.c-torture/execute/builtins/lib/stpcpy.c,
gcc.c-torture/execute/builtins/lib/strchr.c,
gcc.c-torture/execute/builtins/lib/strcmp.c,
gcc.c-torture/execute/builtins/lib/strcpy.c,
gcc.c-torture/execute/builtins/lib/strcspn.c,
gcc.c-torture/execute/builtins/lib/strlen.c,
gcc.c-torture/execute/builtins/lib/strncat.c,
gcc.c-torture/execute/builtins/lib/strncmp.c,
gcc.c-torture/execute/builtins/lib/strncpy.c,
gcc.c-torture/execute/builtins/lib/strrchr.c,
gcc.c-torture/execute/builtins/lib/strspn.c,
gcc.c-torture/execute/builtins/lib/strstr.c,
gcc.c-torture/execute/builtins/memops-asm-lib.c,
gcc.c-torture/execute/builtins/strlen-2.c,
gcc.c-torture/execute/builtins/strstr-asm-lib.c: Add missing
prototypes.
From-SVN: r97385