Jan Hubicka
2257bc1940
cunroll-4.c: Update; we now remove the loop at ivcanon time.
...
* gcc.dg/tree-ssa/cunroll-4.c: Update; we now remove the loop
at ivcanon time.
From-SVN: r192822
2012-10-25 19:24:19 +00:00
Jan Hubicka
0f378cb5db
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
2012-10-25 19:23:15 +00:00
Cary Coutant
0d198936b9
re PR debug/55063 (Thousands of failures in the libstdc++-v3 tests after revision 192739)
...
gcc/
PR debug/55063
* dwarf2out.c (prune_unused_types_prune): Check whether DIE is
already a declaration.
From-SVN: r192820
2012-10-25 11:30:27 -07:00
Ian Lance Taylor
f99a463f8a
libgo: Solaris portability patches.
...
From Rainer Orth.
From-SVN: r192819
2012-10-25 18:26:34 +00:00
Vladimir Makarov
992ca0f069
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
2012-10-25 16:54:14 +00:00
Ralf Corsepius
479f435805
config.gcc (microblaze*-*-rtems*): New target.
...
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
2012-10-25 18:44:27 +02:00
Paolo Carlini
42b40eff80
re PR c++/53761 (ICE on incorrect transparent union (first field has floating point type))
...
/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
2012-10-25 16:14:59 +00:00
Jason Merrill
f14edc1af5
Core 1402
...
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
2012-10-25 11:54:00 -04:00
Jason Merrill
57c3feb40a
* semantics.c (finish_omp_threadprivate): Call complete_type.
...
From-SVN: r192812
2012-10-25 11:53:40 -04:00
Jason Merrill
4514a96b2a
c.opt (Winherited-variadic-ctor): New.
...
c-family/
* c.opt (Winherited-variadic-ctor): New.
cp/
* class.c (one_inherited_ctor): Warn about variadic inherited ctor.
From-SVN: r192811
2012-10-25 11:53:31 -04:00
Jan Hubicka
dc6a6f6156
Fix previous commit.
...
From-SVN: r192810
2012-10-25 15:00:06 +00:00
Jan Hubicka
a093356aba
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
2012-10-25 14:52:32 +00:00
Marc Glisse
93100c6b5b
re PR c++/54427 (Expose more vector extensions)
...
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
2012-10-25 13:02:42 +00:00
Jan Hubicka
6ced940d17
ipa-inline.c (recursive_inlining): Redirect to master clone before testing profitability.
...
* ipa-inline.c (recursive_inlining): Redirect to master
clone before testing profitability.
From-SVN: r192807
2012-10-25 12:23:08 +00:00
Ralf Corsepius
43a8f1a1c3
config.host (sh*-*-rtems*): Add sh*-*-elf*'s extra_parts.
...
2012-10-25 Ralf Corsépius <ralf.corsepius@rtems.org>
* config.host (sh*-*-rtems*): Add sh*-*-elf*'s extra_parts.
From-SVN: r192805
2012-10-25 14:06:06 +02:00
Richard Biener
9c370032cf
re PR target/54902 (, ICE (segfault) building on arm-linux-gnueabi)
...
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
2012-10-25 11:16:12 +00:00
Paolo Carlini
3a969a32ff
re PR c++/34892 (ICE with ellipsis in default template argument)
...
/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
2012-10-25 09:12:22 +00:00
Richard Sandiford
dc3e0b5501
expr.c (emit_block_move_via_loop): Use simplify_gen_binary rather than gen_rtx_PLUS.
...
gcc/
* expr.c (emit_block_move_via_loop): Use simplify_gen_binary
rather than gen_rtx_PLUS.
From-SVN: r192801
2012-10-25 09:08:09 +00:00
Ralf Corsepius
76c7836112
config.host (sh*-*-rtems*): Add sh*-*-elf*'s extra_parts.
...
2012-10-25 Ralf Corsépius <ralf.corsepius@rtems.org>
* config.host (sh*-*-rtems*): Add sh*-*-elf*'s extra_parts.
From-SVN: r192799
2012-10-25 10:08:04 +02:00
Vladimir Makarov
15652f68ab
re PR bootstrap/55068 (AIX bootstrap in push_reload() after LRA merge)
...
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
2012-10-25 04:19:43 +00:00
Sebastian Huber
6f28886030
config.host (powerpc-*-rtems*): Add rs6000/t-savresfgpr to tmake_file.
...
2012-10-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
* config.host (powerpc-*-rtems*): Add rs6000/t-savresfgpr to
tmake_file.
From-SVN: r192795
2012-10-25 05:30:23 +02:00
Vladimir Makarov
926cd61f45
re PR bootstrap/55067 (AIX bootstrap failure due to lra.c loc_t)
...
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
2012-10-25 02:31:31 +00:00
GCC Administrator
4ede4ee462
Daily bump.
...
From-SVN: r192792
2012-10-25 00:19:23 +00:00
Sharad Singhai
2042a83100
rs6000.c (rs6000_density_test): Use dump_enabled_p instead of dump_kind_p.
...
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
2012-10-24 23:09:30 +00:00
Manuel López-Ibáñez
dfa3226153
re PR c++/54928 (Infinite output with after ICE with macro)
...
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
2012-10-24 22:01:50 +00:00
H.J. Lu
0931831120
Require fpic on gcc.target/i386/pr55049-1.c
...
From-SVN: r192785
2012-10-24 14:52:57 -07:00
H.J. Lu
e95bc7ac87
Add a testcase for PR bootstrap/55049
...
PR bootstrap/55049
* gcc.target/i386/pr55049-1.c: New test.
From-SVN: r192784
2012-10-24 14:49:36 -07:00
Ian Lance Taylor
32061319f7
re PR target/55061 (libbacktrace build fails during bootstrap on powerpc-apple-darwin9)
...
PR target/55061
* configure.ac: Check whether -funwind-tables option works.
* configure: Rebuild.
From-SVN: r192782
2012-10-24 21:09:55 +00:00
Sharad Singhai
45c29893a6
MAINTAINERS (Write After Approval): Add myself.
...
2012-10-24 Sharad Singhai <singhai@google.com>
* MAINTAINERS (Write After Approval): Add myself.
From-SVN: r192781
2012-10-24 20:42:02 +00:00
Daniel Kruegler
6c5173c05f
type_traits (common_type): Implement LWG 2141.
...
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
2012-10-24 20:37:05 +00:00
Vladimir Makarov
6e5769ce15
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
2012-10-24 20:02:08 +00:00
Torvald Riegel
eb00e95920
Clarify ABI requirements for data-logging functions.
...
* libitm.texi: Clarify ABI requirements for data-logging functions.
From-SVN: r192778
2012-10-24 19:52:18 +00:00
Torvald Riegel
b679c81340
Ask dispatch whether it requires serial mode.
...
* 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
2012-10-24 19:52:02 +00:00
Ian Lance Taylor
1a6c552d12
mksysinfo: Define SIGPOLL and SIGCLD if necessary.
...
From-SVN: r192775
2012-10-24 19:00:44 +00:00
Eric Christopher
9d294e36f9
MAINTAINERS: Update email address.
...
2012-10-24 Eric Christopher <echristo@gmail.com>
* MAINTAINERS: Update email address.
From-SVN: r192774
2012-10-24 18:26:01 +00:00
Sharad Singhai
73fbfcad22
dumpfile.c (dump_enabled_p): Make it inline and move the definition to dumpfile.h.
...
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
2012-10-24 17:58:14 +00:00
Richard Sandiford
c1a4d0b580
expmed.c (lowpart_bit_field_p): Add missing == 0 check.
...
gcc/
* expmed.c (lowpart_bit_field_p): Add missing == 0 check.
From-SVN: r192772
2012-10-24 17:53:42 +00:00
Vladimir Makarov
65875a301e
re PR bootstrap/55049 (bootstrap failed with --with-multilib-list=m32,m64,mx32)
...
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
2012-10-24 17:35:37 +00:00
Vladimir Makarov
911598e362
re PR bootstrap/55048 (libjava bootstrap failure on trunk after LRA merge)
...
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
2012-10-24 15:35:12 +00:00
Janus Weil
7780fd2a13
re PR fortran/55037 ([OOP] ICE with local allocatable variable of abstract type)
...
2012-10-24 Janus Weil <janus@gcc.gnu.org>
PR fortran/55037
* trans-expr.c (gfc_conv_procedure_call): Move a piece of code and
remove an assert.
2012-10-24 Janus Weil <janus@gcc.gnu.org>
PR fortran/55037
* gfortran.dg/class_dummy_4.f03: New.
From-SVN: r192768
2012-10-24 17:23:25 +02:00
Haakan Younes
c2d9083df2
re PR libstdc++/55047 (operator() in std::exponential_distribution may call log(0))
...
2012-10-24 Haakan Younes <hyounes@google.com>
Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/55047
* include/bits/random.h (exponential_distribution<>::operator):
Fix formula to std::log(result_type(1) - __aurng()).
* include/bits/random.tcc: Likewise, everywhere.
Co-Authored-By: Paolo Carlini <paolo.carlini@oracle.com>
From-SVN: r192762
2012-10-24 12:20:19 +00:00
Dominique d'Humieres
c6c084858c
force-parallel-6.c: Adjust the loops.
...
2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
* testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
From-SVN: r192761
2012-10-24 09:46:06 +00:00
Jakub Jelinek
bca3cc973b
re PR rtl-optimization/55010 (Internal consistency failure : invalid rtl sharing found in the insn)
...
PR rtl-optimization/55010
* cse.c (fold_rtx) <RTX_COMPARE>: Call copy_rtx on folded_arg{0,1}
before passing it to simplify_relational_operation.
* gcc.dg/pr55010.c: New test.
From-SVN: r192760
2012-10-24 11:13:09 +02:00
Jakub Jelinek
848be0946c
re PR debug/54828 (ICE in based_loc_descr at dwarf2out.c:10560 with -g -O0)
...
PR debug/54828
* gimple.h (is_gimple_sizepos): New inline function.
* gimplify.c (gimplify_one_sizepos): Use it. Remove useless
final assignment to expr variable.
* tree.c (RETURN_TRUE_IF_VAR): Return true also if
!TYPE_SIZES_GIMPLIFIED (type) and _t is going to be gimplified
into a local temporary.
* g++.dg/debug/pr54828.C: New test.
From-SVN: r192759
2012-10-24 11:08:56 +02:00
David S. Miller
9106d8d215
Use define_memory_constraint on sparc when necessary.
...
* config/sparc/constraints.md ("T", "W"): Change
definitions to use define_memory_constraint. Do not match
'reg'.
* config/sparc/sparc.c (memory_ok_for_ldd): Remove all non-MEM
handling code, update comment.
From-SVN: r192757
2012-10-23 22:59:27 -07:00
Ian Lance Taylor
f4b2452702
extend.texi (Extended Asm): The '+' constraint does not require a register.
...
* doc/extend.texi (Extended Asm): The '+' constraint does not
require a register.
From-SVN: r192756
2012-10-24 04:45:55 +00:00
Jeff Law
f6778644d5
tree-ssa-threadedge.c (thread_across_edge): Remove unused parameter in call to cond_arg_set_in_bb.
...
* tree-ssa-threadedge.c (thread_across_edge): Remove unused
parameter in call to cond_arg_set_in_bb.
From-SVN: r192754
2012-10-23 18:43:24 -06:00
GCC Administrator
b3df8bd757
Daily bump.
...
From-SVN: r192753
2012-10-24 00:18:36 +00:00
Dominique d'Humieres
1767c93c30
vect-82_64.c: Adjust the dump file.
...
2012-10-23 Dominique d'Humieres <dominiq@lps.ens.fr>
* gcc.dg/vect/vect-82_64.c: Adjust the dump file.
* gcc.dg/vect/vect-83_64.c: Likewise.
From-SVN: r192750
2012-10-24 00:16:55 +00:00
Paolo Carlini
7c7e8c7809
re PR c++/54922 ([C++11][DR 1359] constexpr constructors require initialization of all union members)
...
/cp
2012-10-23 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/54922
* semantics.c (cx_check_missing_mem_inits): Handle anonymous union
members.
/testsuite
2012-10-23 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/54922
* g++.dg/cpp0x/constexpr-union4.C: New.
From-SVN: r192749
2012-10-23 23:43:21 +00:00