2011-01-04 Janus Weil <janus@gcc.gnu.org>
PR fortran/46448
* class.c (gfc_find_derived_vtab): Set the module field for the copying
routine to make sure it receives module name mangling.
2011-01-04 Janus Weil <janus@gcc.gnu.org>
PR fortran/46448
* gfortran.dg/class_34.f90: New.
From-SVN: r168464
* gcc.dg/torture/builtin-cproj-1.c: On the __SPU__ target, do not
use __builtin_inff. Skip all single-precision tests that require
Infinity.
From-SVN: r168462
* gcc-interface/trans.c (Subprogram_Body_to_gnu): Evaluate the
expressions of the parameter cache within the statement group of
the CICO mechanism.
From-SVN: r168456
* gcc-interface/trans.c (BLOCK_SOURCE_END_LOCATION): Provide default.
(set_end_locus_from_node): New function.
(Subprogram_Body_to_gnu): Use it to mark both the inner BIND_EXPR we
make and the function end_locus.
(Compilation_Unit_to_gnu): Call it instead of a straight Sloc_to_locus
for the elaboration subprogram.
(set_gnu_expr_location_from_node) <default case>: Use it to attempt to
set the end_locus of the expression as well.
Co-Authored-By: Eric Botcazou <ebotcazou@adacore.com>
From-SVN: r168455
PR ada/47131
* gcc-interface/trans.c (Identifier_to_gnu): In SJLJ mode, do not make
variables that are referenced in exception handlers volatile.
From-SVN: r168454
PR middle-end/47017
* expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
instead of convert_memory_address_addr_space on the base expression.
From-SVN: r168447
PR tree-optimization/47155
* tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
when computing uns.
* gcc.c-torture/execute/pr47155.c: New test.
From-SVN: r168440
PR rtl-optimization/47157
* combine.c (try_combine): If undobuf.other_insn becomes
(set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
and set *new_direct_jump_p too.
* gcc.c-torture/compile/pr47157.c: New test.
From-SVN: r168439
* gcc.dg/torture/vector-shift2.c (schar): Define.
(main): Always use schar or uchar instead of plain "char" to avoid
dependencies on implementation-defined char signedness.
From-SVN: r168437
* tree-vect-generic.c (expand_vector_operations_1): When using vector/
vector optab to expand vector/scalar shift, update gimple to vector.
From-SVN: r168423
2011-01-03 Martin Jambor <mjambor@suse.cz>
PR tree-optimization/46984
* cgraph.h (cgraph_indirect_call_info): make field thunk_delta
HOST_WIDE_INT.
(cgraph_create_indirect_edge): Fixed line length.
(cgraph_indirect_call_info): Declare.
(cgraph_make_edge_direct) Update declaration.
* cgraph.c (cgraph_allocate_init_indirect_info): New function.
(cgraph_create_indirect_edge): Use it.
(cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
callees.
* cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
the new thunk_delta representation.
* ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
HOST_WIDE_INT.
(ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
(ipa_read_indirect_edge_info): Likewise.
* lto-cgraph.c (output_edge_opt_summary): New function.
(output_node_opt_summary): Call it on all outgoing edges.
(input_edge_opt_summary): New function.
(input_node_opt_summary): Call it on all outgoing edges.
* testsuite/g++.dg/ipa/pr46984.C: New test.
From-SVN: r168420
* regrename.c: Add general comment describing the pass.
(struct du_head): Remove 'length' field.
(get_element, merge_sort_comparison, merge, sort_du_head): Remove.
(regrename_optimize): Do not sort chains. Rework comments, add others.
Force renaming to the preferred class (if any) in the first pass and do
not consider registers that belong to it in the second pass.
(create_new_chain): Do not set 'length' field.
(scan_rtx_reg): Likewise.
From-SVN: r168404
PR tree-optimization/47140
* tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
to bit_value_binop.
* gcc.c-torture/compile/pr47140.c: New test.
From-SVN: r168402
PR rtl-optimization/47028
* cfgexpand.c (gimple_expand_cfg): Insert entry edge
insertions after parm_birth_insn instead of at the beginning
of first bb.
* gcc.dg/pr47028.c: New test.
From-SVN: r168401