- 25 Oct, 2012 24 commits
-
-
Change hash_table to support a comparator type different from the value type stored in the hash table. Change hash_table to support a comparator type different from the value type stored in the hash table. The 'find' functions now may take a different type from the value type. This requires introducing a second typedef into the Descriptor conceptual type. Change the Descriptor concept to use typedefs value_type and compare_type instead of T. Change all users to match. Add usage documentation to hash-table.h. Tested on x86-64. Index: gcc/ChangeLog 2012-10-25 Lawrence Crowl <crowl@google.com> * hash-table.h: Add usage documentation. (template struct typed_free_remove): Clarify documentation. Rename template parameter. (struct typed_noop_remove): Likewise. (descriptor concept): Change typedef T to value_type. Add typedef compare_type. Use more precise template parameter name, Descriptor instead of Descr. Update users to match. (struct hash_table): Change 'find' parameters to use compare_type instead of the value type. From-SVN: r192823
Lawrence Crowl committed -
* gcc.dg/tree-ssa/cunroll-4.c: Update; we now remove the loop at ivcanon time. From-SVN: r192822
Jan Hubicka committed -
ipa-cp.c (ipcp_discover_new_direct_edges): If something was turned to direct call update the summary. * ipa-cp.c (ipcp_discover_new_direct_edges): If something was turned to direct call update the summary. * ipa-inline-transform.c (inline_call): Sanity check that summaries match the predicted effect; fix updating of summary after edge redirection. * ipa-inline-analysis.c (inline_node_duplication_hook): Do not try to update the summary and recompute it instead. (estimate_function_body_sizes): Fix self size estimation; double check that it agrees with inline_update_overall_summary. (estimate_edge_size_and_time): Handle devirtualizaiton costs. (estimate_edge_devirt_benefit): Update to be called from estimate_edge_size_and_time. (estimate_calls_size_and_time): Update. (estimate_node_size_and_time): Watch overflows. (inline_merge_summary): Likewise. * ipa-prob.c: Include ipa-inline.h (ipa_make_edge_direct_to_target): After redirection update the summary. From-SVN: r192821
Jan Hubicka committed -
gcc/ PR debug/55063 * dwarf2out.c (prune_unused_types_prune): Check whether DIE is already a declaration. From-SVN: r192820
Cary Coutant committed -
From Rainer Orth. From-SVN: r192819
Ian Lance Taylor committed -
lra-assigns.c (assign_by_spills): Add non-reload pseudos assigned to hard register to changed_pseudo_bitmap. 2012-10-25 Vladimir Makarov <vmakarov@redhat.com> * lra-assigns.c (assign_by_spills): Add non-reload pseudos assigned to hard register to changed_pseudo_bitmap. From-SVN: r192817
Vladimir Makarov committed -
2012-10-25 Ralf Corsépius <ralf.corsepius@rtems.org> * config.gcc (microblaze*-*-rtems*): New target. * config/microblaze/rtems.h: New. * config/microblaze/t-rtems: New. From-SVN: r192815
Ralf Corsepius committed -
/cp 2012-10-25 Paolo Carlini <paolo.carlini@oracle.com> PR c++/53761 * class.c (finish_struct_1): Reject aggregates decorated with __transparent_union__ which cannot be made transparent because the type of the first field has a different ABI from the class overall. /testsuite 2012-10-25 Paolo Carlini <paolo.carlini@oracle.com> PR c++/53761 * g++.dg/ext/transparent-union.C: New. From-SVN: r192814
Paolo Carlini committed -
Core 1402 cp/ * call.c (joust): An implicitly deleted move function is worse than any non-deleted function. * method.c (process_subob_fn): No special rules for move. (synthesized_method_walk, implicitly_declare_fn): Likewise. Warn about virtual base with non-trivial move assignment. * cp-tree.h (struct lang_decl_fn): Remove suppress_implicit_decl. (FNDECL_SUPPRESS_IMPLICIT_DECL): Remove. c-family/ * c.opt (Wvirtual-move-assign): New. From-SVN: r192813
Jason Merrill committed -
From-SVN: r192812
Jason Merrill committed -
c-family/ * c.opt (Winherited-variadic-ctor): New. cp/ * class.c (one_inherited_ctor): Warn about variadic inherited ctor. From-SVN: r192811
Jason Merrill committed -
From-SVN: r192810
Jan Hubicka committed -
re PR lto/54980 (gimple check: expected gimple_cond(error_mark), have gimple_call() in gimple_cond_set_lhs, at gimple.h:2578) PR tree-optimize/54980 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Fix obvious typo. (loop_edge_to_cancel): Be sure that the edge is from an conditional so we can cancel it. From-SVN: r192809
Jan Hubicka committed -
2012-10-25 Marc Glisse <marc.glisse@inria.fr> PR c++/54427 gcc/ * tree.c (signed_or_unsigned_type_for): Handle vectors. gcc/cp/ * typeck.c (build_x_conditional_expr): Handle VEC_COND_EXPR. * call.c (build_conditional_expr_1): Likewise. gcc/c-family/ * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR. gcc/testsuite/ * g++.dg/ext/vector19.C: New testcase. From-SVN: r192808
Marc Glisse committed -
* ipa-inline.c (recursive_inlining): Redirect to master clone before testing profitability. From-SVN: r192807
Jan Hubicka committed -
2012-10-25 Ralf Corsépius <ralf.corsepius@rtems.org> * config.host (sh*-*-rtems*): Add sh*-*-elf*'s extra_parts. From-SVN: r192805
Ralf Corsepius committed -
2012-10-25 Richard Biener <rguenther@suse.de> PR tree-optimization/54902 * tree-ssa-pre.c (fini_eliminate): Return TODO. (do_pre): Adjust. (execute_fre): Likewise. * tree-ssa-tailmerge.c (tail_merge_optimize): Delete unreachable blocks before computing dominators. * g++.dg/torture/pr54902.C: New testcase. From-SVN: r192804
Richard Biener committed -
/cp 2012-10-25 Paolo Carlini <paolo.carlini@oracle.com> PR c++/34892 * parser.c (cp_parser_template_parameter): When cp_parser_parameter_declaration parsed a default argument don't see if *is_parameter_pack needs setting. /testsuite 2012-10-25 Paolo Carlini <paolo.carlini@oracle.com> PR c++/34892 * g++.dg/template/crash114.C: New. From-SVN: r192802
Paolo Carlini committed -
gcc/ * expr.c (emit_block_move_via_loop): Use simplify_gen_binary rather than gen_rtx_PLUS. From-SVN: r192801
Richard Sandiford committed -
2012-10-25 Ralf Corsépius <ralf.corsepius@rtems.org> * config.host (sh*-*-rtems*): Add sh*-*-elf*'s extra_parts. From-SVN: r192799
Ralf Corsepius committed -
2012-10-24 Vladimir Makarov <vmakarov@redhat.com> PR bootstrap/55068 PR regression/55050 * ira.c (setup_reg_renumber): Fix assert. * ira-emit.c (emit_move_list): Update equivalences only for LRA. From-SVN: r192797
Vladimir Makarov committed -
2012-10-25 Sebastian Huber <sebastian.huber@embedded-brains.de> * config.host (powerpc-*-rtems*): Add rs6000/t-savresfgpr to tmake_file. From-SVN: r192795
Sebastian Huber committed -
2012-10-24 Vladimir Makarov <vmakarov@redhat.com> PR bootstrap/55067 * lra.c: Rename loc to sloc and loc_t to sloc_t. From-SVN: r192794
Vladimir Makarov committed -
From-SVN: r192792
GCC Administrator committed
-
- 24 Oct, 2012 16 commits
-
-
2012-10-24 Sharad Singhai <singhai@google.com> * config/rs6000/rs6000.c (rs6000_density_test): Use dump_enabled_p instead of dump_kind_p. From-SVN: r192788
Sharad Singhai committed -
2012-10-24 Manuel López-Ibáñez <manu@gcc.gnu.org> PR c++/54928 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Use diagnostic_append_note. * diagnostic.c (diagnostic_build_prefix): Make diagnostic const. (default_diagnostic_finalizer): Do not destroy prefix here. (diagnostic_report_diagnostic): Destroy it here. (diagnostic_append_note): New. * diagnostic.h (diagnostic_append_note): Declare. From-SVN: r192786
Manuel López-Ibáñez committed -
From-SVN: r192785
H.J. Lu committed -
PR bootstrap/55049 * gcc.target/i386/pr55049-1.c: New test. From-SVN: r192784
H.J. Lu committed -
PR target/55061 * configure.ac: Check whether -funwind-tables option works. * configure: Rebuild. From-SVN: r192782
Ian Lance Taylor committed -
2012-10-24 Sharad Singhai <singhai@google.com> * MAINTAINERS (Write After Approval): Add myself. From-SVN: r192781
Sharad Singhai committed -
2012-10-24 Daniel Krugler <daniel.kruegler@gmail.com> * include/std/type_traits (common_type): Implement LWG 2141. * testsuite/20_util/duration/requirements/sfinae_friendly_1.cc: Update. * testsuite/20_util/common_type/requirements/typedefs-1.cc: Likewise. * testsuite/20_util/common_type/requirements/sfinae_friendly_1.cc: Likewise. * testsuite/20_util/common_type/requirements/sfinae_friendly_2.cc: Likewise. * testsuite/20_util/common_type/requirements/typedefs-2.cc: Likewise. From-SVN: r192780
Daniel Kruegler committed -
re PR rtl-optimization/55055 (RTL check: expected code 'reg', have 'subreg' in rhs_regno, at rtl.h:1123) 2012-10-24 Vladimir Makarov <vmakarov@redhat.com> PR rtl-optimization/55055 * lra-spills.c (alter_subregs): New function. (lra_hard_reg_substitution): Use it. From-SVN: r192779
Vladimir Makarov committed -
* libitm.texi: Clarify ABI requirements for data-logging functions. From-SVN: r192778
Torvald Riegel committed -
* retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether it requires serial mode instead of assuming that for certain dispatchs. * dispatch.h (abi_dispatch::requires_serial): New. (abi_dispatch::abi_dispatch): Adapt. * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt. * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same. * method-serial.cc (serialirr_dispatch::serialirr_dispatch, serial_dispatch::serial_dispatch, serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same. From-SVN: r192777
Torvald Riegel committed -
From-SVN: r192775
Ian Lance Taylor committed -
2012-10-24 Eric Christopher <echristo@gmail.com> * MAINTAINERS: Update email address. From-SVN: r192774
Eric Christopher committed -
2012-10-24 Sharad Singhai <singhai@google.com> * dumpfile.c (dump_enabled_p): Make it inline and move the definition to dumpfile.h. (dump_kind_p): Deleted. Functionality replaced by dump_enabled_p. Make alt_dump_file extern. * dumpfile.h (dump_enabled_p): Move inline definition here. (dump_kind_p): Delete declaration. Add extern declaration of alt_dump_file. * toplev.c: Move dump_file and dump_file_name to dumpfile.c. * tree-vect-loop-manip.c: Replace all uses of dump_kind_p with dump_enabled_p. * tree-vectorizer.c: Likewise. * tree-vect-loop.c: Likewise. * tree-vect-data-refs.c: Likewise. * tree-vect-patterns.c: Likewise. * tree-vect-stmts.c: Likewise. * tree-vect-slp.c: Likewise. From-SVN: r192773
Sharad Singhai committed -
gcc/ * expmed.c (lowpart_bit_field_p): Add missing == 0 check. From-SVN: r192772
Richard Sandiford committed -
2012-10-24 Vladimir Makarov <vmakarov@redhat.com> PR bootstrap/55049 * lra-constraints.c (extract_loc_address_regs): Pass top_p for ZERO_EXTEND operand. From-SVN: r192771
Vladimir Makarov committed -
2012-10-24 Vladimir Makarov <vmakarov@redhat.com> PR bootstrap/55048 * lra-constraints.c (update_ebb_live_info): Skip non-NOTE_INSN_BASIC_BLOCK notes. From-SVN: r192770
Vladimir Makarov committed
-