OSDN Git Service
ebotcazou [Thu, 9 Jun 2011 19:50:46 +0000 (19:50 +0000)]
* config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174856
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Thu, 9 Jun 2011 00:18:25 +0000 (00:18 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174828
138bc75d-0d04-0410-961f-
82ee72b054a4
hjl [Wed, 8 Jun 2011 13:50:59 +0000 (13:50 +0000)]
Support unknown Intel family 0x6 CPUs.
2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
Backport from mainline
2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
* config/i386/driver-i386.c (host_detect_local_cpu): Support
unknown Intel family 0x6 CPUs.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174810
138bc75d-0d04-0410-961f-
82ee72b054a4
kkojima [Wed, 8 Jun 2011 04:07:25 +0000 (04:07 +0000)]
PR target/49238
* config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
needed when original operands are used for msw_skip comparison.
* gcc.c-torture/compile/pr49238.c: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174793
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Wed, 8 Jun 2011 00:18:32 +0000 (00:18 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174787
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Tue, 7 Jun 2011 15:12:15 +0000 (15:12 +0000)]
PR c++/48780
* typeck.c (perform_integral_promotions): Don't promote scoped enums.
* call.c (convert_arg_to_ellipsis): Promote them here in old ABI.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174753
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Tue, 7 Jun 2011 09:53:17 +0000 (09:53 +0000)]
PR gcov-profile/49299
* value-prof.c (gimple_ic): Don't assume icall has
a fallthru edge.
* gcc.dg/tree-prof/pr49299-1.c: New test.
* gcc.dg/tree-prof/pr49299-2.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174739
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Tue, 7 Jun 2011 00:18:01 +0000 (00:18 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174732
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Mon, 6 Jun 2011 20:07:26 +0000 (20:07 +0000)]
PR c++/49298
* semantics.c (potential_constant_expression_1): Handle FIELD_DECL.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174722
138bc75d-0d04-0410-961f-
82ee72b054a4
pthaugen [Mon, 6 Jun 2011 19:12:57 +0000 (19:12 +0000)]
* config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
NON_FLOAT_REGS.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174720
138bc75d-0d04-0410-961f-
82ee72b054a4
langton [Mon, 6 Jun 2011 18:17:26 +0000 (18:17 +0000)]
PR fortran/49268
* trans-decl.c (gfc_trans_deferred_vars): Treat assumed-size Cray
pointees as AS_EXPLICIT.
PR fortran/49268
* gfortran.dg/PR49268.f90: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174719
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Mon, 6 Jun 2011 17:16:35 +0000 (17:16 +0000)]
PR c++/49264
* gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
if stmt folded into nothing.
* tree-inline.c (fold_marked_statements): If a builtin at the
end of a bb folded into nothing, just update cgraph edges
and move to next bb.
* cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
to be NULL. Don't compute count and frequency if new_call is NULL.
* g++.dg/opt/pr49264.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174713
138bc75d-0d04-0410-961f-
82ee72b054a4
krebbel [Mon, 6 Jun 2011 14:34:54 +0000 (14:34 +0000)]
2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* longlong.h (smul_ppmm): The resulting register pair contains the
higher order word first.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174703
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Mon, 6 Jun 2011 11:46:14 +0000 (11:46 +0000)]
2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
PR tree-optimization/49243
* calls.c (setjmp_call_p): Also check if fndecl has the
returns_twice attribute.
* gcc.dg/pr49243.c: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174696
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Mon, 6 Jun 2011 10:13:23 +0000 (10:13 +0000)]
2011-06-06 Richard Guenther <rguenther@suse.de>
PR tree-optimization/48702
* tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
only when we know the base address is within bounds.
* tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
assume the base address of TARGET_MEM_REFs is in bounds.
(indirect_refs_may_alias_p): Fix TARGET_MEM_REF without index tests.
* gcc.dg/torture/pr48702.c: New testcase.
Backport from mainline
2011-05-31 Jakub Jelinek <jakub@redhat.com>
PR rtl-optimization/49235
* tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
(create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
* gcc.dg/pr49235.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174688
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Mon, 6 Jun 2011 04:31:24 +0000 (04:31 +0000)]
PR c++/49134
* tree.c (build_target_expr): Deal with ARM ABI tweaks.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174684
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Mon, 6 Jun 2011 00:18:06 +0000 (00:18 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174677
138bc75d-0d04-0410-961f-
82ee72b054a4
ebotcazou [Sun, 5 Jun 2011 23:20:21 +0000 (23:20 +0000)]
* config/sparc/sparc.c (output_return): Fix thinko in the output of an
EH return when delayed branches are disabled.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174671
138bc75d-0d04-0410-961f-
82ee72b054a4
kkojima [Sun, 5 Jun 2011 21:47:42 +0000 (21:47 +0000)]
PR target/49186
* config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
part of the second operand is 0.
* gcc.c-torture/execute/pr49186.c: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174665
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Sun, 5 Jun 2011 00:18:05 +0000 (00:18 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174654
138bc75d-0d04-0410-961f-
82ee72b054a4
redi [Sat, 4 Jun 2011 16:20:55 +0000 (16:20 +0000)]
2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
PR c++/33840
* g++.dg/diagnostic/bitfld2.C: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174645
138bc75d-0d04-0410-961f-
82ee72b054a4
aoliva [Sat, 4 Jun 2011 10:15:48 +0000 (10:15 +0000)]
PR debug/47590
* target.def (delay_sched2, delay_vartrack): New.
* doc/tm.texi.in: Update.
* doc/tm.texi: Rebuild.
* sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
* var-tracking.c (gate_handle_var_tracking): Likewise.
* config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
(bfin_flag_var_tracking): Drop.
(output_file_start): Don't save and override flag_var_tracking.
(bfin_option_override): Ditto flag_schedule_insns_after_reload.
(bfin_reorg): Test original variables.
(TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
* config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
(ia64_flag_var_tracking): Drop.
(TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
(ia64_file_start): Don't save and override flag_var_tracking.
(ia64_override_options_after_change): Ditto
flag_schedule_insns_after_reload.
(ia64_reorg): Test original variables.
* config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
(picochip_flag_var_tracking): Drop.
(TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
(picochip_option_override): Don't save and override
flag_schedule_insns_after_reload.
(picochip_asm_file_start): Ditto flag_var_tracking.
(picochip_reorg): Test original variables.
* config/spu/spu.c (spu_flag_var_tracking): Drop.
(TARGET_DELAY_VARTRACK): Define.
(spu_var_tracking): New.
(spu_machine_dependent_reorg): Call it.
(asm_file_start): Don't save and override flag_var_tracking.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174637
138bc75d-0d04-0410-961f-
82ee72b054a4
irar [Sat, 4 Jun 2011 09:20:00 +0000 (09:20 +0000)]
PR tree-optimization/49038
* tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
Ensure at least one epilogue iteration if required by data
accesses with gaps.
* tree-vectorizer.h (struct _loop_vec_info): Add new field
to mark loops that require peeling for gaps.
* tree-vect-loop.c (new_loop_vec_info): Initialize new field.
(vect_get_known_peeling_cost): Take peeling for gaps into
account.
(vect_transform_loop): Generate epilogue if required by data
access with gaps.
* tree-vect-data-refs.c (vect_analyze_group_access): Mark the
loop as requiring an epilogue if there are gaps in the end of
the strided group.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174635
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Sat, 4 Jun 2011 00:17:44 +0000 (00:17 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174629
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Fri, 3 Jun 2011 20:21:38 +0000 (20:21 +0000)]
PR c++/49276
* mangle.c (write_nested_name): Use CP_DECL_CONTEXT instead of
DECL_CONTEXT.
* g++.dg/cpp0x/lambda/lambda-mangle2.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174620
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Fri, 3 Jun 2011 00:18:06 +0000 (00:18 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174591
138bc75d-0d04-0410-961f-
82ee72b054a4
kargl [Thu, 2 Jun 2011 19:53:02 +0000 (19:53 +0000)]
2011-06-02 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/49265
* decl.c (gfc_match_modproc): Allow for a double colon in a module
procedure statement.
* parse.c ( decode_statement): Deal with whitespace around :: in
gfc_match_modproc.
2011-06-02 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/49265
* gfortran.dg/module_procedure_double_colon_1.f90: New test.
* gfortran.dg/module_procedure_double_colon_2.f90: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174576
138bc75d-0d04-0410-961f-
82ee72b054a4
irar [Thu, 2 Jun 2011 07:02:57 +0000 (07:02 +0000)]
PR tree-optimization/49093
* tree-vect-data-refs.c (vect_analyze_data_refs): Fail for
volatile data references.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174559
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Thu, 2 Jun 2011 00:17:54 +0000 (00:17 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174556
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Wed, 1 Jun 2011 00:17:53 +0000 (00:17 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174517
138bc75d-0d04-0410-961f-
82ee72b054a4
tkoenig [Tue, 31 May 2011 21:37:01 +0000 (21:37 +0000)]
2011-05-31 Thomas Koenig <tkoenig@gcc.gnu.org>
Backport from trunk
PR fortran/45786
* interface.c (gfc_equivalent_op): New function.
(gfc_check_interface): Use gfc_equivalent_op instead
of switch statement.
* decl.c (access_attr_decl): Also set access to an
equivalent operator.
2011-05-31 Thomas Koenig <tkoenig@gcc.gnu.org>
Backport from trunk
PR fortran/45786
* gfortran.dg/operator_7.f90: New test case.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174513
138bc75d-0d04-0410-961f-
82ee72b054a4
qneill [Tue, 31 May 2011 14:32:38 +0000 (14:32 +0000)]
Fix fma4_fmsubadd and fma4_fmaddsub mode suffixes.
2011-05-31 Quentin Neill <quentin.neill@amd.com>
* config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
(fma4_fmaddsub): Likewise
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174485
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Tue, 31 May 2011 12:25:52 +0000 (12:25 +0000)]
2011-05-31 Richard Guenther <rguenther@suse.de>
Backport from mainline
2011-05-19 Richard Guenther <rguenther@suse.de>
PR middle-end/48985
* tree-object-size.c (addr_object_size): If the pointed-to
variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
* gcc.dg/builtin-object-size-11.c: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174476
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Tue, 31 May 2011 12:23:55 +0000 (12:23 +0000)]
2011-05-31 Richard Guenther <rguenther@suse.de>
Backport from mainline
2011-05-11 Richard Guenther <rguenther@suse.de>
PR middle-end/48953
* tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
* gcc.dg/torture/pr48953.c: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174475
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Tue, 31 May 2011 00:19:03 +0000 (00:19 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174462
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Mon, 30 May 2011 12:18:59 +0000 (12:18 +0000)]
PR c++/49223
* semantics.c (finish_omp_clauses): Call require_complete_type
even for copyin/copyprivate clauses. Only call
cxx_omp_create_clause_info if inner_type is COMPLETE_TYPE_P.
* g++.dg/gomp/pr49223-1.C: New test.
* g++.dg/gomp/pr49223-2.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174433
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Mon, 30 May 2011 11:17:35 +0000 (11:17 +0000)]
2011-05-30 Richard Guenther <rguenther@suse.de>
PR tree-optimization/49218
* tree-vrp.c (adjust_range_with_scev): Properly check whether
overflow occured.
* gcc.c-torture/execute/pr49218.c: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174430
138bc75d-0d04-0410-961f-
82ee72b054a4
gjl [Mon, 30 May 2011 08:53:12 +0000 (08:53 +0000)]
PR target/45263
* config/avr/libgcc.S (__do_global_ctors, __do_global_dtors):
Don't use r20 around calls of __tablejump_elpm__
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174427
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Mon, 30 May 2011 00:18:37 +0000 (00:18 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174421
138bc75d-0d04-0410-961f-
82ee72b054a4
rsandifo [Sun, 29 May 2011 17:50:18 +0000 (17:50 +0000)]
Add PR target/43700 to last changelog entry.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174406
138bc75d-0d04-0410-961f-
82ee72b054a4
rsandifo [Sun, 29 May 2011 17:48:14 +0000 (17:48 +0000)]
gcc/
* config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
registers.
gcc/testsuite/
* gcc.target/mips/reg-var-1.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174405
138bc75d-0d04-0410-961f-
82ee72b054a4
rsandifo [Sun, 29 May 2011 17:47:51 +0000 (17:47 +0000)]
gcc/
PR target/43995
* config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
recurse_p argument. Only follow register copies if it is set,
and prevent mips_find_pic_call_symbol from recursing.
(mips_find_pic_call_symbol): Add a recurse_p argument.
Pass it to mips_pic_call_symbol_from_set.
(mips_annotate_pic_calls): Update accordingly.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174404
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Sun, 29 May 2011 17:00:13 +0000 (17:00 +0000)]
2011-05-29 Richard Guenther <rguenther@suse.de>
PR tree-optimization/49217
* ipa-pure-const.c (propagate_pure_const): Fix typos.
* gcc.dg/torture/pr49217.c: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174399
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Sun, 29 May 2011 00:18:14 +0000 (00:18 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174390
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Sat, 28 May 2011 03:22:31 +0000 (03:22 +0000)]
PR c++/47049
* semantics.c (maybe_add_lambda_conv_op): Fix COMDAT sharing.
* decl.c (start_preparsed_function): Don't call comdat_linkage for
a template.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174377
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Sat, 28 May 2011 00:18:02 +0000 (00:18 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174372
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Fri, 27 May 2011 20:48:24 +0000 (20:48 +0000)]
PR c++/47277
* parser.c (cp_parser_unqualified_id): Don't check
constructor_name_p for enums.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174363
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Fri, 27 May 2011 20:48:17 +0000 (20:48 +0000)]
PR c++/48284
* error.c (dump_expr) [COMPONENT_REF]: Use pp_cxx_dot
with INDIRECT_REF of REFERENCE_TYPE.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174362
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Fri, 27 May 2011 19:23:46 +0000 (19:23 +0000)]
PR c++/49165
* c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
C++ don't call c_common_truthvalue_conversion on void type arms.
* g++.dg/eh/cond6.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174351
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Fri, 27 May 2011 18:10:48 +0000 (18:10 +0000)]
PR c++/48657
PR c++/49176
* decl.c (cp_finish_decl): Simplify template handling.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174346
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Fri, 27 May 2011 00:17:27 +0000 (00:17 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174314
138bc75d-0d04-0410-961f-
82ee72b054a4
pault [Thu, 26 May 2011 20:49:07 +0000 (20:49 +0000)]
2011-05-26 Paul Thomas <pault@gcc.gnu.org>
Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/48955
* trans-expr.c (gfc_trans_assignment_1): GFC_REVERSE_NOT_SET
changed to GFC_ENABLE_REVERSE.
* trans-array.c (gfc_init_loopinfo): GFC_CANNOT_REVERSE changed
to GFC_INHIBIT_REVERSE.
* gfortran.h : Enum gfc_reverse is now GFC_ENABLE_REVERSE,
GFC_FORWARD_SET, GFC_REVERSE_SET and GFC_INHIBIT_REVERSE.
* dependency.c (gfc_dep_resolver): Change names for elements of
gfc_reverse as necessary. Change the logic so that forward
dependences are remembered as well as backward ones. When both
have appeared, force a temporary.
2011-05-26 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/48955
* gfortran.dg/dependency_40.f90 : New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174308
138bc75d-0d04-0410-961f-
82ee72b054a4
pthaugen [Thu, 26 May 2011 15:33:43 +0000 (15:33 +0000)]
* config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
moves expensive on Power7 also.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174294
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Thu, 26 May 2011 13:47:15 +0000 (13:47 +0000)]
fix pr marker
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174289
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Thu, 26 May 2011 13:44:20 +0000 (13:44 +0000)]
PR c++/48424
* decl.c (grokparms): Function parameter packs don't need to
go at the end.
* pt.c (type_unification_real): But they aren't deduced otherwise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174287
138bc75d-0d04-0410-961f-
82ee72b054a4
gjl [Thu, 26 May 2011 12:52:03 +0000 (12:52 +0000)]
PR target/44643
* config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
alone. Error if non-const data has attribute progmem.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174281
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Thu, 26 May 2011 10:27:57 +0000 (10:27 +0000)]
PR c++/49165
* gimplify.c (shortcut_cond_r): Don't special case
COND_EXPRs if they have void type on one of their arms.
* g++.dg/eh/cond5.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174274
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Thu, 26 May 2011 10:20:34 +0000 (10:20 +0000)]
PR tree-optimization/49161
* tree-vrp.c (struct case_info): New type.
(compare_case_labels): Sort case_info structs instead of
trees, and not primarily by CASE_LABEL uids but by
label_for_block indexes.
(find_switch_asserts): Put case labels into struct case_info
array instead of TREE_VEC, adjust sorting, compare label_for_block
values instead of CASE_LABELs.
* gcc.c-torture/execute/pr49161.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174272
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Thu, 26 May 2011 03:06:17 +0000 (03:06 +0000)]
PR c++/49156
* error.c (dump_template_bindings): Set processing_template_decl
for a partial instantiation.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174261
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Thu, 26 May 2011 03:06:09 +0000 (03:06 +0000)]
PR c++/45401
* decl.c (grokdeclarator): Don't change type when adding rvalue ref
to another reference type.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174260
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Thu, 26 May 2011 00:18:58 +0000 (00:18 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174251
138bc75d-0d04-0410-961f-
82ee72b054a4
paolo [Thu, 26 May 2011 00:15:58 +0000 (00:15 +0000)]
2011-05-25 Paolo Carlini <paolo.carlini@oracle.com>
* config/abi/pre/gnu.ver: Correct last change, export instead
at the existing @3.4.16.
* configure.ac: Revert last change.
* testsuite/util/testsuite_abi.cc: Likewise.
* configure: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174247
138bc75d-0d04-0410-961f-
82ee72b054a4
paolo [Wed, 25 May 2011 23:46:31 +0000 (23:46 +0000)]
2011-05-25 Paolo Carlini <paolo.carlini@oracle.com>
* config/abi/pre/gnu.ver: Export recently added basic_streambuf
and basic_stringbuf symbols @3.4.17.
* configure.ac: Update.
* testsuite/util/testsuite_abi.cc: Likewise.
* configure: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174243
138bc75d-0d04-0410-961f-
82ee72b054a4
fabien [Wed, 25 May 2011 20:52:15 +0000 (20:52 +0000)]
gcc/cp/ChangeLog:
2011-05-25 Fabien Chene <fabien@gcc.gnu.org>
* init.c (diagnose_uninitialized_cst_or_ref_member_1): Use
permerror instead of error, adjust the error count.
gcc/testsuite/ChangeLog:
2011-05-25 Fabien Chene <fabien@gcc.gnu.org>
* g++.dg/init/pr25811-2.C: New.
* g++.dg/init/pr25811-3.C: New.
* g++.dg/init/pr25811-4.C: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174239
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Wed, 25 May 2011 20:30:21 +0000 (20:30 +0000)]
PR c++/44311
* decl.c (case_conversion): New.
(finish_case_label): Use it.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174237
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Wed, 25 May 2011 20:30:12 +0000 (20:30 +0000)]
PR c++/45698
* pt.c (dependent_template_arg_p): See through ARGUMENT_PACK_SELECT.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174236
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Wed, 25 May 2011 20:30:01 +0000 (20:30 +0000)]
PR c++/46145
* decl.c (grokdeclarator): Complain about auto typedef.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174235
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Wed, 25 May 2011 20:29:54 +0000 (20:29 +0000)]
PR c++/46245
* decl.c (grokdeclarator): Complain later for auto parameter.
* pt.c (splice_late_return_type): Handle use in a template
type-parameter.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174234
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Wed, 25 May 2011 20:29:47 +0000 (20:29 +0000)]
PR c++/46696
* typeck.c (cp_build_modify_expr): Check DECL_DEFAULTED_FN.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174233
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Wed, 25 May 2011 20:29:39 +0000 (20:29 +0000)]
PR c++/47184
* parser.c (cp_parser_parameter_declaration): Recognize
list-initialization.
(cp_parser_direct_declarator): Check for the closing
paren before parsing definitely.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174232
138bc75d-0d04-0410-961f-
82ee72b054a4
janis [Wed, 25 May 2011 16:38:55 +0000 (16:38 +0000)]
* gcc.target/arm/fp16-compile-none-1.c: Update expected error.
* g++.dg/abi/packed1.C: Suppress warning.
* g++.dg/warn/Wunused-parm-3.C: Likewise.
* g++.dg/template/stdarg1.C: Likewise.
* g++.dg/other/packed1.C: Remove arm from xfail list.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174214
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Wed, 25 May 2011 15:26:42 +0000 (15:26 +0000)]
PR c++/48935
* parser.c (cp_parser_constructor_declarator_p): Don't check
constructor_name_p for enums.
(cp_parser_diagnose_invalid_type_name): Correct error message.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174210
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Wed, 25 May 2011 15:26:33 +0000 (15:26 +0000)]
PR c++/45418
* init.c (perform_member_init): Handle list-initialization
of array of non-trivial class type.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174209
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Wed, 25 May 2011 15:26:25 +0000 (15:26 +0000)]
PR c++/45080
* pt.c (instantiate_class_template_1): Call maybe_add_lambda_conv_op.
* semantics.c (lambda_function): Check COMPLETE_OR_OPEN_TYPE_P.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174208
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Wed, 25 May 2011 15:26:14 +0000 (15:26 +0000)]
PR c++/48292
* pt.c (tsubst_decl) [PARM_DECL]: Handle partial instantiation of
function parameter pack.
(tsubst_pack_expansion): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174207
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Wed, 25 May 2011 11:53:58 +0000 (11:53 +0000)]
PR target/49128
* config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174184
138bc75d-0d04-0410-961f-
82ee72b054a4
hubicka [Wed, 25 May 2011 11:36:49 +0000 (11:36 +0000)]
PR tree-optimization/44897
* ipa-inline.c (cgraph_decide_recursive_inlining): Do not divide
by zero for insane profiles.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174183
138bc75d-0d04-0410-961f-
82ee72b054a4
paolo [Wed, 25 May 2011 09:45:58 +0000 (09:45 +0000)]
2011-05-24 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/49141
* testsuite/26_numerics/complex/cons/48760.cc: Use dg-require-c-std.
* testsuite/26_numerics/headers/cmath/19322.cc: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174179
138bc75d-0d04-0410-961f-
82ee72b054a4
nicola [Wed, 25 May 2011 09:07:57 +0000 (09:07 +0000)]
In libobjc/:
2011-05-25 Nicola Pero <nicola.pero@meta-innovation.com>
Backport from mainline
2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
PR libobjc/48177
* selector.c (__sel_register_typed_name): Use sel_types_match()
instead of strcmp() to compare selector types (Suggestion by
Richard Frith-Macdonald <rfm@gnu.org>).
In gcc/testsuite/:
2011-05-25 Nicola Pero <nicola.pero@meta-innovation.com>
Backport from mainline
2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
PR libobjc/48177
* objc.dg/pr48177.m: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174176
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Wed, 25 May 2011 07:03:25 +0000 (07:03 +0000)]
PR c++/49136
* semantics.c (cxx_eval_bit_field_ref): Handle the
case when BIT_FIELD_REF doesn't cover only a single field.
* g++.dg/cpp0x/constexpr-bitfield2.C: New test.
* g++.dg/cpp0x/constexpr-bitfield3.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174169
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Wed, 25 May 2011 01:08:53 +0000 (01:08 +0000)]
PR c++/49042
* pt.c (get_mostly_instantiated_function_type): Use
push_deferring_access_checks rather than set flag_access_control.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174164
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Wed, 25 May 2011 01:08:46 +0000 (01:08 +0000)]
PR c++/48884
* pt.c (fn_type_unification): Disable access control during
substitution.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174163
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Wed, 25 May 2011 01:08:38 +0000 (01:08 +0000)]
PR c++/49105
* typeck.c (build_const_cast_1): Handle rvalue references.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174162
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Wed, 25 May 2011 01:08:31 +0000 (01:08 +0000)]
PR c++/47263
* decl.c (use_eh_spec_block): Do use an EH spec block for a
lambda op().
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174161
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Wed, 25 May 2011 01:08:24 +0000 (01:08 +0000)]
PR c++/47336
* error.c (dump_template_bindings): Suppress access control.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174160
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Wed, 25 May 2011 01:08:16 +0000 (01:08 +0000)]
PR c++/47544
* pt.c (instantiate_decl): Handle =default.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174159
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Wed, 25 May 2011 01:08:07 +0000 (01:08 +0000)]
PR c++/48617
* pt.c (invalid_nontype_parm_type_p): Allow DECLTYPE_TYPE.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174158
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Wed, 25 May 2011 00:18:30 +0000 (00:18 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174156
138bc75d-0d04-0410-961f-
82ee72b054a4
ebotcazou [Tue, 24 May 2011 22:29:40 +0000 (22:29 +0000)]
* config/sparc/sparc.c (sparc_option_override): If not set by the user,
force flag_ira_share_save_slots to 0.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174149
138bc75d-0d04-0410-961f-
82ee72b054a4
uros [Tue, 24 May 2011 18:41:31 +0000 (18:41 +0000)]
PR target/49133
* config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
testsuite/ChangeLog:
PR target/49133
* g++.dg/other/pr49133.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174131
138bc75d-0d04-0410-961f-
82ee72b054a4
hjl [Tue, 24 May 2011 17:41:51 +0000 (17:41 +0000)]
Always add -mno-XXX for -march=native.
2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
Backport from mainline
2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
PR target/49128
* config/i386/driver-i386.c (host_detect_local_cpu): Always
add -mno-XXX. Handle FMA.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174127
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Tue, 24 May 2011 00:18:13 +0000 (00:18 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174098
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Mon, 23 May 2011 20:37:18 +0000 (20:37 +0000)]
PR lto/49123
* fold-const.c (constant_boolean_node): If type is non-NULL,
use build_int_cst_type instead of build_int_cst.
* gcc.c-torture/execute/pr49123.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174087
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Mon, 23 May 2011 18:12:34 +0000 (18:12 +0000)]
PR debug/49032
* dbxout.c: Include cgraph.h.
(dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
and without value expr, return NULL if no varpool node exists for
it or if it is not needed.
* Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
* gcc.dg/debug/pr49032.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174084
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Mon, 23 May 2011 18:03:31 +0000 (18:03 +0000)]
PR c/49120
* c-decl.c (start_decl): Convert expr to void_type_node.
* gcc.dg/pr49120.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174082
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Mon, 23 May 2011 10:24:47 +0000 (10:24 +0000)]
PR middle-end/48973
* expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
failed and the comparison has a single bit signed type, use
constm1_rtx instead of const1_rtx for true value.
(do_store_flag): If ops->type is single bit signed type, disable
signel bit test optimization and pass -1 instead of 1 as last
parameter to emit_store_flag_force.
* gcc.c-torture/execute/pr48973-1.c: New test.
* gcc.c-torture/execute/pr48973-2.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174063
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Mon, 23 May 2011 00:19:09 +0000 (00:19 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174053
138bc75d-0d04-0410-961f-
82ee72b054a4
paolo [Mon, 23 May 2011 00:08:52 +0000 (00:08 +0000)]
2011-05-22 Jonathan Wakely <jwakely.gcc@gmail.com>
* testsuite/20_util/bind/cv_quals_2.cc: New.
2011-05-22 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/49058
* include/std/functional (_Bind<_Functor(_Bound_args...)>::
operator()(_Args&&...)): Don't cv qualify _Functor directly
in the default template argument, SFINAE doesn't apply when
the functor has no arguments.
* testsuite/20_util/bind/49058_1.cc: New.
* testsuite/20_util/bind/49058_2.cc: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174049
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Sun, 22 May 2011 20:31:59 +0000 (20:31 +0000)]
PR c++/48647
* typeck.c (composite_pointer_type_r): Return error_mark_node
on error in SFINAE context.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174044
138bc75d-0d04-0410-961f-
82ee72b054a4
ebotcazou [Sun, 22 May 2011 20:03:43 +0000 (20:03 +0000)]
* config.gcc (sparc-*-elf*): Add sparc/t-crtin.
(sparc-*-rtems*): Likewise.
(sparc64-*-elf*): Likewise.
(sparc64-*-rtems*): Likewise.
(sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
* config/sparc/t-crtin: New file.
* config/sparc/t-sol2 (crti.o): Delete rule.
(crtn.o): Likewise.
* config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
* config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
* config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
(ENDFILE_SPEC): Add crtn.o.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174042
138bc75d-0d04-0410-961f-
82ee72b054a4