sandra [Tue, 17 Apr 2012 02:34:20 +0000 (02:34 +0000)]
2012-04-16 Sandra Loosemore <sandra@codesourcery.com>
gcc/
* doc/invoke.texi: Copy-edit to put verbs in the present tense
when describing the current behavior of GCC.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186523
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Tue, 17 Apr 2012 02:29:51 +0000 (02:29 +0000)]
PR c++/38543
* pt.c (determine_specialization): Instead of comparing the number
of parms, check that tsubst gives the right answer.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186522
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Tue, 17 Apr 2012 02:29:43 +0000 (02:29 +0000)]
PR c++/52008
* pt.c (process_partial_specialization): Complain about a partial
specialization with fewer args than primary template parms.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186521
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Tue, 17 Apr 2012 02:29:35 +0000 (02:29 +0000)]
PR c++/50830
* pt.c (convert_template_argument): Handle template template
argument packs.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186520
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Tue, 17 Apr 2012 02:29:27 +0000 (02:29 +0000)]
PR c++/50303
* pt.c (tsubst_pack_expansion): Use tsubst_expr for template
template parameters.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186519
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Tue, 17 Apr 2012 00:18:00 +0000 (00:18 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186516
138bc75d-0d04-0410-961f-
82ee72b054a4
ian [Mon, 16 Apr 2012 23:05:40 +0000 (23:05 +0000)]
compiler: fix infinite recursion in string constant evaluation.
Fixes compilation of incorrect code:
const f, g = g, f
func S() []byte { return []byte(f) }
The problem was already handled for numerical constants.
Part of issue 3186 (go).
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186511
138bc75d-0d04-0410-961f-
82ee72b054a4
burnus [Mon, 16 Apr 2012 21:47:35 +0000 (21:47 +0000)]
2012-04-12 Tobias Burnus <burnus@net-b.de>
PR fortran/52864
* expr.c (gfc_check_vardef_context): Fix assignment check for
pointer components.
2012-04-16 Tobias Burnus <burnus@net-b.de>
PR fortran/52864
* gfortran.dg/pointer_intent_6.f90: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186507
138bc75d-0d04-0410-961f-
82ee72b054a4
burnus [Mon, 16 Apr 2012 21:38:49 +0000 (21:38 +0000)]
2012-04-16 Tobias Burnus <burnus@net-b.de>
PR fortran/52916
* gfortran.dg/public_private_module_3.f90: Use dg-additional-sources
to include public_private_module_4.f90.
* gfortran.dg/public_private_module_4.f90: Skip this test on all
targets
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186506
138bc75d-0d04-0410-961f-
82ee72b054a4
rsandifo [Mon, 16 Apr 2012 18:52:05 +0000 (18:52 +0000)]
gcc/
* genemit.c (gen_exp): Remove ADDRESS handling.
* genoutput.c (scan_operands): Likewise.
* genpeep.c (match_rtx): Likewise.
* genrecog.c (add_to_sequence): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186503
138bc75d-0d04-0410-961f-
82ee72b054a4
dje [Mon, 16 Apr 2012 18:43:00 +0000 (18:43 +0000)]
* doc/install.texi (Specific, *-ibm-aix*): Update assembler bug
status.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186502
138bc75d-0d04-0410-961f-
82ee72b054a4
jamborm [Mon, 16 Apr 2012 16:04:45 +0000 (16:04 +0000)]
2012-04-16 Martin Jambor <mjambor@suse.cz>
* tree-sra.c (build_ref_for_model): Create COMPONENT_REFs only for
bit-fields.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186501
138bc75d-0d04-0410-961f-
82ee72b054a4
paolo [Mon, 16 Apr 2012 15:32:22 +0000 (15:32 +0000)]
/cp
2012-04-16 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/49152
* call.c (op_error): Print types; when flag_diagnostics_show_caret
is false print expressions too.
(op_error_string): Add.
/testsuite
2012-04-16 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/49152
* g++.dg/diagnostic/operator1.C: New.
* g++.dg/ext/label5.C: Adjust.
* g++.dg/ext/va-arg1.C: Likewise.
* g++.dg/other/error20.C: Likewise.
* g++.dg/other/error20.C: Likewise.
* g++.dg/other/error16.C: Likewise.
* g++.dg/other/error10.C: Likewise.
* g++.dg/parse/error30.C: Likewise.
* g++.dg/cpp0x/lambda/lambda-err1.C: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186499
138bc75d-0d04-0410-961f-
82ee72b054a4
uweigand [Mon, 16 Apr 2012 15:19:43 +0000 (15:19 +0000)]
2012-04-16 Ulrich Weigand <ulrich.weigand@linaro.org>
PR target/51819
* config/arm/arm.c (arm_print_operand): Fix invalid alignment
hints for 'A' operand types.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186498
138bc75d-0d04-0410-961f-
82ee72b054a4
ro [Mon, 16 Apr 2012 14:49:00 +0000 (14:49 +0000)]
Use target_alias in validate_failures.py
* testsuite-management/validate_failures.py (GetBuildData): Use
target_alias.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186497
138bc75d-0d04-0410-961f-
82ee72b054a4
hubicka [Mon, 16 Apr 2012 14:34:22 +0000 (14:34 +0000)]
* cgraph.h (symtab_node_base): Add next and previous pointers.
(cgraph_node): Remove next and preivous pointers.
(varpool_node): Likewise; remove next/previous GTY marker;
it is not type safe.
(symtab_node_def): Update GTY marker
(x_cgraph_nodes, cgraph_nodes): Remove.
(symtab_nodes): New function.
(cgraph_order): Rename to ...
(symtab_order): ... this one.
(symtab_register_node, symtab_unregister_node, symtab_remove_node):
Declare.
(x_varpool_nodes, varpool_nodes): Remove.
(FOR_EACH_STATIC_VARIABLE): Update.
(symtab_function_p, symtab_variable_p): New function.
(FOR_EACH_VARIABLE): Update.
(varpool_first_variable, varpool_next_variable): New functions.
(FOR_EACH_VARIABLE): Update.
(cgraph_first_defined_function): Update.
(cgraph_next_defined_function, cgraph_next_defined_function): Update.
(FOR_EACH_DEFINED_FUNCTION, FOR_EACH_FUNCTION): Update.
(cgraph_first_function, cgraph_next_function): New.
(FOR_EACH_FUNCTION): Update.
(cgraph_first_function_with_gimple_body,
cgraph_next_function_with_gimple_body): Update.
* symtab.c: New file.
* cgraph.c: Update copyright dates.
(x_cgraph_nodes, cgraph_order): Remove.
(NEXT_FREE_NODE): Update.
(SET_NEXT_FREE_NODE): New.
(cgraph_create_node_1): Remove common code.
(cgraph_create_node); Remove common code; call symtab_register_node.
(cgraph_remove_node): Remove common code; call symtab_unregister-node.
(cgraph_add_asm_node); update.
(cgraph_clone_node): Register new node.
* cgraphunit.c (process_function_and_variable_attributes): Update.
(cgraph_analyze_functions): Update.
(cgraph_analyze_functions): Update.
(cgraph_output_in_order): Update.
* lto-cgraph.c (input_node, input_varpool_node, input_cgraph_1): Update.
* ipa-inline.c (recursive_inlining); update.
* lto-streamer-in.c (lto_input_toplevel_asms); Update.
* ipa.c (cgraph_remove_unreachable_nodes): Update.
* Makefile.in: Add symtab.o
* varpool.c (x_varpool_nodes): Remove
(varpool_node): Remove common code; call symtab_register_node.
(varpool_remove_node); Remove common code; call symtab_unregister_node.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186496
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Mon, 16 Apr 2012 14:15:36 +0000 (14:15 +0000)]
PR c++/51148
* friend.c (make_friend_class): Call check_for_bare_parameter_packs.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186495
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Mon, 16 Apr 2012 13:21:30 +0000 (13:21 +0000)]
2012-04-16 Richard Guenther <rguenther@suse.de>
PR middle-end/52977
* tree.h (VECTOR_CST_NELTS): Adjust.
(struct tree_vector): Add explicit length field.
(make_vector_stat): Declare.
(make_vector): Define.
* tree.c (make_vector_stat): New function.
(build_vector_stat): Use it.
* tree-streamer-in.c (streamer_alloc_tree): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186494
138bc75d-0d04-0410-961f-
82ee72b054a4
wschmidt [Mon, 16 Apr 2012 12:15:50 +0000 (12:15 +0000)]
2012-04-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
PR tree-optimization/52976
* tree-ssa-reassoc.c (add_to_ops_vec_max_rank): New function.
(undistribute_ops_list): Ops with repeat counts aren't eligible for
undistribution.
(attempt_builtin_powi): Call add_to_ops_vec_max_rank.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186493
138bc75d-0d04-0410-961f-
82ee72b054a4
hubicka [Mon, 16 Apr 2012 12:04:17 +0000 (12:04 +0000)]
* cgraph.h (FOR_EACH_VARIABLE, FOR_EACH_VARIABLE, FOR_EACH_FUNCTION):
New macros.
* lto-symtab.c (lto_symtab_merge_cgraph_nodes): Use FOR_EACH
walkers to walk cgraph and varpool.
* cgraph.c (cgraph_node_for_asm): Likewise.
(dump_cgraph): Likewise.
* value-prof.c (init_node_map): Likewise.
* tree.c (free_lang_data_in_cgraph): Likewise.
* tree-emutls.c: (ipa_lower_emutls): Likewise.
* ipa-reference.c (generate_summary, propagate): Likewise.
* cgraphunit.c (verify_cgraph, cgraph_process_same_body_aliases,
cgraph_mark_functions_to_output, cgraph_output_in_order,
output_weakrefs, cgraph_materialize_all_clones,
cgraph_optimize): Likewise.
* lto-cgraph.c (merge_profile_summaries): Likewise.
(input_cgraph): Likewise.
* ipa-pure-const.c (generate_summary): Likewise.
(propagate): Likwise.
* ipa-utils.c (ipa_reduced_postorder): Likewise.
(ipa_free_postorder_info): Likewise.
(ipa_reverse_postorder): Likewise.
* ipa-inline.c (ipa_inline): Likewise.
* matrix-reorg.c (find_matrices_decl): Likewise.
(matrix_reorg): Likewise.
* tree-vectorizer.c (increase_alignment): Likewise.
* ipa.c (cgraph_remove_unreachable_nodes): Likewise.
(function_and_variable_visibility): Likewise.
(whole_program_function_and_variable_visibility): Likewise.
(ipa_cdtor_merge): Likewise.
* trans-mem.c (ipa_tm_execute): Likewise.
* ipa-inline-analysis.c (dump_inline_summaries): Likewise.
* ipa-prop.c (ipa_print_all_jump_functions): Likewise.
(ipa_print_all_params): Likewise.
(ipa_update_after_lto_read): Likewise.
* tree-profie.c (tree_profiling): Likewise.
* tree-ssa-structalias.c (ipa_pta_execute): Likewise.
* passes.c (dump_passes): Likewise.
(do_per_function): Likewise.
(ipa_write_summaries): Likewise.
* varpool.c (dump_varpool): Likewise.
(varpool_node_for_asm): Likewise.
(varpool_assemble_pending_decls): Likewise.
* decl2.c (collect_candidates_for_java_method_alias): Use FOR_EACH
walkers to walk cgraph and varpool.
* lto.c (read_cgraph_and_symbols): Use FOR_EACH
walkers to walk cgraph and varpool.
(materialize_cgraph): Likewise.
* lto-partition.c (lto_1_to_1_map): Likewise.
(lto_balanced_map): Likewise.
(lto_promote_cross_file_statics): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186492
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Mon, 16 Apr 2012 11:03:16 +0000 (11:03 +0000)]
2012-04-16 Richard Guenther <rguenther@suse.de>
PR tree-optimization/52975
* tree-if-conv.c (predicate_bbs): Do not simplify inverted
condition but always mark it with TRUTH_NOT_EXPR.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186491
138bc75d-0d04-0410-961f-
82ee72b054a4
ro [Mon, 16 Apr 2012 10:14:40 +0000 (10:14 +0000)]
Fix plugin testsuite, remove uses of TODO_dump_func (PR testsuite/52948)
* lib/plugin-support.exp (plugin-test-execute): Properly determine
testcase name.
Use fail, pass instead of unresolved.
Don't log $optstr.
PR testsuite/52948
* g++.dg/plugin/dumb_plugin.c (pass_dumb_plugin_example): Remove
TODO_dump_func.
* g++.dg/plugin/selfassign.c (pass_warn_self_assign): Likewise.
* gcc.dg/plugin/one_time_plugin.c (one_pass): Likewise.
* gcc.dg/plugin/selfassign.c (pass_warn_self_assign): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186490
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Mon, 16 Apr 2012 09:25:14 +0000 (09:25 +0000)]
2012-04-16 Richard Guenther <rguenther@suse.de>
PR tree-optimization/52975
* tree-ssa-forwprop.c (combine_cond_exprs): New function.
(ssa_forward_propagate_and_combine): Call it for COND_EXPRs
and VEC_COND_EXPRs. Also combine into VEC_COND_EXPRs condition.
* fold-const.c (operand_equal_p): Handle TARGET_MEM_REF.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186488
138bc75d-0d04-0410-961f-
82ee72b054a4
janus [Mon, 16 Apr 2012 08:48:11 +0000 (08:48 +0000)]
2012-04-16 Janus Weil <janus@gcc.gnu.org>
PR fortran/52968
* class.c (gfc_build_class_symbol): Make sure the 'f2k_derived'
namespace is present.
2012-04-16 Janus Weil <janus@gcc.gnu.org>
PR fortran/52968
* gfortran.dg/typebound_call_23.f03: New test case.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186486
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Mon, 16 Apr 2012 03:18:17 +0000 (03:18 +0000)]
PR c++/47220
* pt.c (coerce_template_parameter_pack): Check for error_mark_node.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186480
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Mon, 16 Apr 2012 03:18:06 +0000 (03:18 +0000)]
PR c++/52292
PR c++/52380
* pt.c (coerce_template_parms): Even if we aren't converting we
want to expand argument packs.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186479
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Mon, 16 Apr 2012 00:18:34 +0000 (00:18 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186478
138bc75d-0d04-0410-961f-
82ee72b054a4
paolo [Sun, 15 Apr 2012 23:35:27 +0000 (23:35 +0000)]
2012-04-15 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/52702
* include/std/type_traits (is_trivially_destructible): Add.
(has_trivial_destructor): Remove.
* testsuite/util/testsuite_common_types.h: Adjust.
* testsuite/20_util/tuple/requirements/dr801.cc: Likewise.
* testsuite/20_util/pair/requirements/dr801.cc: Likewise.
* testsuite/20_util/is_trivially_destructible/value.cc: New.
* testsuite/20_util/is_trivially_destructible/requirements/
typedefs.cc: Likewise.
* testsuite/20_util/is_trivially_destructible/requirements/
explicit_instantiation.cc: Likewise.
* testsuite/20_util/make_signed/requirements/typedefs_neg.cc:
Adjust dg-error line numbers.
* testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
Likewise.
* testsuite/20_util/declval/requirements/1_neg.cc: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186474
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Sun, 15 Apr 2012 17:07:39 +0000 (17:07 +0000)]
PR c++/52706
* mangle.c (write_type): nullptr_t is a builtin type.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186469
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Sun, 15 Apr 2012 17:07:30 +0000 (17:07 +0000)]
PR c++/52818
* c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
(C_STD_NAME): Distinguish between C++98 and C++11.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186468
138bc75d-0d04-0410-961f-
82ee72b054a4
tkoenig [Sun, 15 Apr 2012 11:52:44 +0000 (11:52 +0000)]
2012-04-15 Thomas Koenig <tkoenig@gcc.gnu.org>
PR libfortran/38199
PR libfortran/50673
* intrinsics/string_intriniscs_inc.c (string_len_trim):
Remove prototypes for string_len_trim and move to...
* libgfortran.h (string_len_trim): ... here and
(string_len_trim_char4): ...here.
* io/unit.c: For non-array internal arrays where we do reading,
adjust the record length to the last non-blank character.
* io/unix.c: Fix typo.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186466
138bc75d-0d04-0410-961f-
82ee72b054a4
janus [Sun, 15 Apr 2012 11:47:49 +0000 (11:47 +0000)]
2012-04-15 Janus Weil <janus@gcc.gnu.org>
PR fortran/51082
* trans-expr.c (gfc_conv_expr_reference): Check if the expression is a
simple function call (or a more involved PPC reference).
2012-04-15 Janus Weil <janus@gcc.gnu.org>
PR fortran/51082
* gfortran.dg/proc_ptr_comp_34.f90: New test case.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186465
138bc75d-0d04-0410-961f-
82ee72b054a4
burnus [Sun, 15 Apr 2012 05:52:51 +0000 (05:52 +0000)]
2012-04-14 Tobias Burnus <burnus@net-b.de>
PR fortran/52916
PR fortran/40973
* gfortran.h (symbol_attribute): Add public_used.
* interface.c (check_sym_interfaces, check_uop_interfaces,
gfc_check_interfaces): Set it.
* resolve.c (resolve_typebound_procedure): Ditto.
* trans-decl.c (build_function_decl): Use it.
2012-04-14 Tobias Burnus <burnus@net-b.de>
PR fortran/52916
PR fortran/40973
* gfortran.dg/public_private_module_3.f90: New.
* gfortran.dg/public_private_module_4.f90: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186464
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Sun, 15 Apr 2012 00:18:22 +0000 (00:18 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186460
138bc75d-0d04-0410-961f-
82ee72b054a4
paolo [Sat, 14 Apr 2012 22:33:22 +0000 (22:33 +0000)]
2012-04-14 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/52699
* include/bits/random.tcc (independent_bits_engine<>::operator()())
Avoid various overflows; use common_type on result_type and
_RandomNumberEngine::result_type; avoid floating point computations;
other smaller tweaks.
* include/bits/random.tcc (uniform_int_distribution<>::operator())
Use common_type; assume _UniformRandomNumberGenerator::result_type
unsigned; tidy.
* include/bits/stl_algobase.h (__lg(unsigned), __lg(unsigned long),
__lg(unsigned long long)): Add.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186456
138bc75d-0d04-0410-961f-
82ee72b054a4
uros [Sat, 14 Apr 2012 14:09:11 +0000 (14:09 +0000)]
* config/i386/sse.md: Fix whitespace and formatting.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186455
138bc75d-0d04-0410-961f-
82ee72b054a4
uros [Sat, 14 Apr 2012 13:30:46 +0000 (13:30 +0000)]
2012-04-14 Uros Bizjak <ubizjak@gmail.com>
* config/i386/sse.md (ssse3_plusminus): New code iterator.
(avx2_ph<plusminus_mnemonic>wv16hi3): Macroize insn from
avx2_ph{add,adds,sub,subs}wv16hi3 using ssse3_plusminus code iterator.
(ssse3_ph<plusminus_mnemonic>wv8hi3): Macroize insn from
ssse3_ph{add,adds,sub,subs}wv8hi3 using ssse3_plusminus code iterator.
(ssse3_ph<plusminus_mnemonic>wv4hi3): Macroize insn from
ssse3_ph{add,adds,sub,subs}wv4hi3 using ssse3_plusminus code iterator.
(avx2_ph<plusminus_mnemonic>dv8si3): Macroize insn from
avx2_ph{add,adds,sub,subs}dv8si3 using plusminus code iterator.
(ssse3_ph<plusminus_mnemonic>dv4si3): Macroize insn from
ssse3_ph{add,adds,sub,subs}dv4si3 using plusminus code iterator.
(ssse3_ph<plusminus_mnemonic>dv2si3): Macroize insn from
ssse3_ph{add,adds,sub,subs}dv2si3 using plusminus code iterator.
(xop_plus): New code iterator.
(macs): New code attribute.
(macds): Ditto.
(xop_p<macs><ssemodesuffix><ssemodesuffix>): Macroize insn from
xop_pmacs{,s}{ww,dd} using xop_plus code iterator and VI24_128 mode
iterator.
(xop_p<macs>dql): Macroize insn from xop_pmacs{,s}dql using
xop_plus code iterator.
(xop_p<macs>dqh): Macroize insn from xop_pmacs{,s}dqh using
xop_plus code iterator.
(xop_p<macs>wd): Macroize insn from xop_pmacs{,s}wd using
xop_plus code iterator.
(xop_p<madcs>wd): Macroize insn from xop_pmadcs{,s}wd using
xop_plus code iterator.
(xop_phadd<u>bw): Macroize insn from xop_phadd{,u}bw usign
any_extend code iterator.
(xop_phadd<u>bd): Macroize insn from xop_phadd{,u}bd usign
any_extend code iterator.
(xop_phadd<u>bq): Macroize insn from xop_phadd{,u}bq usign
any_extend code iterator.
(xop_phadd<u>wd): Macroize insn from xop_phadd{,u}wd usign
any_extend code iterator.
(xop_phadd<u>wq): Macroize insn from xop_phadd{,u}wq usign
any_extend code iterator.
(xop_phadd<u>dq): Macroize insn from xop_phadd{,u}dq usign
any_extend code iterator.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186454
138bc75d-0d04-0410-961f-
82ee72b054a4
amodra [Sat, 14 Apr 2012 13:24:43 +0000 (13:24 +0000)]
PR libstdc++/52839
* acinclude.m4 (_GLIBCXX_ATOMIC_BUILTINS): Do not depend on
glibcxx_cv_atomic_long_long.
* configure: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186453
138bc75d-0d04-0410-961f-
82ee72b054a4
vries [Sat, 14 Apr 2012 12:17:50 +0000 (12:17 +0000)]
2012-04-14 Tom de Vries <tom@codesourcery.com>
* gcc.dg/superblock.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186452
138bc75d-0d04-0410-961f-
82ee72b054a4
vries [Sat, 14 Apr 2012 12:17:41 +0000 (12:17 +0000)]
2012-04-14 Tom de Vries <tom@codesourcery.com>
* cfgcleanup.c (try_optimize_cfg): Replace call to delete_insn_chain by
call to delete_insn. Remove code to reorder BASIC_BLOCK note and
DELETED_LABEL note, and move it to ...
* cfgrtl.c (delete_insn): ... here. Change return type to void.
(delete_insn_and_edges): Likewise.
(delete_insn_chain): Handle new return type of delete_insn. Delete
chain backwards rather than forwards.
* rtl.h (delete_insn, delete_insn_and_edges): Change return type to
void.
* cfglayout.c (fixup_reorder_chain): Delete unused label.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186451
138bc75d-0d04-0410-961f-
82ee72b054a4
hubicka [Sat, 14 Apr 2012 10:24:59 +0000 (10:24 +0000)]
* cgraph.h: Update copyrights;
(symtab_node): Turn to union typedef.
(symtab_node_base): New structure.
(symtab_type): Add SYMTAB_SYMBOL tag.
* cgraph.c: Update references to fields
(cgraph_hash, assembler_name_hash): Turn into symtab_node.
(cgraph_local_info): Remove lto_file_data
and externally_visible.
(cgraph_node): Remove decl; same_comdat_group list;
aux; ref_list; order; address_taken; reachable_from_other_parittion,
in_other_partition; resolution.
(varpool_node): Remove decl; same_comdat_group;
ref_list; lto_file_data; aux; order; resolution; externally_visible;
used_from_other_partition; in_other_partition.
(symtab_node_def); New union.
(cgraph, varpool): Update.
(varpool_first_static_initializer, varpool_next_static_initializer,
cgraph_only_called_directly_or_aliased_p,
varpool_can_remove_if_no_refs, varpool_can_remove_if_no_refs,
varpool_all_refs_explicit_p, cgraph_alias_aliased_node,
varpool_alias_aliased_node, cgraph_edge_recursive_p): Update
field references.
* cgraph.c: Likewise.
* cgraphbuild.c: Likewise.
* lto-symtab.c: Likewise.
* c-gimplify.c: Likewise.
* value-prof.c: Likewise.
* tree.c: Likewise.
* ipa-cp.c: Likewise.
* tree-emutls.c: Likewise.
* ipa-inline-transform.c: Likwise.
* ipa-reference.c: Likewise.
* cgraphunit.c: Likewise.
* ipa-ref.c: Likewise.
* lto-cgraph.c: Likewise.
* ipa-ref-inline.h: Likewise.
* ipa-pure-const.c: Likewise.
* lto-streamer-out.c: Likewise.
* ipa-utils.c: Likewise.
* ipa-inline.c: Likewise.
* matrix-reorg.c: Likewise.
* tree-eh.c: Likewise.
* tree-vectorizer.c: Likewise.
* ipa-split.c: Likewise.
* ipa.c: Likewise.
* trans-mem.c: Likewise.
* ipa-inline-analysis.c: Likewise.
* gimplify.c: Likewise.
* cfgexpand.c: Likewise.
* tree-sra.c: Likewise.
* ipa-prop.c: Likewise.
* varasm.c: Likewise.
* tree-nested.c: Likewise.
* tree-inline.c: Likewise.
* tree-profile.c: Likewise.
* tree-ssa-structalias.c: Likewise.
* passes.c: Likewise.
* varpool.c: Likewise.
* tree.c: Update field referenced for new cgraph/varpool layout.
* decl2.c: Likewise.
* gcc-interface/trans.c (finalize_nrv): Update field referenced for new
cgraph/varpool layout.
* lto.c: Update field referenced for new cgraph/varpool layout.
* lto-partition.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186450
138bc75d-0d04-0410-961f-
82ee72b054a4
vries [Sat, 14 Apr 2012 05:49:24 +0000 (05:49 +0000)]
2012-04-14 Tom de Vries <tom@codesourcery.com>
* gcc.dg/pr51879-12.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186448
138bc75d-0d04-0410-961f-
82ee72b054a4
vries [Sat, 14 Apr 2012 05:49:15 +0000 (05:49 +0000)]
2012-04-14 Tom de Vries <tom@codesourcery.com>
* tree-ssa-tail-merge.c (stmt_local_def): New function, factored out of
same_succ_hash, with local_def inlined. Use SINGLE_SSA_DEF_OPERAND.
Use FOR_EACH_IMM_USE_FAST instead of FOR_EACH_IMM_USE_STMT. Remove use
of find_edge.
(gsi_advance_fw_nondebug_nonlocal): New function.
(local_def): Removed function.
(same_succ_hash): Use stmt_local_def.
(same_succ_equal): Use gsi_advance_fw_nondebug_nonlocal.
(gsi_advance_bw_nondebug_nonlocal): Use stmt_local_def.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186447
138bc75d-0d04-0410-961f-
82ee72b054a4
paolo [Sat, 14 Apr 2012 01:34:00 +0000 (01:34 +0000)]
2012-04-13 Paolo Carlini <paolo.carlini@oracle.com>
* testsuite/26_numerics/cmath/51083.cc: Move...
* testsuite/26_numerics/headers/cmath/51083.cc: ... here.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186445
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Sat, 14 Apr 2012 00:20:40 +0000 (00:20 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186444
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Fri, 13 Apr 2012 19:43:57 +0000 (19:43 +0000)]
PR c++/52824
* pt.c (any_pack_expanson_args_p): New.
(coerce_template_parms): Use it.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186434
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Fri, 13 Apr 2012 19:43:47 +0000 (19:43 +0000)]
PR c++/52905
* call.c (joust): Handle comparing list and non-list ctors.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186433
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Fri, 13 Apr 2012 19:43:37 +0000 (19:43 +0000)]
PR c++/52915
* decl2.c (finish_anon_union): Use cp_finish_decl.
* error.c (dump_function_name): Avoid showing anonymous "name".
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186432
138bc75d-0d04-0410-961f-
82ee72b054a4
hjl [Fri, 13 Apr 2012 18:20:10 +0000 (18:20 +0000)]
Define _ILP32 and __ILP32__ for x32
* config/i386/i386-c.c (ix86_target_macros): Define _ILP32
and __ILP32__ for x32.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186429
138bc75d-0d04-0410-961f-
82ee72b054a4
jamborm [Fri, 13 Apr 2012 17:57:21 +0000 (17:57 +0000)]
2012-04-13 Martin Jambor <mjambor@suse.cz>
PR middle-end/52939
* gimple-fold.c (gimple_get_virt_method_for_binfo): Bail out if
fold_ctor_reference returns a zero constant.
* testsuite/g++.dg/ipa/pr52939.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186428
138bc75d-0d04-0410-961f-
82ee72b054a4
hjl [Fri, 13 Apr 2012 17:21:06 +0000 (17:21 +0000)]
Add and use config/i386/gnu-user-common.h
* config.gcc: Add i386/gnu-user-common.h before all
i386/gnu-user.h and i386/gnu-user64.h usages.
* config/i386/gnu-user-common.h: New.
* config/i386/gnu-user.h (CPP_SPEC): Moved to gnu-user-common.h.
(CC1_SPEC): Likewise.
(ENDFILE_SPEC): Likewise.
(DEFAULT_PCC_STRUCT_RETURN): Likewise.
(TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Likewise.
(TARGET_OS_CPP_BUILTINS): Likewise.
(LIBGCC2_HAS_TF_MODE): Likewise.
(LIBGCC2_TF_CEXT): Likewise.
(TF_SIZE): Likewise.
(TARGET_ASM_FILE_END): Likewise.
(STACK_CHECK_MOVING_SP): Likewise.
(STACK_CHECK_STATIC_BUILTIN): Likewise.
* config/i386/gnu-user64.h: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186427
138bc75d-0d04-0410-961f-
82ee72b054a4
jamborm [Fri, 13 Apr 2012 17:12:33 +0000 (17:12 +0000)]
2012-04-13 Martin Jambor <mjambor@suse.cz>
* expr.c (expand_expr_real_1): Pass type, not the expression, to
set_mem_attributes for a memory temporary. Do not call the function
for the memory temporary created for a bitfield.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186426
138bc75d-0d04-0410-961f-
82ee72b054a4
aoliva [Fri, 13 Apr 2012 15:56:21 +0000 (15:56 +0000)]
PR debug/48866
* df.h (enum debug_temp_where): New.
(dead_debug_init, dead_debug_finish) Declare.
(dead_debug_add, dead_debug_insert_temp): Declare.
(struct dead_debug_use, struct dead_debug): Moved from...
* df-problems.c: ... here.
(df_set_unused_notes_for_mw): Bind debug uses of unused regno
to a debug temp.
(df_create_unused_note): Likewise.
(df_set_dead_notes_for_mw): Move comment where it belongs.
(dead_debug_init): Export.
(dead_debug_reset_uses): New, factored out of...
(dead_debug_finish): ...this. Export.
(dead_debug_reset): Remove.
(dead_debug_add): Export.
(dead_debug_insert_before): Rename to...
(dead_debug_insert_temp): ... this. Add where argument. Export.
Locate stored value for BEFORE_WITH_VALUE. Avoid repeat inserts.
Return insertion count.
(df_note_bb_compute): Adjust.
* dce.c (word_dce_process_block): Adjust dead debug uses.
(dce_process_block): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186422
138bc75d-0d04-0410-961f-
82ee72b054a4
aoliva [Fri, 13 Apr 2012 15:56:07 +0000 (15:56 +0000)]
* df-problems.c (df_note_bb_compute): Do not take note of
debug uses for whose REGs we won't emit DEAD or UNUSED notes.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186421
138bc75d-0d04-0410-961f-
82ee72b054a4
aoliva [Fri, 13 Apr 2012 15:55:52 +0000 (15:55 +0000)]
PR debug/51570
* var-tracking.c (expand_depth): New type.
(onepart_aux, expand_loc_callback_data): Change depth type to it.
(loc_exp_dep_alloc): Adjust initializer.
(update_depth): Use new type. Add entryvals.
(vt_expand_var_loc_chain): Take note of expansions with
ENTRY_VALUEs, but don't accept them right away. Run an optional
second pass accepting the minimum ENTRY_VALUE count found in the
first pass.
(vt_expand_loc_callback, INIT_ELCD): Adjust.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186420
138bc75d-0d04-0410-961f-
82ee72b054a4
vries [Fri, 13 Apr 2012 14:53:16 +0000 (14:53 +0000)]
2012-04-13 Tom de Vries <tom@codesourcery.com>
* gcc.dg/pr52734.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186419
138bc75d-0d04-0410-961f-
82ee72b054a4
vries [Fri, 13 Apr 2012 14:53:07 +0000 (14:53 +0000)]
2012-04-13 Tom de Vries <tom@codesourcery.com>
* tree-ssa-tail-merge.c (gsi_advance_bw_nondebug_nonlocal): Add
parameters vuse and vuse_escaped.
(find_duplicate): Init vuse1, vuse2 and vuse_escaped. Pass to
gsi_advance_bw_nondebug_nonlocal. Return if vuse_escaped and
vuse1 != vuse2.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186418
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Fri, 13 Apr 2012 12:22:16 +0000 (12:22 +0000)]
2012-04-13 Richard Guenther <rguenther@suse.de>
PR tree-optimization/52969
* tree-if-conv.c (predicate_mem_writes): Properly gimplify
the condition for the COND_EXPR and handle predicate negation
by swapping the COND_EXPR arms.
* gcc.dg/torture/pr52969.c: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186416
138bc75d-0d04-0410-961f-
82ee72b054a4
chrbr [Fri, 13 Apr 2012 11:58:15 +0000 (11:58 +0000)]
fix last entry
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186415
138bc75d-0d04-0410-961f-
82ee72b054a4
chrbr [Fri, 13 Apr 2012 11:44:13 +0000 (11:44 +0000)]
PR:52604: (~__freelist): Reset pointer
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186414
138bc75d-0d04-0410-961f-
82ee72b054a4
nickc [Fri, 13 Apr 2012 10:59:02 +0000 (10:59 +0000)]
* config/rl78/rl78.c (rl78_devirt_pass): Remove use of
TODO_dump_func flag.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186413
138bc75d-0d04-0410-961f-
82ee72b054a4
paolo [Fri, 13 Apr 2012 10:43:28 +0000 (10:43 +0000)]
2012-04-13 Paolo Carlini <paolo.carlini@oracle.com>
* include/debug/safe_iterator.h (_BeforeBeginHelper<>::
_S_Is_Beginnest): Add.
* include/debug/forward_list (_BeforeBeginHelper<>::
_S_Is_Beginnest): Likewise.
(_Safe_iterator<>::_M_is_beginnest): Add.
* include/debug/safe_iterator.tcc (_Safe_iterator<>::_M_valid_range):
Use the latter.
* testsuite/23_containers/forward_list/debug/splice_after.cc:
Add test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186411
138bc75d-0d04-0410-961f-
82ee72b054a4
abel [Fri, 13 Apr 2012 09:36:42 +0000 (09:36 +0000)]
PR rtl-optimization/52203
PR rtl-optimization/52715
Revert the 2012-03-07 fix for PR 52203.
* sel-sched.c (reset_sched_cycles_in_current_ebb): Check that
the insn does not modify DFA right before issuing, adjust
issue_rate accordingly.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186410
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Fri, 13 Apr 2012 09:24:28 +0000 (09:24 +0000)]
2012-04-13 Richard Guenther <rguenther@suse.de>
PR c/52549
* c-typeck.c (pointer_diff): Remove bogus assert.
* gcc.dg/pr52549.c: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186408
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Fri, 13 Apr 2012 09:22:33 +0000 (09:22 +0000)]
2012-04-13 Richard Guenther <rguenther@suse.de>
PR c/52862
* convert.c (convert_to_pointer): Remove special-casing of
zero.
* gcc.dg/pr52862.c: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186407
138bc75d-0d04-0410-961f-
82ee72b054a4
jye2 [Fri, 13 Apr 2012 08:05:39 +0000 (08:05 +0000)]
2012-04-13 Joey Ye <joey.ye@arm.com>
* config/arm/constraints.md (Pe): New constraint.
* config/arm/arm.md: New split for imm 256-510.
testsuite:
* gcc.target/arm/thumb1-imm.c: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186406
138bc75d-0d04-0410-961f-
82ee72b054a4
xguo [Fri, 13 Apr 2012 07:08:51 +0000 (07:08 +0000)]
* config/arm/arm-cores.def: Added core cortex-m0plus.
* config/arm/arm-tune.md: Regenerated.
* config/arm/arm-tables.opt: Regenerated.
* doc/invoke.texi: Added entry for cpu ARM cortex-m0plus.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186405
138bc75d-0d04-0410-961f-
82ee72b054a4
bkoz [Fri, 13 Apr 2012 00:33:10 +0000 (00:33 +0000)]
2012-04-12 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/unordered_map.h (__unordered_map): Remove.
(__unordered_multimap): Remove.
Add aliases for __umap_traits, __umap_hashtable, __ummap_traits,
__ummap_hashtable.
(unordered_map): Derive from __umap_hashtable.
(unordered_multimap): Derive from __ummap_hashtable.
* include/bits/unordered_set.h (__unordered_set): Remove.
(__unordered_multiset): Remove.
Add aliases for __uset_traits, __uset_hashtable, __umset_traits,
__umset_hashtable.
(unordered_set): Derive from __uset_hashtable.
(unordered_multiset): Derive from __umset_hashtable.
* include/bits/hashtable.h (__cache_default): New, consolidated
cache defaults for _Hashtable. Adjust comments for doxygen.
(_Hashtable): Consolidate bool template parameters into new,
_Traits class. Inherited base classes synthesize _Hashtable in
CRTP via original 10 parameters. Prefer using declarations to
typedefs, add __node_type, __bucket_type, etc. Push many nested
types down hierarchy to _Hashtable_base. Add constructors
necessary for top-level unordered_containers. Consolidate insert
member functions and logic in new base class, __detail::_Insert
and __detail::_Insert_base.
(_Hashtable::operator=(initializer_list)): Add.
* include/bits/hashtable_policy.h: Convert to doxygen markup.
(_Hashtable_traits) New. Consolidate bool template parameters here.
(_Insert, _Insert_base): New, consolidated insert member functions.
(_Map_base, _Equality, _Rehash_base): Adjust template parameters,
use base types.
(_Hashtable_base): Move type declarations useful to other base
classes into this class.
* python/libstdcxx/v6/printers.py (Tr1HashtableIterator): Update.
* testsuite/23_containers/unordered_set/instantiation_neg.cc:
Adjust traits, line numbers.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186403
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Fri, 13 Apr 2012 00:18:02 +0000 (00:18 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186402
138bc75d-0d04-0410-961f-
82ee72b054a4
amodra [Thu, 12 Apr 2012 22:26:24 +0000 (22:26 +0000)]
PR target/52828
* config/rs6000/rs6000.c (rs6000_emit_stack_tie): Rewrite with
tie regs on destination of sets. Delete forward declaration.
(rs6000_emit_stack_reset): Update rs6000_emit_stack_tie calls.
(rs6000_emit_prologue): Likewise.
(rs6000_emit_epilogue): Likewise. Use in place of gen_frame_tie
and gen_stack_tie.
(is_mem_ref): Use tie_operand to recognise stack ties.
* config/rs6000/predicates.md (tie_operand): New.
* config/rs6000/rs6000.md (restore_stack_block): Generate new
stack tie rtl.
(restore_stack_nonlocal): Likewise.
(stack_tie): Update.
(frame_tie): Delete.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186397
138bc75d-0d04-0410-961f-
82ee72b054a4
wschmidt [Thu, 12 Apr 2012 21:22:53 +0000 (21:22 +0000)]
2012-04-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
* tree-ssa-reassoc.c (attempt_builtin_powi_stats): Change %ld to
HOST_WIDE_INT_PRINT_DEC in format strings.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186393
138bc75d-0d04-0410-961f-
82ee72b054a4
jyasskin [Thu, 12 Apr 2012 20:59:09 +0000 (20:59 +0000)]
Fix PR52822 (stable_partition move-assigns object to itself) by
scanning for the first value that doesn't match the predicate before
starting to rearrange values.
2012-04-03 Jeffrey Yasskin <jyasskin@google.com>
PR libstdc++/52822
* include/bits/stl_algo.h (__find_if_not): Expose in
C++98 mode.
(__find_if_not_n): Like __find_if_not, but works on and updates a
counted range instead of a bounded range.
(stable_partition): Guarantee !__pred(*__first) in call to
__stable_partition_adaptive() or __inplace_stable_partition().
(__stable_partition_adaptive): Use new precondition to avoid
moving/copying objects onto themselves. Guarantee new
precondition to recursive calls.
(__inplace_stable_partition): Use new precondition to simplify
base case, remove __last parameter. Guarantee new precondition to
recursive calls.
* testsuite/25_algorithms/stable_partition/moveable.cc (test02):
Test a sequence that starts with a value matching the predicate.
* testsuite/25_algorithms/stable_partition/pr52822.cc:
Test vectors, which have a destructive self-move-assignment.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186391
138bc75d-0d04-0410-961f-
82ee72b054a4
schwab [Thu, 12 Apr 2012 20:20:01 +0000 (20:20 +0000)]
* testsuite/Makefile.am (check_DEJAGNUnormal0): Run
prettyprinters.exp.
* testsuite/Makefile.in: Regenerated.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186389
138bc75d-0d04-0410-961f-
82ee72b054a4
uros [Thu, 12 Apr 2012 18:37:42 +0000 (18:37 +0000)]
PR target/52932
* config/i386/avx2intrin.h (_mm256_permutevar8x32_ps): Change second
argument type to __m256i. Update call to __builtin_ia32_permvarsf256.
* config/i386/sse.md (UNSPEC_VPERMVAR): New.
(UNSPEC_VPERMSI, UNSPEC_VPERMSF): Remove.
(avx2_permvarv8sf, avx2_permvarv8si): Switch operands 1 and 2.
(avx2_permvar<mode>): Macroize insn from avx2_permvarv8sf and
avx2_permvarv8si using VI4F_256 mode iterator.
* config/i386/i386.c (bdesc_args) <__builtin_ia32_permvarsf256>:
Update builtin type to V8SF_FTYPE_V8SF_V8SI.
(ix86_expand_vec_perm): Update calls to gen_avx2_permvarv8si and
gen_avx2_permvarv8sf.
(expand_vec_perm_pshufb): Ditto.
testsuite/ChangeLog:
PR target/52932
* gcc.target/i386/avx2-vpermps-1.c (avx2_test): Use __m256i type for
second function argument.
* gcc.target/i386/avx2-vpermps-2.c (init_permps): Update declaration.
(calc_permps): Update declaration. Calculate result correctly.
(avx2_test): Change src2 type to union256i_d.
* gcc.target/i386/avx2-vpermd-2.c (calc_permd): Calculate result
correctly.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186388
138bc75d-0d04-0410-961f-
82ee72b054a4
meissner [Thu, 12 Apr 2012 17:10:27 +0000 (17:10 +0000)]
[gcc]
2012-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
PR target/52775
* config/rs6000/rs6000.h (TARGET_FCFID): Add TARGET_PPC_GPOPT to
the list of options to enable the FCFID instruction.
(TARGET_EXTRA_BUILTINS): Adjust comment.
[gcc/testsuite]
2012-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
PR target/52775
* gcc.target/powerpc/pr52775.c: New file.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186387
138bc75d-0d04-0410-961f-
82ee72b054a4
wschmidt [Thu, 12 Apr 2012 16:15:13 +0000 (16:15 +0000)]
gcc:
2012-04-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
PR tree-optimization/18589
* tree-ssa-reassoc.c (reassociate_stats): Add two fields.
(operand_entry): Add count field.
(add_repeat_to_ops_vec): New function.
(completely_remove_stmt): Likewise.
(remove_def_if_absorbed_call): Likewise.
(remove_visited_stmt_chain): Remove feeding builtin pow/powi calls.
(acceptable_pow_call): New function.
(linearize_expr_tree): Look for builtin pow/powi calls and add operand
entries with repeat counts when found.
(repeat_factor_d): New struct and associated typedefs.
(repeat_factor_vec): New static vector variable.
(compare_repeat_factors): New function.
(get_reassoc_pow_ssa_name): Likewise.
(attempt_builtin_powi): Likewise.
(reassociate_bb): Call attempt_builtin_powi.
(fini_reassoc): Two new calls to statistics_counter_event.
gcc/testsuite:
2012-04-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
PR tree-optimization/18589
* gcc.dg/tree-ssa/pr18589-1.c: New test.
* gcc.dg/tree-ssa/pr18589-2.c: Likewise.
* gcc.dg/tree-ssa/pr18589-3.c: Likewise.
* gcc.dg/tree-ssa/pr18589-4.c: Likewise.
* gcc.dg/tree-ssa/pr18589-5.c: Likewise.
* gcc.dg/tree-ssa/pr18589-6.c: Likewise.
* gcc.dg/tree-ssa/pr18589-7.c: Likewise.
* gcc.dg/tree-ssa/pr18589-8.c: Likewise.
* gcc.dg/tree-ssa/pr18589-9.c: Likewise.
* gcc.dg/tree-ssa/pr18589-10.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186384
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Thu, 12 Apr 2012 15:11:17 +0000 (15:11 +0000)]
2012-04-12 Richard Guenther <rguenther@suse.de>
* Makefile.in (cgraphunit.o): Add $(EXCEPT_H) dependency.
* cgraph.h (tree_rest_of_compilation): Remove.
* cgraph.c (cgraph_add_new_function): Move ...
* cgraphunit.c (cgraph_add_new_function): ... here.
(tree_rest_of_compilation): Make static.
(cgraph_expand_function): Do not set cgraph_function_flags_ready.
* tree-optimize.c (gate_all_optimizations, pass_all_optimizations,
gate_all_early_local_passes, execute_all_early_local_passes,
pass_early_local_passes, gate_all_early_optimizations,
pass_all_early_optimizations): Move ...
* passes.c (gate_all_optimizations, pass_all_optimizations,
gate_all_early_local_passes, execute_all_early_local_passes,
pass_early_local_passes, gate_all_early_optimizations,
pass_all_early_optimizations): ... here.
* tree-optimize.c (execute_free_datastructures): Remove.
* tree-flow.h (execute_free_datastructures): Remove.
* tree-optimize.c (execute_init_datastructures,
pass_init_datastructures): Move ...
* tree-ssa.c (execute_init_datastructures,
pass_init_datastructures): ... here.
* cfgexpand.c (gimple_expand_cfg): Inline-expand call to
execute_free_datastructures.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186381
138bc75d-0d04-0410-961f-
82ee72b054a4
bernds [Thu, 12 Apr 2012 12:53:17 +0000 (12:53 +0000)]
* dbgcnt.def (ira_move): New counter.
* ira-int.h (ira_create_new_reg): Declare function.
(first_moveable_pseudo, last_moveable_pseudo): Declare variables.
* ira-emit.c (ira_create_new_reg): Renamed from craete_new_reg and
no longer static. All callers changed.
* ira.c: Include "dbgcnt.h".
(rtx_moveable_p, insn_dominated_by_p, find_moveable_pseudos,
move_unallocated_pseudos): New static functions.
(first_moveable_pseudo, last_moveable_pseudo): New global variables.
(pseudo_replaced_reg, pseudo_move_insn): New static variables.
(ira): Call find_moveable_pseudos and move_unallocated_pseudos.
* ira-costs.c (find_costs_and_classes): Assign a memory cost of zero
to the pseudos generated in find_moveable_pseudos.
* Makefile.in (ira.o): Add $(DBGCNT_H).
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186378
138bc75d-0d04-0410-961f-
82ee72b054a4
paolo [Thu, 12 Apr 2012 12:18:06 +0000 (12:18 +0000)]
2012-04-12 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/52942
* include/bits/stl_function.h (_Identity, _Select1st, _Select2nd):
In C++11 mode do not derive from std::unary_function.
* include/ext/functional (identity, select1st, select2nd): Adjust.
* testsuite/23_containers/unordered_map/requirements/52942.cc: New.
* testsuite/23_containers/unordered_set/requirements/52942.cc: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186375
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Thu, 12 Apr 2012 11:38:47 +0000 (11:38 +0000)]
2012-04-12 Richard Guenther <rguenther@suse.de>
PR tree-optimization/52943
* tree-chrec.h (chrec_is_positive): Remove.
* tree-scalar-evolution.c (chrec_is_positive): Move ...
* tree-data-ref.c (chrec_is_positive): ... here. Make static.
Return false for a constant zero instead of negative.
(analyze_siv_subscript_cst_affine): Handle zero difference
in the initial condition explicitely.
* gcc.dg/torture/pr52943.c: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186374
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Thu, 12 Apr 2012 10:13:22 +0000 (10:13 +0000)]
2012-04-12 Richard Guenther <rguenther@suse.de>
* tree-parloops.c (parallelize_loops): Also consult the upper
bound for the number of iterations.
* tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
(loop_prefetch_arrays): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186373
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Thu, 12 Apr 2012 08:35:01 +0000 (08:35 +0000)]
2012-04-12 Richard Guenther <rguenther@suse.de>
* cfgloop.h (estimated_loop_iterations_int): Ditch
'conservative' parameter.
(max_stmt_executions_int): Likewise.
(estimated_loop_iterations): Likewise.
(max_stmt_executions): Likewise.
(max_loop_iterations): Declare.
(max_loop_iterations_int): Likewise.
(estimated_stmt_executions): Likewise.
(estimated_stmt_executions_int): Likewise.
* tree-ssa-loop-niter.c (estimated_loop_iterations):
Split parts to ...
(max_loop_iterations): ... this.
(estimated_loop_iterations_int): Split parts to ...
(max_loop_iterations_int): ... this.
(max_stmt_executions_int): Split parts to ...
(estimated_stmt_executions_int): ... this.
(max_stmt_executions): Split parts to ...
(estimated_stmt_executions): ... this.
* graphite-sese-to-poly.c (build_loop_iteration_domains): Adjust.
* predict.c (predict_loops): Likewise.
* tree-data-ref.c (max_stmt_executions_tree): Likewise.
(analyze_siv_subscript_cst_affine): Likewise.
(compute_overlap_steps_for_affine_1_2): Likewise.
(analyze_subscript_affine_affine): Likewise.
(init_omega_for_ddr_1): Likewise.
* tree-parloops.c (parallelize_loops): Likewise.
* tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
(may_eliminate_iv): Likewise.
* tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
(loop_prefetch_arrays): Likewise.
* tree-vrp.c (adjust_range_with_scev): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186372
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Thu, 12 Apr 2012 00:19:20 +0000 (00:19 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186371
138bc75d-0d04-0410-961f-
82ee72b054a4
olegendo [Wed, 11 Apr 2012 23:03:20 +0000 (23:03 +0000)]
* config/sh/sh.h (RETURN_ADDR_RTX): Use NULL_RTX instead of 0.
* config/sh/sh.c (INSN_REGMODE_WEIGHT, CURR_REGMODE_PRESSURE):
Fix line width.
(dump_table): Use bool type for need_align and have_df variables.
(find_barrier, sfunc_uses_reg): Use NULL_RTX instead of 0.
(regs_used): Remove register modifier.
(barrier_align): Move variables slot, credit, jump_to_next
into if block above for loop. Use bool type for jump_to_next.
(sh_function_arg): Use NULL_RTX instead of 0.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186366
138bc75d-0d04-0410-961f-
82ee72b054a4
olegendo [Wed, 11 Apr 2012 23:01:12 +0000 (23:01 +0000)]
PR target/50751
* gcc/target/sh/pr50751-4.c: New.
* gcc/target/sh/pr50751-5.c: New.
* gcc/target/sh/pr50751-6.c: New.
* gcc/target/sh/pr50751-7.c: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186365
138bc75d-0d04-0410-961f-
82ee72b054a4
redi [Wed, 11 Apr 2012 22:59:25 +0000 (22:59 +0000)]
Fix date of previous ChangeLog entry.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186364
138bc75d-0d04-0410-961f-
82ee72b054a4
redi [Wed, 11 Apr 2012 22:54:53 +0000 (22:54 +0000)]
PR libstdc++/52924
* include/bits/shared_ptr_base.h (_Sp_counted_deleter): Add
user-defined destructor.
(_Sp_counted_inplace): Likewise.
* testsuite/20_util/shared_ptr/cons/52924.cc: New.
* testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust dg-error
line numbers.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186363
138bc75d-0d04-0410-961f-
82ee72b054a4
redi [Wed, 11 Apr 2012 22:20:59 +0000 (22:20 +0000)]
* doc/xml/manual/debug.xml (Debug Versions of Library Binary Files):
Re-arrange text slightly.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186362
138bc75d-0d04-0410-961f-
82ee72b054a4
schwab [Wed, 11 Apr 2012 22:01:42 +0000 (22:01 +0000)]
* gcc/config/m68k/m68k.md (rotrhi3+1): Name it rotrhi_lowpart.
(bswapsi2): New expander.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186361
138bc75d-0d04-0410-961f-
82ee72b054a4
sje [Wed, 11 Apr 2012 21:02:57 +0000 (21:02 +0000)]
i2012-04-10 Steve Ellcey <sellcey@mips.com>
* MAINTAINERS: Changed email address.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186358
138bc75d-0d04-0410-961f-
82ee72b054a4
fabien [Wed, 11 Apr 2012 20:40:51 +0000 (20:40 +0000)]
gcc/testsuite/ChangeLog
2012-04-09 Fabien Chêne <fabien@gcc.gnu.org>
PR c++/52465
* g++.dg/lookup/using52.C: New.
gcc/cp/ChangeLog
2012-04-09 Fabien Chêne <fabien@gcc.gnu.org>
PR c++/52465
* parser.c (cp_parser_class_name): Call strip_using_decl and
return the target decl.
* name-lookup.c (strip_using_decl): Returns NULL_TREE if the decl
to be stripped is NULL_TREE.
(qualify_lookup): Call strip_using_decl and perform some checks on
the target decl.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186355
138bc75d-0d04-0410-961f-
82ee72b054a4
redi [Wed, 11 Apr 2012 20:31:06 +0000 (20:31 +0000)]
* testsuite/performance/30_threads/future/polling.cc: Adjust.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186354
138bc75d-0d04-0410-961f-
82ee72b054a4
manu [Wed, 11 Apr 2012 20:15:35 +0000 (20:15 +0000)]
2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
testsuite/
* lib/prune.exp (TEST_ALWAYS_FLAGS): If undefined, set to empty.
libgomp/
* testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186353
138bc75d-0d04-0410-961f-
82ee72b054a4
hjl [Wed, 11 Apr 2012 19:37:57 +0000 (19:37 +0000)]
Define TRY_EMPTY_VM_SPACE to 0x60000000 for x32
2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
* config/host-linux.c (TRY_EMPTY_VM_SPACE): Defined to
0x60000000 if __x86_64 is defined and __LP64__ isn't defined.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186352
138bc75d-0d04-0410-961f-
82ee72b054a4
hjl [Wed, 11 Apr 2012 19:31:45 +0000 (19:31 +0000)]
Check for incompatible pointer sign extension
gcc/
PR rtl-optimization/52876
* emit-rtl.c (set_reg_attrs_from_value): Handle arbitrary value.
Don't call mark_reg_pointer for incompatible pointer sign
extension.
* reginfo.c (reg_scan_mark_refs): Call set_reg_attrs_from_value
directly.
gcc/testsuite
PR rtl-optimization/52876
* gcc.target/i386/pr52876.c: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186351
138bc75d-0d04-0410-961f-
82ee72b054a4
bernds [Wed, 11 Apr 2012 18:07:39 +0000 (18:07 +0000)]
* fold-const.c (fold_unary_loc): Use GET_MODE_PRECISION for
comparisons against TYPE_PRECISION.
* tree-ssa-forwprop.c (combine_conversions): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186350
138bc75d-0d04-0410-961f-
82ee72b054a4
bernds [Wed, 11 Apr 2012 17:58:01 +0000 (17:58 +0000)]
* gcc.dg/c99-const-expr-9.c (old_offsetof): Insert a cast to
__UINTPTR_TYPE__.
* gcc.c-torture/execute/pr15296.c (intptr_t): Likewise, with
__INTPTR_TYPE__.
* gcc.dg/pr14092-1.c (intptr_t): Likewise.
* gcc.dg/tree-ssa/foldcast-1.c (ssize_t): Likewise.
* gcc.dg/c90-const-expr-6.c (intptr_t): New typedef to replace ...
(ptrdiff_t): ... this. All uses changed.
* gcc.dg/c99-const-expr-6.c (intptr_t, ptrdiff_t): Likewise.
* gcc.dg/torture/pta-escape-1.c (foo): Change arg type to
__INTPTR_TYPE__.
(main): Cast argument to __INTPTR_TYPE__.
* gcc.dg/
20041106-1.c (main): Cast to __UINTPTR_TYPE__ rather than
size_t.
* gcc.dg/mallign.c (main): Likewise.
* gcc.dg/pr38700.c (foo): Likewise.
* gcc.dg/long-long-cst1.c (t): Likewise.
* gcc.dg/c99-const-expr-10.c (p, q, f, h, h2): Likewise.
* gcc.dg/array-10.c (c0, c1, c2, c3, c4, c5): Likewise.
* gcc.dg/pointer-arith-10.c (foo): Likewise.
* gcc.dg/pr25682.c (d, foo): Likewise.
* gcc.dg/format/cast-1.c (f): Likewise.
* gcc.dg/c90-const-expr-10.c
* gcc.dg/pr41551.c (uintptr_t): New typedef, replacing...
(size_t): ...this. All uses changed.
* gcc.c-torture/execute/pr22098-1.c (uintptr_t): Likewise.
* gcc.c-torture/execute/pr22098-2.c (uintptr_t): Likewise.
* gcc.c-torture/execute/pr22098-3.c (uintptr_t): Likewise.
* gcc.dg/pr34856.c (uintptr_t): Likewise.
* gcc.dg/sequence-pt-1.c: Likewise.
* gcc.dg/c90-const-expr-9.c (uintptr_t): Likewise.
* gcc.dg/max-1.c (intptr_t): Likewise, replacing ssize_t.
* gcc.dg/pr39074.c (intptr_t): Define using __INTPTR_TYPE__.
* gcc.dg/pr30744-1.c (my_intptr_t): New typedef. Replace all uses
of ptrdiff_t with it.
* gcc.dg/inline-23.c (my_intptr_t): Likewise.
* gcc.dg/pr37561.c (p): Use __INTPTR_TYPE__.
* gcc.dg/vla-11.c (foo11b): Use __UINTPTR_TYPE__.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186347
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Wed, 11 Apr 2012 17:55:25 +0000 (17:55 +0000)]
* decl.c (grokdeclarator): Strip the injected-class-name typedef
if we are building a declaration or compound type.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186346
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Wed, 11 Apr 2012 17:55:12 +0000 (17:55 +0000)]
PR c++/52906
* decl.c (check_tag_decl): Don't complain about attributes if we
don't even have a type.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186345
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Wed, 11 Apr 2012 17:55:00 +0000 (17:55 +0000)]
* g++.dg/eh/dtor3.C: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186344
138bc75d-0d04-0410-961f-
82ee72b054a4