DJ Delorie [Thu, 2 Jun 2005 22:02:59 +0000 (18:02 -0400)]
convert.c (convert_to_pointer): Avoid recursion if no conversion is needed.
* convert.c (convert_to_pointer): Avoid recursion if no conversion
is needed.
From-SVN: r100518
Richard Guenther [Thu, 2 Jun 2005 21:55:52 +0000 (21:55 +0000)]
tree-chrec.c (chrec_fold_plus_1): Ensure we build binary operations with the correct types.
2005-06-02 Richard Guenther <rguenth@gcc.gnu.org>
* tree-chrec.c (chrec_fold_plus_1): Ensure we build
binary operations with the correct types.
* tree-ssa-loo-ivopts.c (idx_find_step): Use sizetype
for all computation.
From-SVN: r100517
Kazu Hirata [Thu, 2 Jun 2005 21:54:42 +0000 (21:54 +0000)]
tree-vrp.c, [...]: Fix comment typos.
* tree-vrp.c, config/arm/arm.md, config/arm/arm1020e.md,
config/rs6000/rs6000.md: Fix comment typos. Follow splling
conventions.
* doc/install.texi: Fix a typo.
From-SVN: r100516
Geoffrey Keating [Thu, 2 Jun 2005 21:45:57 +0000 (21:45 +0000)]
Index: ChangeLog
2005-05-31 Geoffrey Keating <geoffk@geoffk.org>
* config/rs6000/rs6000.md (sync_boolcshort_internal): New.
* config/rs6000/rs6000.c (rs6000_emit_sync): Shift count must
be complemented for big-endian. Mask for AND must be rotated,
not shifted. Handle short operands with NOT on the memory
operation.
Index: testsuite/ChangeLog
2005-05-31 Geoffrey Keating <geoffk@geoffk.org>
* lib/target-supports.exp
(check_effective_target_sync_char_short): New.
* gcc.dg/sync-2.c: New.
From-SVN: r100515
Jan Hubicka [Thu, 2 Jun 2005 20:33:04 +0000 (22:33 +0200)]
cgraphunit.c (cgraph_function_and_variable_visibility): Extern inline functions are not local.
* cgraphunit.c (cgraph_function_and_variable_visibility): Extern
inline functions are not local.
From-SVN: r100514
Kazu Hirata [Thu, 2 Jun 2005 20:21:54 +0000 (20:21 +0000)]
gimplify.c (gimplify_ctx): Change the type of case_labels to VEC from VARRAY.
* gimplify.c (gimplify_ctx): Change the type of case_labels to
VEC from VARRAY.
(gimplify_switch_expr, gimplify_case_label_expr): Adjust uses
of case_labels.
From-SVN: r100513
Richard Guenther [Thu, 2 Jun 2005 20:09:01 +0000 (20:09 +0000)]
c-typeck.c (build_indirect_ref): Build INDIRECT_REF with correct type.
2005-06-02 Richard Guenther <rguenth@gcc.gnu.org>
* c-typeck.c (build_indirect_ref): Build INDIRECT_REF
with correct type.
* gcc.dg/wtypequal.c: New testcase.
From-SVN: r100512
Nathan Sidwell [Thu, 2 Jun 2005 20:02:26 +0000 (20:02 +0000)]
* method.c (synthesize_method): Add addtional arg to warning call.
From-SVN: r100511
Ulrich Weigand [Thu, 2 Jun 2005 19:57:24 +0000 (19:57 +0000)]
s390.c (s390_add_execute): Do not handle out-of-pool execute templates.
* config/s390/s390.c (s390_add_execute): Do not handle out-of-pool
execute templates.
(s390_dump_pool): Likewise.
(s390_mainpool_start, s390_mainpool_finish): Likewise.
(s390_chunkify_start): Likewise.
(s390_dump_execute): Remove.
(s390_reorg): Handle out-of-pool execute templates.
From-SVN: r100510
Aldy Hernandez [Thu, 2 Jun 2005 19:54:19 +0000 (19:54 +0000)]
configure.in: Set noconfigdirs for ms1.
* configure.in: Set noconfigdirs for ms1.
* configure: Regenerate.
Co-Authored-By: Michael Snyder <msnyder@redhat.com>
Co-Authored-By: Stan Cox <scox@redhat.com>
From-SVN: r100509
Adrian Straetling [Thu, 2 Jun 2005 19:46:38 +0000 (19:46 +0000)]
optabs.c: (expand_bool_compare_and_swap): Emit barrier after unconditional jump.
2005-06-02 Adrian Straetling <straetling@de.ibm.com>
* optabs.c: (expand_bool_compare_and_swap): Emit barrier after
unconditional jump.
From-SVN: r100508
Jan Hubicka [Thu, 2 Jun 2005 19:41:31 +0000 (21:41 +0200)]
cgraph.c (cgraph_node): Maintain master clones.
* cgraph.c (cgraph_node): Maintain master clones.
(cgraph_remove_node): Likewise.
(availability_names): New static variable.
(dump_cgraph_node): Dump availability.
(dump_cgraph_varpool_node): Likewise.
(cgraph_is_master_clone, cgraph_master_clone,
cgraph_function_body_availability,
cgraph_variable_initializer_availability): New functions.
* cgraph.h (availability): New enum.
(struct cgraph_node): Add master_clone.
(cgraph_is_master_clone, cgraph_master_clone,
cgraph_function_body_availability,
cgraph_variable_initializer_availability): Declare.
* cgraphunit.c (cgraph_expand_function): Setcgraph_function_flags_ready.
(cgraph_remove_unreachable_nodes): Remove unreachable nodes.
* ipa-inline.c (cgraph_decide_inlining): Do not call
cgraph_remove_unreachable_nodes.
From-SVN: r100507
Jan Hubicka [Thu, 2 Jun 2005 18:35:59 +0000 (20:35 +0200)]
cgraphunit.c (cgraph_function_and_variable_visibility): Fix typo in previous patch.
* cgraphunit.c (cgraph_function_and_variable_visibility): Fix typo in
previous patch.
From-SVN: r100506
Diego Novillo [Thu, 2 Jun 2005 18:26:07 +0000 (18:26 +0000)]
re PR tree-optimization/21582 ((optimisation) VRP pass could/should use non-null function attribute)
PR 21582
* tree-vrp.c (nonnull_arg_p): New.
(get_value_range): Call it.
testsuite/ChangeLog
PR 21582
* gcc.dg/tree-ssa/pr21582.c: New test.
From-SVN: r100505
Andreas Tobler [Thu, 2 Jun 2005 18:12:47 +0000 (20:12 +0200)]
jawt.c: Remove malloc.h, covered by stdlib.h.
2005-06-03 Andreas Tobler <a.tobler@schweiz.ch>
* jawt.c: Remove malloc.h, covered by stdlib.h.
* testsuite/libjava.jni/jni.exp
(gcj_jni_invocation_compile_c_to_binary): Add -bind_at_load to silence
the build process.
From-SVN: r100504
Eric Christopher [Thu, 2 Jun 2005 18:08:20 +0000 (18:08 +0000)]
mips.h (processor_type): Remove PROCESSOR_DEFAULT, add PROCESSOR_MAX.
2005-06-02 Eric Christopher <echristo@redhat.com>
* config/mips/mips.h (processor_type): Remove PROCESSOR_DEFAULT,
add PROCESSOR_MAX.
(mips_rtx_cost_data): New datatype.
(MEMORY_MOVE_COST): Use data from structure.
(BRANCH_COST): Ditto.
(LOGICAL_OP_NON_SHORT_CIRCUIT): Define to zero.
* config/mips/mips.md (cpu): Rework for processor_type changes.
* config/mips/mips.c (mips_cost): New variable.
(DEFAULT_COSTS): Define.
(mips_rtx_cost_data): New.
(mips_rtx_costs): Use. Minor formatting changes. Use COSTS_N_INSNS
for NEG cost. Add support for FLOAT, UNSIGNED_FLOAT, FIX,
FLOAT_EXTEND, FLOAT_TRUNCATE, and SQRT.
(override_options): Set cost data.
(mips_register_move_cost): Formatting changes.
(bdesc_arrays): Use PROCESSOR_MAX.
(mips_init_builtins): Ditto.
From-SVN: r100503
Nathan Sidwell [Thu, 2 Jun 2005 17:52:28 +0000 (17:52 +0000)]
re PR c++/21280 (#pragma interface, templates, and "inline function used but never defined")
cp:
PR c++/21280
* Make-lang.in (method.o): Add diagnostic.h
* decl.c (start_preparsed_function): Use decl's location for file
info.
* decl2.c (cp_finish_file): Set input_location before synthesizing
a function.
(mark_used): When deferring a synthesized function, save current
location. Do not set function's location when actually
synthesizing it.
* method.c: #include diagnostic.h.
(synthesize_method): Set the functions source location. Show
needed location if errors are emitted.
testsuite:
PR c++/21280
* g++.dg/opt/interface2.h: New.
* g++.dg/opt/interface2.C: New.
* g++.dg/init/ctor4.C: Adjust error lines.
* g++.old-deja/g++.bob/inherit2.C: Likewise.
* g++.old-deja/g++.bugs/900205_04.C: Likewise.
* g++.old-deja/g++.jason/opeq3.C: Likewise.
* g++.old-deja/g++.pt/assign1.C: Likewise.
* g++.old-deja/g++.pt/crash20.C: Likewise.
From-SVN: r100500
Nathan Sidwell [Thu, 2 Jun 2005 17:48:58 +0000 (17:48 +0000)]
re PR c++/21280 (#pragma interface, templates, and "inline function used but never defined")
PR c++/21280
* testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust expected errors.
* testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
From-SVN: r100499
Keith Seitz [Thu, 2 Jun 2005 17:27:34 +0000 (17:27 +0000)]
* gnu/classpath/jdwp/transport/TransportException.java: New file.
From-SVN: r100496
Diego Novillo [Thu, 2 Jun 2005 17:13:26 +0000 (17:13 +0000)]
re PR tree-optimization/21765 (-free-vrp is undocumented.)
PR 21765
* doc/invoke.texi: Document -ftree-vrp.
From-SVN: r100495
Dorit Nuzman [Thu, 2 Jun 2005 14:52:18 +0000 (14:52 +0000)]
re PR tree-optimization/21734 (ICE: -ftree-vectorize, segfault)
PR tree-optimization/21734
* tree-vectorizer.c (slpeel_update_phis_for_duplicate_loop): Use the
phi_result when current_def is not available.
(slpeel_update_phi_nodes_for_guard1): Don't fail if current_def is not
available.
From-SVN: r100494
David Edelsohn [Thu, 2 Jun 2005 14:19:18 +0000 (14:19 +0000)]
rs6000.c (rs6000_insn_valid_within_doloop): New.
* config/rs6000/rs6000.c (rs6000_insn_valid_within_doloop): New.
(TARGET_INSN_VALID_WITHIN_DOLOOP): Define.
From-SVN: r100493
Diego Novillo [Thu, 2 Jun 2005 12:35:25 +0000 (12:35 +0000)]
* tree-vrp.c (has_assert_expr, maybe_add_assert_expr): Remove.
From-SVN: r100492
Jan Hubicka [Thu, 2 Jun 2005 10:59:00 +0000 (12:59 +0200)]
cgraph.c (dump_cgraph_node): Print new flags.
* cgraph.c (dump_cgraph_node): Print new flags.
(dump_cgraph_varpool_node): Likewise.
(decide_variable_is_needed): Initialize externally_visible flag.
* cgraph.h (cgraph_local_info): Add externally_visible flag.
(cgraph_varpool_node): Likewise.
(cgraph_function_flags_ready): Declare.
* cgraph.c (cgraph_mark_local_functions): Rename to ...
(cgraph_function_and_variable_visibility) ... this one; handle
externally_visible flags.
(decide_is_function_needed): Set externally_visible flag.
(cgraph_finalize_function): Deal properly with early cleanups.
(cgraph_optimize): Update call of
cgraph_function_and_variable_visibility.
From-SVN: r100491
Steven Bosscher [Thu, 2 Jun 2005 10:19:12 +0000 (10:19 +0000)]
> 2005-06-02 Steven Bosscher <stevenb@suse.de> > Mostafa Hagog...
> 2005-06-02 Steven Bosscher <stevenb@suse.de>
> Mostafa Hagog <mustafa@il.ibm.com>
>
> * cfgloop.h (doloop_condition_get): Make external.
> * loop-doloop.c (doloop_condition_get): Generalize to make it
> usable in modulo-sched.c.
> * modulo-sched.c (doloop_register_get): Use
> doloop_condition_get instead of duplicating it.
Co-Authored-By: Mostafa Hagog <mustafa@il.ibm.com>
From-SVN: r100490
Nathan Sidwell [Thu, 2 Jun 2005 09:34:38 +0000 (09:34 +0000)]
decl.c (start_decl): Simplify specialization handling.
* decl.c (start_decl): Simplify specialization handling. Remove
unneeded CLASSTYPE_TEMPLATE_INSTANTIATION check.
* mangle.c (discriminator_for_local_entity): Use VEC_index.
From-SVN: r100488
Nathan Sidwell [Thu, 2 Jun 2005 09:09:48 +0000 (09:09 +0000)]
re PR c++/20350 (extern template and struct initializer and specification for a static variable)
cp:
PR c++/20350
* decl.c (duplicate_decls): Copy all of DECL_USE_TEMPLATE.
testsuite:
PR c++/20350
* g++.dg/template/spec24.C: New.
From-SVN: r100486
Bernd Schmidt [Thu, 2 Jun 2005 08:55:01 +0000 (08:55 +0000)]
local-alloc.c (update_equiv_regs): When substituting sole definition into sole use of a reg...
* local-alloc.c (update_equiv_regs): When substituting sole definition
into sole use of a reg, delete it from liveness information.
From-SVN: r100483
Nathan Sidwell [Thu, 2 Jun 2005 08:53:48 +0000 (08:53 +0000)]
re PR c++/21151 (ICE when compiling c++ PCH of class definition within template function.)
cp:
PR c++/21151
* name-lookup.c (pushtag): Push local class even in a template.
testsuite:
PR c++/21151
* g++.dg/pch/local-1.C: New.
* g++.dg/pch/local-1.Hs: New.
From-SVN: r100482
Bernd Schmidt [Thu, 2 Jun 2005 08:39:06 +0000 (08:39 +0000)]
reload1.c (reload): Undo 2005-04-20 change.
* reload1.c (reload): Undo 2005-04-20 change. Make sure we detect
the correct set of init_insns that need deletion.
From-SVN: r100481
Jerry DeLisle [Thu, 2 Jun 2005 06:14:25 +0000 (06:14 +0000)]
MAINTAINERS (Write After Approval): Add self.
2005-06-01 Jerry DeLisle <jvdelisle@verizon.net>
* MAINTAINERS (Write After Approval): Add self.
From-SVN: r100480
Kaz Kojima [Thu, 2 Jun 2005 04:55:20 +0000 (04:55 +0000)]
* config/sh/sh.h (TARGET_FPU_DOUBLE): Use MASK_SH4.
From-SVN: r100479
Diego Novillo [Thu, 2 Jun 2005 02:57:15 +0000 (22:57 -0400)]
[multiple changes]
2005-06-01 Diego Novillo <dnovillo@redhat.com>
PR 14341, PR 21332, PR 20701, PR 21029, PR 21086, PR 21090
PR 21289, PR 21348, PR 21367, PR 21368, PR 21458.
* fold-const.c (invert_tree_comparison): Make extern.
* tree-flow.h (enum value_range_type): Move to tree-ssa-propagate.
(struct value_range_def): Limewise.
(get_value_range): Remove.
(dump_value_range): Remove.
(dump_all_value_ranges): Remove.
(debug_all_value_ranges): Remove.
(vrp_evaluate_conditional): Declare.
* tree-ssa-propagate.c (struct prop_stats_d): Add field
num_pred_folded.
(substitute_and_fold): Add argument use_ranges_p.
Update all callers.
If use_ranges_p is true, call fold_predicate_in to fold
predicates using range information.
Ignore ASSERT_EXPRs.
Change debugging output to only show statements that have been
folded.
(replace_phi_args_in): Move debugging output code from
substitute and fold.
(fold_predicate_in): New local function.
* tree-ssa-propagate.h (enum value_range_type): Move from
tree-flow.h.
(struct value_range_d): Likewise.
Add field 'equiv'.
(value_range_t): Rename from value_range.
* tree-vrp.c (found_in_subgraph): Rename from found.
(get_opposite_operand): Remove.
(struct assert_locus_d): Declare.
(assert_locus_t): Declare.
(need_assert_for): Declare.
(asserts_for): Declare.
(blocks_visited): Declare.
(vr_value): Declare.
(set_value_range): Add argument 'equiv'.
Don't drop to VARYING ranges that cover all values in the
type.
Make deep copy of equivalence set 'equiv'.
(copy_value_range): New local function.
(set_value_range_to_undefined): New local function.
(compare_values): Return -2 if either value has overflowed.
(range_includes_zero_p): New local function.
(extract_range_from_assert): Flip the predicate code if the
name being asserted is on the RHS of the predicate.
Avoid creating unnecessary symbolic ranges if the comparison
includes another name with a known numeric range.
Update the equivalnce set of the new range when asserting
EQ_EXPR predicates.
(extract_range_from_ssa_name): Update the equivalence set of
the new range with VAR.
(extract_range_from_binary_expr): Also handle TRUTH_*_EXPR.
If -fwrapv is used, set the resulting range to VARYING if the
operation overflows. Otherwise, use TYPE_MIN_VALUE and
TYPE_MAX_VALUE to represent -INF and +INF.
Fix handling of *_DIV_EXPR.
(extract_range_from_unary_expr): Handle MINUS_EXPR and
ABS_EXPR properly by switching the range around if necessary.
(extract_range_from_comparison): New local function.
(extract_range_from_expr): Call it.
(adjust_range_with_scev): Do not adjust the range if using
wrapping arithmetic (-fwrapv).
(dump_value_range): Also show equivalence set.
Show -INF and +INF for TYPE_MIN_VALUE and TYPE_MAX_VALUE.
(build_assert_expr_for): Also build ASSERT_EXPR for EQ_EXPR.
(infer_value_range): Change return value to bool.
Add arguments 'comp_code_p' and 'val_p'.
Do not attempt to infer ranges from statements that may throw.
Store the comparison code in comp_code_p.
Store the other operand to be used in the predicate in val_p.
(dump_asserts_for): New.
(debug_asserts_for): New.
(dump_all_asserts): New.
(debug_all_asserts): New.
(register_new_assert_for): New.
(register_edge_assert_for): New.
(find_conditional_asserts): New.
(find_assert_locations): New.
(process_assert_insertions_for): New.
(process_assert_insertions): New.
(insert_range_assertions): Initialize found_in_subgraph,
blocks_visited, need_assert_for and asserts_for.
Call find_assert_locations and process_assert_insertions.
(remove_range_assertions): Add more documentation.
(vrp_initialize): Change return type to void.
Do not try to guess if running VRP is worth it.
(compare_name_with_value): New.
(compare_names): New.
(vrp_evaluate_conditional): Add argument 'use_equiv_p'. If
use_equiv_p is true, call compare_names and
compare_name_with_value to compare all the ranges for every
name in the equivalence set of the predicate operands.
Update all callers.
(vrp_meet): Try harder not to derive a VARYING range.
If two values meet, the resulting equivalence set is the
intersection of the two equivalence sets.
(vrp_visit_phi_node): Call copy_value_range to get the current
range information of the LHS.
(vrp_finalize): Create a value vector representing all the
names that ended up with exactly one value in their range.
Call substitute_and_fold.
(execute_vrp): Document equivalence sets in ranges.
* tree.h (SSA_NAME_VALUE_RANGE): Remove.
(struct tree_ssa_name): Remove field value_range.
(invert_tree_comparison): Declare.
testsuite/ChangeLog
2005-06-01 Diego Novillo <dnovillo@redhat.com>
PR 14341, PR 21332, PR 20701, PR 21086, PR 21090
PR 21289, PR 21348, PR 21367, PR 21368, PR 21458.
* gcc.dg/tree-ssa/pr14341.c: New test.
* gcc.dg/tree-ssa/pr14841.c: New test.
* gcc.dg/tree-ssa/pr20701.c: New test.
* gcc.dg/tree-ssa/pr21086.c: New test.
* gcc.dg/tree-ssa/pr21090.c: New test.
* gcc.dg/tree-ssa/pr21332.c: New test.
* gcc.dg/tree-ssa/pr21458.c: New test.
* gcc.dg/tree-ssa/pr21658.c: New test.
* gcc.dg/tree-ssa/vrp01.c: New test.
* gcc.dg/tree-ssa/vrp02.c: New test.
* gcc.dg/tree-ssa/vrp03.c: New test.
* gcc.dg/tree-ssa/vrp04.c: New test.
* gcc.dg/tree-ssa/vrp05.c: New test.
* gcc.dg/tree-ssa/vrp06.c: New test.
* gcc.dg/tree-ssa/vrp07.c: New test.
* gcc.dg/tree-ssa/vrp08.c: New test.
* gcc.dg/tree-ssa/vrp09.c: New test.
* gcc.dg/tree-ssa/vrp10.c: New test.
* gcc.dg/tree-ssa/vrp11.c: New test.
* gcc.dg/tree-ssa/vrp12.c: New test.
* gcc.dg/tree-ssa/vrp13.c: New test.
2005-06-01 Alexandre Oliva <aoliva@redhat.com>
PR 21029
* gcc.dg/tree-ssa/pr21029.c: New test.
From-SVN: r100478
Daniel Berlin [Thu, 2 Jun 2005 02:08:02 +0000 (02:08 +0000)]
re PR tree-optimization/21839 (ICE for missing V_DEFS caused by salias with empty structures)
2005-06-01 Daniel Berlin <dberlin@dberlin.org>
Fix PR tree-optimization/21839
* gimplify.c (zero_sized_field_decl): New function.
(gimplify_init_ctor_eval): Use it.
From-SVN: r100477
Kaveh R. Ghazi [Thu, 2 Jun 2005 02:01:03 +0000 (02:01 +0000)]
* libiberty.h (vsnprintf): Add format attribute.
From-SVN: r100476
Josh Conner [Thu, 2 Jun 2005 01:03:40 +0000 (01:03 +0000)]
* MAINTAINERS (Write After Approval): Add self.
From-SVN: r100475
GCC Administrator [Thu, 2 Jun 2005 00:16:16 +0000 (00:16 +0000)]
Daily bump.
[[Split portion of a mixed commit.]]
From-SVN: r100473.2
Andreas Tobler [Wed, 1 Jun 2005 23:10:17 +0000 (01:10 +0200)]
mauve-libgcj: Remove implemented classes from the fail section.
2005-06-02 Andreas Tobler <a.tobler@schweiz.ch>
* mauve-libgcj: Remove implemented classes from the fail section.
Add two new not implemented to it.
From-SVN: r100471
Bryce McKinlay [Wed, 1 Jun 2005 22:55:07 +0000 (22:55 +0000)]
configure.ac (BACKTRACESPEC): Remove definition, but continue to AC_SUBST definition from configure.host.
* configure.ac (BACKTRACESPEC): Remove definition, but continue to
AC_SUBST definition from configure.host.
* configure.host: Don't use -fno-omit-frame-pointer. Set BACKTRACESPEC
to -fomit-frame-pointer on 32-bit x86 targets.
From-SVN: r100469
Kazu Hirata [Wed, 1 Jun 2005 22:37:25 +0000 (22:37 +0000)]
* MAINTAINERS: Update my email address.
From-SVN: r100468
Tom Tromey [Wed, 1 Jun 2005 22:13:35 +0000 (22:13 +0000)]
* java/io/ObjectInputStream.java (currentLoader): Fixed typo.
From-SVN: r100467
Ziga Mahkovec [Wed, 1 Jun 2005 22:11:00 +0000 (00:11 +0200)]
re PR libgcj/20435 (regex pattern compiling bug)
2005-06-01 Ziga Mahkovec <ziga.mahkovec@klika.si>
PR libgcj/20435:
* gnu/regexp/RESyntax.java (RE_POSSESSIVE_OPS): New field.
(static): Add possessive matching to JAVA_1_4 syntax.
* gnu/regexp/RETokenRepeated.java (possessive): New field.
(makePossessive, isPossessive): New methods.
(match): Don't back off during possessive matching.
* gnu/regexp/RE.java (initalize): Accept possessive quantifier.
* java/util/regex/Pattern.java (constructor): Switch syntax from PERL5
to JAVA_1_4.
From-SVN: r100466
Josh Conner [Wed, 1 Jun 2005 21:34:27 +0000 (21:34 +0000)]
re PR middle-end/21478 (Improve initialization of sparse local arrays)
PR 21478
* gimplify.c (gimplify_init_constructor): Don't spill initializer
to read-only memory if it's sparse.
From-SVN: r100465
Keith Seitz [Wed, 1 Jun 2005 20:08:39 +0000 (20:08 +0000)]
Fix typo in initial commit.
From-SVN: r100464
Keith Seitz [Wed, 1 Jun 2005 20:04:05 +0000 (20:04 +0000)]
JdwpPacket.java: New file.
* gnu/classpath/jdwp/transport/JdwpPacket.java: New file.
* gnu/classpath/jdwp/transport/JdwpCommandPacket.java: New file.
* gnu/classpath/jdwp/transport/JdwpReplyPacket.java: New file.
From-SVN: r100463
Tom Tromey [Wed, 1 Jun 2005 19:58:25 +0000 (19:58 +0000)]
re PR libgcj/21785 (ClassNotFound during deserialization)
PR libgcj/21785:
* java/io/natObjectInputStream.cc (currentClassLoader): Removed.
(currentLoader): New method.
* java/io/ObjectInputStream.java (resolveProxyClass): Use
currentLoader.
(currentLoader): Now native.
(currentClassLoader): Removed.
* testsuite/libjava.lang/pr21785.java: New file.
* testsuite/libjava.lang/pr21785.out: New file.
From-SVN: r100462
Roger Sayle [Wed, 1 Jun 2005 19:17:37 +0000 (19:17 +0000)]
intrinsic.c (add_conv): No longer take a "simplify" argument as its always gfc_convert_constant...
* intrinsic.c (add_conv): No longer take a "simplify" argument as
its always gfc_convert_constant, instead take a "standard" argument.
(add_conversions): Change all existing calls of add_conv to pass
GFC_STD_F77 as appropriate. Additionally, if we're allowing GNU
extensions support integer-logical and logical-integer conversions.
(gfc_convert_type_warn): Warn about use the use of these conversions
as a extension when appropriate, i.e. with -pedantic.
* simplify.c (gfc_convert_constant): Add support for integer to
logical and logical to integer conversions, using gfc_int2log and
gfc_log2int.
* arith.c (gfc_log2int, gfc_int2log): New functions.
* arith.h (gfc_log2int, gfc_int2log): Prototype here.
* gfortran.texi: Document this new GNU extension.
* gfortran.dg/logint-1.f: New test case.
* gfortran.dg/logint-2.f: Likewise.
* gfortran.dg/logint-3.f: Likewise.
From-SVN: r100461
Ramana Radhakrishnan [Wed, 1 Jun 2005 19:11:54 +0000 (19:11 +0000)]
rtl.texi: Remove references to NOTE_INSN_SETJMP.
2005-06-01 Ramana Radhakrishnan <ramana@codito.com>
* doc/rtl.texi: Remove references to NOTE_INSN_SETJMP.
Add documentation for REG_SETJMP
From-SVN: r100460
Richard Guenther [Wed, 1 Jun 2005 18:51:12 +0000 (18:51 +0000)]
stmt.c (expand_case): Use build_int_cst.
2005-06-01 Richard Guenther <rguenth@gcc.gnu.org>
* stmt.c (expand_case): Use build_int_cst.
(node_has_low_bound): Likewise, and correct type mismatch.
(node_has_high_bound): Likewise.
* fold-const.c (fold_binary): Ensure we build trees
with the correct types - undo what STRIP_NOPS possibly did.
From-SVN: r100459
Richard Guenther [Wed, 1 Jun 2005 18:43:02 +0000 (18:43 +0000)]
tree.h (fold_indirect_ref_1): Export from fold-const.c.
2005-06-01 Richard Guenther <rguenth@gcc.gnu.org>
* tree.h (fold_indirect_ref_1): Export from fold-const.c.
* fold-const.c (fold_indirect_ref_1): No longer static.
* tree-inline.c (copy_body_r): Use fold_indirect_ref_1 for
folding, if possible.
From-SVN: r100458
Joseph Myers [Wed, 1 Jun 2005 18:19:09 +0000 (19:19 +0100)]
common.opt (fjump-tables): New.
* common.opt (fjump-tables): New.
* doc/invoke.texi (-fno-jump-tables): Document.
* stmt.c (expand_end_case_type): Do not emit jump tables unless
flag_jump_tables.
From-SVN: r100457
Tom Tromey [Wed, 1 Jun 2005 15:52:45 +0000 (15:52 +0000)]
re PR libgcj/21753 (String.substring sharing heuristic should be improved)
PR libgcj/21753:
* java/lang/natString.cc (substring): Changed sharing heuristic.
From-SVN: r100454
Richard Earnshaw [Wed, 1 Jun 2005 14:52:16 +0000 (14:52 +0000)]
* arm.md (bunordered, bordered, bungt, bunlt, bunge, bunle, buneq)
(bltgt, arm_buneq, arm_bltgt, sunordered, sordered, sungt, sunge)
(sunlt, sunle): Enable patterns on VFP.
* arm.md (attribute 'type'): Add new types - f_loads floadd, f_stores,
f_stored, f_flag, f_cvt.
(generic_sched): No-longer used for the arm1020e and arm1022e cores.
Include arm1020e.md.
* vfp.md (fmstat): New cpu unit. Add an exclusion set between it and
the ds and fmac pipelines. Re-work all load and store patterns and
all conversion patterns to use new attributes. Adjust reservation
descriptions accordingly.
* arm1020e.md: New file.
* t-arm: Add dependency.
From-SVN: r100452
Paul Thomas [Wed, 1 Jun 2005 14:27:46 +0000 (14:27 +0000)]
Changelog: Entry for this morning's patch.
2005-06-01 Paul Thomas <pault@gcc.gnu.org>
* fortran/Changelog: Entry for this morning's patch.
From-SVN: r100450
Jan Hubicka [Wed, 1 Jun 2005 12:07:50 +0000 (14:07 +0200)]
except.c (struct eh_region): Kill unused fields.
* except.c (struct eh_region): Kill unused fields.
* basic-block.h (struct basic_block_def): Likewise.
From-SVN: r100449
J"orn Rennecke [Wed, 1 Jun 2005 11:38:53 +0000 (11:38 +0000)]
re PR rtl-optimization/21767 (if-convert leaves invalid REG_EQUAL notes)
PR rtl-optimization/21767
* rtl.h (function_invariant_p): Re-add declaration.
* reload1.c (function_invariant_p): No longer static.
* ifcvt.c (dead_or_predicable): Remove REG_EQUAL notes that
might have become invalid.
From-SVN: r100448
Jakub Jelinek [Wed, 1 Jun 2005 10:23:17 +0000 (12:23 +0200)]
re PR c/21536 (C99 array of variable length use causes segmentation fault)
PR c/21536
PR c/20760
* gimplify.c (gimplify_decl_expr): Call gimplify_type_sizes
on variable sizes types if a decl is a pointer to a VLA.
(gimplify_type_sizes): Handle POINTER_TYPE and REFERENCE_TYPE.
Call gimplify_type_sizes on aggregate fields. Prevent infinite
recursion.
* gcc.dg/
20050527-1.c: New test.
From-SVN: r100443
Jakub Jelinek [Wed, 1 Jun 2005 10:13:36 +0000 (12:13 +0200)]
* fold-const.c (fold_ternary): Optimize BIT_FIELD_REF of VECTOR_CST.
From-SVN: r100442
Jakub Jelinek [Wed, 1 Jun 2005 10:07:54 +0000 (12:07 +0200)]
xmmintrin.h (_mm_setzero_ps, [...]): Add __extension__.
* config/i386/xmmintrin.h (_mm_setzero_ps, _mm_set_ss, _mm_set1_ps,
_mm_set_ps, _mm_setr_ps): Add __extension__.
* config/i386/emmintrin.h (_mm_set_sd, _mm_set1_pd, _mm_set_pd,
_mm_setr_pd, _mm_setzero_pd, _mm_set_epi64x, _mm_set_epi64x,
_mm_set_epi32, _mm_set_epi16, _mm_set_epi8, _mm_setzero_si128):
Likewise.
(_mm_clflush): Don't use return in void function.
* gcc.dg/i386-sse-12.c: New test.
From-SVN: r100439
Jakub Jelinek [Wed, 1 Jun 2005 10:02:31 +0000 (12:02 +0200)]
emmintrin.h (_mm_castpd_ps, [...]): Use __inline instead of inline.
* config/i386/emmintrin.h (_mm_castpd_ps, _mm_castpd_si128,
_mm_castps_pd, _mm_castps_si128, _mm_castsi128_ps, _mm_castsi128_pd):
Use __inline instead of inline.
From-SVN: r100438
Jakub Jelinek [Wed, 1 Jun 2005 10:00:19 +0000 (12:00 +0200)]
re PR fortran/21729 (ICE in gfc_typenode_for_spec)
PR fortran/21729
* resolve.c (resolve_contained_fntype): Use sym->attr.untyped
to avoid giving error multiple times.
(resolve_entries): Don't error about BT_UNKNOWN here.
(resolve_unknown_f): Capitalize IMPLICIT for consistency.
(resolve_fntype): New function.
(gfc_resolve): Call resolve_fntype.
* gfortran.dg/implicit_5.f90: New test.
From-SVN: r100437
Richard Guenther [Wed, 1 Jun 2005 09:34:15 +0000 (09:34 +0000)]
fold-const.c (fold_binary): Fix types in strlen vs.
2005-06-01 Richard Guenther <rguenth@gcc.gnu.org>
* fold-const.c (fold_binary): Fix types in strlen vs.
zero comparison folding.
From-SVN: r100436
Richard Henderson [Wed, 1 Jun 2005 08:19:44 +0000 (01:19 -0700)]
configure.ac (HAVE_AS_JSRDIRECT_RELOCS): New.
* configure.ac (HAVE_AS_JSRDIRECT_RELOCS): New.
* config.in, configure: Rebuild.
* config/alpha/alpha.c (print_operand): Add 'j'.
* alpha.md (divmodsi_internal_er_1): Use it.
(divmoddi_internal_er_1): Likewise.
From-SVN: r100435
Paul Thomas [Wed, 1 Jun 2005 07:18:20 +0000 (07:18 +0000)]
trans-expr.c (gfc_conv_variable): Clean up bracketting.
2005-06-01 Paul Thomas <pault@gcc.gnu.org>
* fortran/trans-expr.c (gfc_conv_variable): Clean up bracketting.
* fortran/trans-expr.c (gfc_conv_function_call): Insert spaces.
Correct comments and replace convert of integer_one_node with
build_int_cst.
From-SVN: r100433
Richard Sandiford [Wed, 1 Jun 2005 07:02:36 +0000 (07:02 +0000)]
system.h (TARGET_OPTIONS, [...]): Poison.
* system.h (TARGET_OPTIONS, TARGET_SWITCHES): Poison.
* opts.h (print_filtered_help): Delete.
* opts.c (handle_option, decode_options): Remove calls to
set_target_switch.
(print_target_help): New function.
(common_option, print_help): Call print_target_help instead of
display_target_options.
(print_filtered_help): Make static.
* toplev.h (display_target_options, set_target_switch): Delete.
* toplev.c (target_switches, target_options, display_target_options)
(set_target_switch): Delete.
(print_switch_values): Remove handling of TARGET_SWITCHES and
TARGET_OPTIONS.
(default_get_pch_validity): Likewise. Only treat target_flags
specially if targetm.check_pch_target_flags is nonnull.
(pch_option_mismatch): New function.
(default_pch_valid_p): Use it. Remove handling of TARGET_SWITCHES
and TARGET_OPTIONS. Only treat target_flags specially if
targetm.check_pch_target_flags is nonnull.
* config/ia64/ia64.c (ia64_override_options): Don't mention
TARGET_OPTIONS in comment.
* config/m68k/m68k-none.h (CC1_SPEC): Likewise.
* doc/invoke.texi: Remove a reference to TARGET_SWITCHES.
* doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS): Don't mention the
interaction with TARGET_SWITCHES.
(TARGET_@var{featurename}, TARGET_SWITCHES, TARGET_OPTIONS): Delete.
From-SVN: r100432
Richard Sandiford [Wed, 1 Jun 2005 06:58:41 +0000 (06:58 +0000)]
sh.c (multcosts): Check sh_multcost rather than sh_multcost_str.
* config/sh/sh.c (multcosts): Check sh_multcost rather than
sh_multcost_str.
(sh_register_move_cost): Likewise sh_gettrcost and sh_gettrcost_str.
(sh_multcost_str, sh_gettrcost_str, sh_div_str, sh_divsi3_libfunc)
(cut2_workaround_str): Delete.
* config/sh/sh.h (SUBTARGET_OPTIONS, TARGET_OPTIONS)
(TARGET_SH5_CUT2_WORKAROUND, sh_multcost_str, sh_gettrcost_str)
(sh_div_str, sh_divsi3_libfunc, cut2_workaround_str): Delete.
* config/sh/sh.opt (mcut2-workaround, mdiv=, mdivsi3_libfunc=)
(mgettrcost=, multcost=): New options.
From-SVN: r100431
Richard Sandiford [Wed, 1 Jun 2005 06:55:47 +0000 (06:55 +0000)]
opts.h (cl_option_state): New structure.
* opts.h (cl_option_state): New structure.
(get_option_state): Declare.
* opts.c (get_option_state): New function.
* toplev.c (option_affects_pch_p): New function.
(default_get_pch_validity): Store the state of all options for which
option_affects_pch_p returns true.
(default_pch_valid_p): Check the state of those options here.
Only check target_flags separately if targetm.check_pch_target_Flags
is nonnull or if TARGET_SWITCHES is defined.
From-SVN: r100430
Richard Sandiford [Wed, 1 Jun 2005 06:52:51 +0000 (06:52 +0000)]
sh-protos.h (sh_pch_valid_p): Delete.
* config/sh/sh-protos.h (sh_pch_valid_p): Delete.
(missing from yesterday's checkin)
From-SVN: r100429
Richard Sandiford [Wed, 1 Jun 2005 06:04:22 +0000 (06:04 +0000)]
mips-protos.h (mips_use_ins_ext_p): Remove parameter names.
* config/mips/mips-protos.h (mips_use_ins_ext_p): Remove parameter
names.
From-SVN: r100428
Mostafa Hagog [Wed, 1 Jun 2005 05:26:41 +0000 (05:26 +0000)]
re PR rtl-optimization/21138 (wrong code in sixtrack for -fmodulo-sched)
2005-06-01 Mostafa Hagog <mustafa@il.ibm.com>
* modulo-sched.c (undo_generate_reg_moves ): Fix PR 21138.
From-SVN: r100426
Mostafa Hagog [Wed, 1 Jun 2005 05:17:59 +0000 (05:17 +0000)]
gcse.c (compute_transp, [...]): Use MEM_READONLY_P.
2005-06-01 Mostafa Hagog <mustafa@il.ibm.com>
* gcse.c (compute_transp, load_killed_in_block): Use MEM_READONLY_P.
From-SVN: r100425
Feng Wang [Wed, 1 Jun 2005 03:44:43 +0000 (03:44 +0000)]
re PR fortran/20883 (unassigned integer used as format)
2005-06-01 Feng Wang <fengwang@nudt.edu.cn>
PR fortran/20883
* fortran/io.c (resolve_tag): Fix error message.
2005-06-01 Feng Wang <fengwang@nudt.edu.cn>
PR fortran/20883
* gfortran/assign_4.f90: New test.
* gfortran/assign_2.f90: Change compile to run.
From-SVN: r100424
David Billinghurst [Wed, 1 Jun 2005 03:04:34 +0000 (03:04 +0000)]
re PR target/21854 (irix6.5 bootstrap fails due to warning in mips.c)
2005-06-01 David.Billinghurst <David.Billinghurst@riotinto.com>
PR target/21854
* config/mips/mips-protos.h: Declare mips_use_ins_ext_p
From-SVN: r100422
Kaveh R. Ghazi [Wed, 1 Jun 2005 02:55:50 +0000 (02:55 +0000)]
errors.h (warning, [...]): Add printf attribute.
* errors.h (warning, error, fatal, internal_error): Add printf
attribute.
* genmodes.c (make_vector_mode): Fix format arguments.
From-SVN: r100421
Kaveh R. Ghazi [Wed, 1 Jun 2005 02:51:18 +0000 (02:51 +0000)]
basic-block.h, [...]: Don't include errors.h and include toplev.h if necessary.
* basic-block.h, bb-reorder.c, c-gimplify.c, config/darwin.c,
config/rs6000/rs6000-c.c, dominance.c, gimple-low.c, gimplify.c,
lambda-code.c, lambda-trans.c, tree-browser.c, tree-cfg.c,
tree-chrec.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
tree-if-conv.c, tree-into-ssa.c, tree-loop-linear.c,
tree-mudflap.c, tree-nomudflap.c, tree-outof-ssa.c,
tree-pretty-print.c, tree-scalar-evolution.c, tree-sra.c,
tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
tree-ssa-dse.c, tree-ssa-forwprop.c, tree-ssa-live.c,
tree-ssa-operands.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
tree-ssa-propagate.c, tree-ssa-sink.c, tree-ssa-threadupdate.c,
tree-ssa-uncprop.c, tree-ssa.c, tree-vect-analyze.c,
tree-vect-transform.c, tree-vectorizer.c, vec.c: Don't include
errors.h and include toplev.h if necessary.
* rtl.c, varray.c: If we're compiling as a GENERATOR_FILE, include
errors.h otherwise include toplev.h.
* Makefile.in: Update dependencies.
ada:
* misc.c: Don't include errors.h.
fortran:
* fortran/trans-decl.c: Don't include errors.h.
* fortran/Make-lang.in: Updates dependencies.
java:
* java/verify-glue.c: Don't include errors.h and include toplev.h.
* java/Make-lang.in: Updates dependencies.
treelang:
* treelang/lex.l, treelang/parse.y: Don't include errors.h and
include toplev.h.
* treelang/Make-lang.in: Updates dependencies.
From-SVN: r100420
Danny Smith [Wed, 1 Jun 2005 00:50:21 +0000 (00:50 +0000)]
* config/i386/cygming.h (NO_PROFILE_COUNTERS): Define.
From-SVN: r100419
Geoffrey Keating [Wed, 1 Jun 2005 00:45:24 +0000 (00:45 +0000)]
Index: ChangeLog
2005-05-31 Geoffrey Keating <geoffk@geoffk.org>
* config/rs6000/rs6000.md (sync_boolcshort_internal): New.
* config/rs6000/rs6000.c (rs6000_emit_sync): Shift count must
be complemented for big-endian. Mask for AND must be rotated,
not shifted. Handle short operands with NOT on the memory
operation.
Index: testsuite/ChangeLog
2005-05-31 Geoffrey Keating <geoffk@geoffk.org>
* lib/target-supports.exp
(check_effective_target_sync_char_short): New.
* gcc.dg/sync-2.c: New.
From-SVN: r100418
Daniel Berlin [Wed, 1 Jun 2005 00:39:49 +0000 (00:39 +0000)]
c-objc-common.c (c_tree_printer): Check flag before hashtable.
2005-05-30 Daniel Berlin <dberlin@dberlin.org>
* c-objc-common.c (c_tree_printer): Check flag before hashtable.
Use DECL_DEBUG_EXPR and SET_DECL_DEBUG_EXPR.
* dwarf2out.c (dwarf2out_var_location): Ditto.
* toplev.c (default_tree_printer): Ditto.
* tree-outof-ssa.c (create_temp): Ditto.
* tree-sra.c (instantiate_element): Ditto.
* var-tracking.c (track_expr_p): Ditto.
* tree.c (struct tree_map): New structure.
(debug_expr_for_decl): New.
(tree_map_eq): New function.
(tree_map_hash): Ditto.
(tree_map_marked_p): Ditto.
(print_debug_expr_statistics): Ditto.
(decl_debug_expr_lookup): Ditto.
(decl_debug_expr_insert): Ditto.
(dump_tree_statistics): Dump debug_expr hashtable stats.
* tree.h (DECL_DEBUG_EXPR): Change
(SET_DECL_DEBUG_EXPR): Add.
From-SVN: r100417
Alan Modra [Wed, 1 Jun 2005 00:33:09 +0000 (00:33 +0000)]
ppc_closure.S (ffi_closure_SYSV): Don't use JUMPTARGET to call ffi_closure_helper_SYSV.
* src/powerpc/ppc_closure.S (ffi_closure_SYSV): Don't use JUMPTARGET
to call ffi_closure_helper_SYSV. Append @local instead.
* src/powerpc/sysv.S (ffi_call_SYSV): Likewise for ffi_prep_args_SYSV.
From-SVN: r100416
Alan Modra [Wed, 1 Jun 2005 00:30:26 +0000 (00:30 +0000)]
configure.ac: Add --enable-secureplt.
* configure.ac: Add --enable-secureplt.
(HAVE_AS_REL16): Test for R_PPC_REL16 relocs.
* config.in: Regenerate.
* configure: Regenerate.
* config.gcc (powerpc64-*-linux*, powerpc-*-linux*): Add
rs6000/secureplt.h to tm_file when enable_secureplt.
* doc/invoke.texi (msecure-plt, mbss-plt): Document.
* doc/install.texi: Document --enable-targets and --enable-secureplt.
Correct xrefs to "Using the GNU Compiler Collection (GCC)".
* config/rs6000/secureplt.h: New file.
* config/rs6000/sysv4.h (TARGET_SECURE_PLT): Define.
(SUBTARGET_OVERRIDE_OPTIONS): Error if -msecure-plt given without
assembler support.
(CC1_SECURE_PLT_DEFAULT_SPEC): Define.
(CC1_SPEC): Delete duplicate mno-sdata. Invoke cc1_secure_plt_default.
(SUBTARGET_EXTRA_SPECS): Add cc1_secure_plt_default.
* config/rs6000/sysv4.opt (msecure-plt, bss-plt): Add options.
* config/rs6000/rs6000.h (TARGET_SECURE_PLT): Define.
* config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Handle
TARGET_SECURE_PLT got register load sequence.
(rs6000_emit_prologue): Call rs6000_emit_load_toc_table when
TARGET_SECURE_PLT.
(rs6000_elf_declare_function_name): Don't emit toc address offset
word when TARGET_SECURE_PLT.
* config/rs6000/rs6000.md (elf_high, elf_low): Move past load_toc_*.
(load_toc_v4_PIC_1) Enable for TARGET_SECURE_PLT.
(load_toc_v4_PIC_3b, load_toc_v4_PIC_3c): New insns.
(call, call_value): Mark pic_offset_table_rtx used for sysv pic and
TARGET_SECURE_PLT.
(call_nonlocal_sysv, call_value_nonlocal_sysv, sibcall_nonlocal_sysv,
sibcall_value_nonlocal_sysv): Add 32768 offset when TARGET_SECURE_PLT
and -fPIC.
* config/rs6000/tramp.asm (trampoline_initial): Use "bcl 20,31".
(__trampoline_setup): Likewise. Init r30 before plt call.
From-SVN: r100415
DJ Delorie [Wed, 1 Jun 2005 00:20:13 +0000 (20:20 -0400)]
expr.c (convert_move): When a partial_int requires multiple conversion steps...
* expr.c (convert_move): When a partial_int requires multiple
conversion steps, make sure successive steps convert the
intermediate value, not the original value.
* expmed.c (expand_mult): Convert partial_int multiplies to
shift/add combinations too.
* genmodes.c (mode_data): Add wider_2x.
(calc_wider_mode): Calculate twice-wider mode too.
(emit_mode_wider): Emit twice-wider mode too.
* machmode.h (mode_2xwider, GET_MODE_2XWIDER_MODE): New.
* expr.c (expand_expr_real_1): Use it for expanding
multiplies.
From-SVN: r100414
GCC Administrator [Wed, 1 Jun 2005 00:16:31 +0000 (00:16 +0000)]
Daily bump.
[[Split portion of a mixed commit.]]
From-SVN: r100412.2
Zdenek Dvorak [Tue, 31 May 2005 23:07:25 +0000 (01:07 +0200)]
re PR tree-optimization/21817 (ICE in for_each_index, at tree-ssa-loop-im.c:200)
PR tree-optimization/21817
* tree-ssa-loop-im.c (for_each_index): Handle VECTOR_CST.
From-SVN: r100410
Pat Haugen [Tue, 31 May 2005 21:29:05 +0000 (21:29 +0000)]
loop.c (loop_invariant_p, [...]): Revert last change.
2005-05-31 Pat Haugen <pthaugen@us.ibm.com>
* loop.c (loop_invariant_p, valid_initial_value_p): Revert last
change.
From-SVN: r100408
Paolo Carlini [Tue, 31 May 2005 18:31:55 +0000 (18:31 +0000)]
PR libstdc++/20534 (contd)
2005-05-31 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/20534 (contd)
* include/debug/macros.h: Add _GLIBCXX_DEBUG_ABORT, using
__gnu_debug::__fancy_abort.
* src/debug.cc: Define the latter.
* include/debug/debug.h: Use _GLIBCXX_DEBUG_ABORT instead of
assert.
* config/linker-map.gnu (__gnu_debug::__fancy_abort): Add.
From-SVN: r100405
Nathan Sidwell [Tue, 31 May 2005 17:43:26 +0000 (17:43 +0000)]
re PR c++/21165 (bogus error on a user-defined conversion in a template)
cp:
PR c++/21165
* init.c (integral_constant_value): Check the type of the
initializer, not the decl.
testsuite:
PR c++/21165
* g++.dg/template/init5.C: New.
From-SVN: r100402
Paul Thomas [Tue, 31 May 2005 17:39:03 +0000 (17:39 +0000)]
char_initialiser_actual.f90: Test character initialisers as actual arguments.
2005-05-30 Paul Thomas <pault@gcc.gnu.org>
* gfortran.dg/char_initialiser_actual.f90:
Test character initialisers as actual arguments.
* gfortran.dg/char_pointer_comp_assign.f90:
Test character pointer structure component assignments.
* gfortran.dg/char_array_structure_constructor.f90:
Test character components in structure constructors.
From-SVN: r100401
Paul Thomas [Tue, 31 May 2005 17:19:11 +0000 (17:19 +0000)]
re PR fortran/18109 (ICE with explicit array of strings)
2005-05-30 Paul Thomas <pault@gcc.gnu.org>
PR fortran/18109
PR fortran/18283
PR fortran/19107
* fortran/trans-array.c (gfc_conv_expr_descriptor): Obtain the
string length from the expression typespec character length value
and set temp_ss->stringlength and backend_decl. Obtain the
tree expression from gfc_conv_expr rather than gfc_conv_expr_val.
Dereference the expression to obtain the character.
* fortran/trans-expr.c (gfc_conv_component_ref): Remove the
dereference of scalar character pointer structure components.
* fortran/trans-expr.c (gfc_trans_subarray_assign): Obtain the
string length for the structure component from the component
expression.
From-SVN: r100400
Andrew Pinski [Tue, 31 May 2005 16:40:09 +0000 (09:40 -0700)]
[multiple changes]
2005-05-31 Andrew pinski <pinskia@physics.uc.edu>
PR middle-end/20931
* g++.dg/opt/pr20931.C: New test.
2005-05-31 Andrew Pinski <pinskia@physics.uc.edu>
PR middle-end/20931
PR middle-end/20946
* fold-const.c (fold_checksum_tree): Copy types also if
TYPE_CONTAINS_PLACEHOLDER_INTERNAL is set.
Don't call fold_checksum_tree for TREE_LIST's TREE_CHAIN
first.
Tail recurse TREE_LIST's TREE_CHAIN.
From-SVN: r100397
Andrew Pinski [Tue, 31 May 2005 16:29:16 +0000 (16:29 +0000)]
re PR tree-optimization/21732 (-ftree-dump-all-details hangs during *.c.t24.copyprop or *.c.t38.copyprop2)
2005-05-31 Andrew Pinski <pinskia@physics.uc.edu>
PR tree-opt/21732
* tree-ssa-copy.c (dump_copy_of): Create a bitmap and don't visit a
SSA_NAME twice and cause the loop to become finite. Remove the test
for val.
From-SVN: r100396
Andreas Jaeger [Tue, 31 May 2005 16:28:30 +0000 (18:28 +0200)]
re PR testsuite/20772 (x86 tests should run on both i?86 and x86_64)
PR testsuite/20772
* g++.dg/abi/dtor1.C, g++.dg/abi/empty10.C, g++.dg/abi/layout3.C,
g++.dg/eh/simd-2.C, g++.dg/opt/cse2.C,
g++.old-deja/g++.ext/asmspec1.C,
g++.old-deja/g++.other/regstack.C,
gcc.dg/
20000614-1.c, gcc.dg/
20000807-1.c, gcc.dg/
20000904-1.c,
gcc.dg/
20001127-1.c, gcc.dg/
20010202-1.c, gcc.dg/
20010520-1.c,
gcc.dg/
20011009-1.c, gcc.dg/
20011029-2.c, gcc.dg/
20020224-1.c,
gcc.dg/
20020531-1.c, gcc.dg/
20020616-1.c, gcc.dg/980226-1.c,
gcc.dg/980414-1.c, gcc.dg/980520-1.c, gcc.dg/980709-1.c,
gcc.dg/990117-1.c, gcc.dg/990130-1.c, gcc.dg/990213-2.c,
gcc.dg/990214-1.c, gcc.dg/991129-1.c, gcc.dg/991209-1.c,
gcc.dg/991214-1.c, gcc.dg/asm-1.c, gcc.dg/attr-returns_twice-1.c,
gcc.dg/clobbers.c, gcc.dg/i386-387-7.c, gcc.dg/i386-387-8.c,
gcc.dg/i386-3dnowA-1.c, gcc.dg/i386-3dnowA-2.c, gcc.dg/i386-asm-1.c
gcc.dg/i386-asm-2.c, gcc.dg/i386-asm-3.c, gcc.dg/i386-bitfield3.c
gcc.dg/i386-call-1.c, gcc.dg/i386-memset-1.c,
gcc.dg/i386-signbit-3.c, gcc.dg/i386-ssefn-1.c,
gcc.dg/i386-ssefn-2.c, gcc.dg/i386-ssefn-3.c, gcc.dg/i386-ssefn-4.c
gcc.dg/i386-volatile-1.c, gcc.dg/i386-xorps.c, gcc.dg/pr12092-1.c
gcc.dg/pr14289-1.c, gcc.dg/pr19236-1.c, gcc.dg/pr20204.c,
gcc.dg/pr9771-1.c, gcc.dg/register-var-1.c,
gcc.dg/sibcall-5.c, gcc.dg/charset/asm3.c,
gcc.dg/cpp/trad/num-sign.c: Run tests also on x86_64.
From-SVN: r100394
Andrew Pinski [Tue, 31 May 2005 16:21:08 +0000 (16:21 +0000)]
tree-cfg.c (verify_expr): Add checking for COND_EXPR's conditional expression.
2005-05-31 Andrew Pinski <pinskia@physics.uc.edu>
* tree-cfg.c (verify_expr): Add checking for COND_EXPR's conditional
expression.
From-SVN: r100393
Richard Sandiford [Tue, 31 May 2005 15:51:42 +0000 (15:51 +0000)]
tm.texi (TARGET_GET_PCH_VALIDITY, [...]): Tweak the documentation to make it more future-proof.
* doc/tm.texi (TARGET_GET_PCH_VALIDITY, TARGET_PCH_VALID_P): Tweak
the documentation to make it more future-proof.
(TARGET_CHECK_PCH_TARGET_FLAGS): Document this new hook.
* target.h (gcc_target): Add check_pch_target_flags.
* target-def.h (TARGET_CHECK_PCH_TARGET_FLAGS): New macro.
(TARGET_INITIALIZER): Include it.
* toplev.c (default_pch_valid_p): Use targetm.check_pch_target_flags.
* config/sh/sh.h (sh_pch_valid_p): Delete.
* config/sh/sh.c (TARGET_PCH_VALID_P, sh_pch_valid_p): Delete.
(sh_check_pch_target_flags): New function.
(TARGET_CHECK_PCH_TARGET_FLAGS): Override default.
From-SVN: r100392
Jeff Law [Tue, 31 May 2005 14:33:29 +0000 (08:33 -0600)]
fold-const.c (extract_array_ref): Handle more cases, do some useful canonicalization of the base.
* fold-const.c (extract_array_ref): Handle more cases,
do some useful canonicalization of the base.
(fold_binary): Explicitly deal with arrays of zero-sized
structures during folding of &a[i] == &a[j].
* gcc.dg/tree-ssa/foldaddr-1.c: New test.
From-SVN: r100391
Joseph Myers [Tue, 31 May 2005 13:34:33 +0000 (14:34 +0100)]
* sv.po: Update.
From-SVN: r100389
Eric Botcazou [Tue, 31 May 2005 12:56:43 +0000 (14:56 +0200)]
install.texi (sparc-sun-solaris2*): Update note about Sun bug
4910101.
* doc/install.texi (sparc-sun-solaris2*): Update note
about Sun bug
4910101.
From-SVN: r100385
Eric Botcazou [Tue, 31 May 2005 12:26:38 +0000 (14:26 +0200)]
install.texi (sparc-sun-solaris2.7): Document bootstrap failure with Sun WorkShop 6 99/08/18 as.
* doc/install.texi (sparc-sun-solaris2.7): Document bootstrap
failure with Sun WorkShop 6 99/08/18 as.
From-SVN: r100383
GCC Administrator [Tue, 31 May 2005 00:16:47 +0000 (00:16 +0000)]
Daily bump.
[[Split portion of a mixed commit.]]
From-SVN: r100380.2
Pat Haugen [Mon, 30 May 2005 23:34:08 +0000 (23:34 +0000)]
loop.c (loop_invariant_p, [...]): Use regs_invalidated_by_call instead of call_used_regs.
2005-05-30 Pat Haugen <pthaugen@us.ibm.com>
* loop.c (loop_invariant_p, valid_initial_value_p): Use
regs_invalidated_by_call instead of call_used_regs.
From-SVN: r100378
Roger Sayle [Mon, 30 May 2005 22:16:08 +0000 (22:16 +0000)]
gfortran.h (GFC_STD_LEGACY): New "standard" macro.
* gfortran.h (GFC_STD_LEGACY): New "standard" macro. Reindent.
* options.c (gfc_init_options): By default, allow legacy extensions
but warn about them.
(gfc_post_options): Make -pedantic warn about legacy extensions
even with -std=legacy.
(gfc_handle_option): Make -std=gnu follow the default behaviour
of warning about legacy extensions, but allowing them. Make the
new -std=legacy accept everything and warn about nothing.
* lang.opt (std=legacy): New F95 command line option.
* invoke.texi: Document both -std=f2003 and -std=legacy.
* gfortran.texi: Explain the two types of extensions and document
how they are affected by the various -std= command line options.
From-SVN: r100377