Mark Mitchell
7e45bd18da
re PR c++/21336 (Internal compiler error when using custom new operators)
...
PR c++/21336
* cp-tree.h (grok_op_properties): Remove friendp parameter.
* decl.c (grokfndecl): Adjust call.
(grok_op_properties): Determine the class of which the function is
a member by looking at its DECL_CONTEXT, not current_class_type.
* pt.c (tsubst_decl): Adjust call to grok_op_properties.
PR c++/21336
* g++.dg/template/new2.C: New test.
From-SVN: r100541
2005-06-03 16:16:46 +00:00
Josh Conner
83cd747fd9
ppc-vector-memcpy.c (foo): Use non-zero values for all entries in initializer.
...
* gcc.dg/ppc-vector-memcpy.c (foo): Use non-zero values for
all entries in initializer.
From-SVN: r100540
2005-06-03 16:07:29 +00:00
Richard Guenther
548e34cdb7
re PR middle-end/21858 (ICE in compare_values, at tree-vrp.c:301)
...
2005-06-03 Richard Guenther <rguenth@gcc.gnu.org>
PR middle-end/21858
* fold-const.c (fold_binary): Fix type mismatches in folding
of comparisons.
* gcc.dg/pr21858.c: New testcase.
From-SVN: r100539
2005-06-03 15:15:46 +00:00
Kazu Hirata
ff5c4582e0
cgraph.c, [...]: Fix comment typos.
...
* cgraph.c, cgraphunit.c, config/mips/mips.c: Fix comment
typos.
From-SVN: r100538
2005-06-03 13:41:39 +00:00
Joseph Myers
88fbbf4b49
* collect2.c (maybe_unlink): Use unlink_if_ordinary.
...
From-SVN: r100537
2005-06-03 11:48:06 +01:00
Bernd Schmidt
badea87de4
Revert my previous patch.
...
From-SVN: r100536
2005-06-03 09:55:28 +00:00
Paolo Bonzini
b956116ebf
re PR testsuite/21292 (gen-vect-11b.c and gen-vect-11c.c fail)
...
2005-06-03 Paolo Bonzini <bonzini@gnu.org>
PR tree-optimization/21292
* lib/target-supports.exp (check_effective_target_vect_cmdline_needed):
New.
* gcc.dg/tree-ssa/gen-vect-11.c, gcc.dg/tree-ssa/gen-vect-11a.c,
gcc.dg/tree-ssa/gen-vect-11b.c, gcc.dg/tree-ssa/gen-vect-11c.c,
gcc.dg/tree-ssa/gen-vect-2.c, gcc.dg/tree-ssa/gen-vect-25.c,
gcc.dg/tree-ssa/gen-vect-26.c, gcc.dg/tree-ssa/gen-vect-28.c,
gcc.dg/tree-ssa/gen-vect-32.c: Require it.
From-SVN: r100535
2005-06-03 08:09:47 +00:00
Nick Clifton
8db33fd786
Fix typo in ASM_SEPC
...
From-SVN: r100534
2005-06-03 08:09:26 +00:00
Tom Tromey
4267db9877
re PR java/21722 (gcj miscompiles accesses to static final vars with indirect dispatch)
...
PR java/21722:
* class.c (build_static_field_ref): Don't fold constant fields if
current class is from a .class file and we're using indirect
dispatch.
From-SVN: r100533
2005-06-03 04:06:19 +00:00
Kazu Hirata
50e5241d1f
re PR tree-optimization/21849 (wrong use of sbitmap in tree-ssa-copy.c)
...
PR tree-optimization/21849
* tree-ssa-copy.c (dump_copy_of): Call sbitmap_zero.
From-SVN: r100531
2005-06-03 02:55:20 +00:00
Richard Henderson
87e48010be
* gcc.dg/sync-2.c: Use -march=i486 for i386.
...
From-SVN: r100530
2005-06-02 19:35:59 -07:00
Richard Henderson
2b725155ec
Makefile.in (tree-vect-generic.o): New.
...
* Makefile.in (tree-vect-generic.o): New.
(OBJS-common, GTFILES, s-gtype): Add it.
* tree-complex.c (build_replicated_const, vector_inner_type,
vector_last_type, vector_last_nunits, build_word_mode_vector_type,
elem_op_func, tree_vec_extract, do_unop, do_binop, do_plus_minus,
do_negate, expand_vector_piecewise, expand_vector_parallel,
expand_vector_addition, expand_vector_operation,
type_for_widest_vector_mode, expand_vector_operations_1,
gate_expand_vector_operations, expand_vector_operations,
pass_lower_vector_ssa): Move to tree-vect-generic.c.
(tree_lower_complex): Rename from tree_lower_operations.
(pass_lower_complex): Rename from pass_pre_expand.
* tree-vect-generic.c: New file.
* tree-pass.h (pass_lower_complex): Rename from pass_pre_expand.
(pass_lower_vector): New.
* tree-optimize.c (init_tree_optimization_passes): Update to match.
From-SVN: r100529
2005-06-02 19:11:05 -07:00
Richard Henderson
aeb556659b
modulo-sched.c (doloop_register_get): Protect against doloop_end not defined.
...
* modulo-sched.c (doloop_register_get): Protect against
doloop_end not defined.
From-SVN: r100528
2005-06-02 19:00:00 -07:00
Jim Blandy
ba4853f8a5
config.sub: Add cases for the Renesas m32c.
...
* config.sub: Add cases for the Renesas m32c. (This patch has been
accepted into the master sources.)
From-SVN: r100527
2005-06-02 20:16:32 -04:00
GCC Administrator
de77dfe314
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r100525.2
2005-06-03 00:16:23 +00:00
Kazu Hirata
5546ac9012
sh.c (general_movsrc_operand, [...]): Move to ...
...
* config/sh/sh.c (general_movsrc_operand,
general_movdst_operand, arith_reg_operand, arith_reg_dest,
logical_reg_operand, int_gpr_dest, fp_arith_reg_operand,
fp_arith_reg_dest, arith_operand, arith_reg_or_0_operand,
xor_operand, cmp_operand, logical_operand, and_operand,
fpscr_operand, fpul_operand, symbol_ref_operand,
commutative_float_operator, noncommutative_float_operator,
unary_float_operator, binary_float_operator,
binary_logical_operator, equality_comparison_operator,
greater_comparison_operator, less_comparison_operator,
shift_operator, logical_operator, target_reg_operand,
target_operand, mextr_bit_offset, extend_reg_operand,
trunc_hi_operand, extend_reg_or_0_operand, minuend_operand,
general_extend_operand, ua_address_operand,
cache_address_operand, inqhi_operand, sh_rep_vec, sh_1el_vec,
sh_const_vec, ua_offset, sh_register_operand, cmpsi_operand,
shift_count_reg_operand, shift_count_operand,
unaligned_load_operand): Move to ...
* config/sh/predicates.md: ... here.
* config/sh/sh.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
Remove.
From-SVN: r100523
2005-06-02 23:28:53 +00:00
Andrew Pinski
e0d161cf09
trans.c (gnat_gimplify_expr): Call recompute_tree_invarant_for_addr_expr when...
...
2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
* trans.c (gnat_gimplify_expr): Call
recompute_tree_invarant_for_addr_expr when we change
the operand of the ADDR_EXPR.
From-SVN: r100522
2005-06-02 16:00:06 -07:00
Andrew Pinski
d1604bc560
tree.c (build_common_builtin_nodes): Fix the return type on __builtin_memcmp.
...
2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
* tree.c (build_common_builtin_nodes): Fix the return type on
__builtin_memcmp.
From-SVN: r100520
2005-06-02 15:57:43 -07:00
Richard Guenther
d5dc1717fa
tree-ssa-loop-ivopts.c (build_addr_strip_iref): Remove.
...
2005-06-03 Richard Guenther <rguenth@gcc.gnu.org>
* tree-ssa-loop-ivopts.c (build_addr_strip_iref): Remove.
(find_interesting_uses_address): Use build_fold_addr_expr instead.
(strip_offset_1): Likewise.
(tree_to_aff_combination): Likewise.
From-SVN: r100519
2005-06-02 22:05:13 +00:00
DJ Delorie
4e9cd9d8aa
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
2005-06-02 18:02:59 -04:00
Richard Guenther
1c1205fb0b
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
2005-06-02 21:55:52 +00:00
Kazu Hirata
8ab5f5c9fa
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
2005-06-02 21:54:42 +00:00
Geoffrey Keating
bc0f348e10
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
2005-06-02 21:45:57 +00:00
Jan Hubicka
e2089d725e
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
2005-06-02 20:33:04 +00:00
Kazu Hirata
84c76d40cb
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
2005-06-02 20:21:54 +00:00
Richard Guenther
984dfd8c52
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
2005-06-02 20:09:01 +00:00
Nathan Sidwell
c449e20709
* method.c (synthesize_method): Add addtional arg to warning call.
...
From-SVN: r100511
2005-06-02 20:02:26 +00:00
Ulrich Weigand
d24959df23
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
2005-06-02 19:57:24 +00:00
Aldy Hernandez
79dd769c9c
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
2005-06-02 19:54:19 +00:00
Adrian Straetling
d9dfec3ffa
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
2005-06-02 19:46:38 +00:00
Jan Hubicka
6b02a4997b
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
2005-06-02 19:41:31 +00:00
Jan Hubicka
04b0eed045
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
2005-06-02 18:35:59 +00:00
Diego Novillo
462508dd7e
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
2005-06-02 14:26:07 -04:00
Andreas Tobler
423ceeadf1
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
2005-06-02 20:12:47 +02:00
Eric Christopher
c1bd2d6675
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
2005-06-02 18:08:20 +00:00
Nathan Sidwell
3e3935a94c
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
2005-06-02 17:52:28 +00:00
Nathan Sidwell
646221d67d
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
2005-06-02 17:48:58 +00:00
Keith Seitz
7f03307f8e
* gnu/classpath/jdwp/transport/TransportException.java: New file.
...
From-SVN: r100496
2005-06-02 17:27:34 +00:00
Diego Novillo
08873e963f
re PR tree-optimization/21765 (-free-vrp is undocumented.)
...
PR 21765
* doc/invoke.texi: Document -ftree-vrp.
From-SVN: r100495
2005-06-02 13:13:26 -04:00
Dorit Nuzman
ed3c16fbe6
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
2005-06-02 14:52:18 +00:00
David Edelsohn
9419649c01
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
2005-06-02 10:19:18 -04:00
Diego Novillo
46c4495f40
* tree-vrp.c (has_assert_expr, maybe_add_assert_expr): Remove.
...
From-SVN: r100492
2005-06-02 08:35:25 -04:00
Jan Hubicka
e7d6beb0f8
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
2005-06-02 10:59:00 +00:00
Steven Bosscher
75c702541a
> 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
2005-06-02 10:19:12 +00:00
Nathan Sidwell
9267ee62db
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
2005-06-02 09:34:38 +00:00
Nathan Sidwell
58fb06b4a1
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
2005-06-02 09:09:48 +00:00
Bernd Schmidt
ccb4e87e83
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
2005-06-02 08:55:01 +00:00
Nathan Sidwell
fbd4ef4ccd
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
2005-06-02 08:53:48 +00:00
Bernd Schmidt
bf8f8254ea
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
2005-06-02 08:39:06 +00:00
Jerry DeLisle
d29e107f39
MAINTAINERS (Write After Approval): Add self.
...
2005-06-01 Jerry DeLisle <jvdelisle@verizon.net>
* MAINTAINERS (Write After Approval): Add self.
From-SVN: r100480
2005-06-02 06:14:25 +00:00