aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2013-04-03hwint.c (sext_hwi, zext_hwi): New functions.Kenneth Zadeck3-0/+114
2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com> * hwint.c (sext_hwi, zext_hwi): New functions. * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT, HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C, HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C, HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX, HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols. (sext_hwi, zext_hwi): New functions. From-SVN: r197456
2013-04-03re PR tree-optimization/56799 (Runfail after r197060+r197082.)Jeff Law4-2/+64
PR tree-optimization/56799 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring back test for widening conversion erroneously dropped in prior change. PR tree-optimization/56799 * gcc.c-torture/execute/pr56799.c: New test. From-SVN: r197453
2013-04-03re PR target/56809 (Revision 197266 causes trunk ICE for arm-none-eabi targets)Kyrylo Tkachov2-1/+7
2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com> PR target/56809 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn instead of next_real_insn. From-SVN: r197434
2013-04-03re PR c++/56815 (void pointer arithmetic)Paolo Carlini5-8/+34
/cp 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com> PR c++/56815 * typeck.c (cp_build_unary_op): Change -Wpointer-arith permerror to pedwarn. /testsuite 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com> PR c++/56815 * g++.dg/warn/Wpointer-arith-1.C: New. * g++.dg/gomp/for-19.C: Adjust. From-SVN: r197433
2013-04-03re PR sanitizer/55702 (ICE: in instrument_func_exit, at tsan.c:684 with ↵Marek Polacek4-1/+22
-fsanitize=thread and __builtin_return()) PR sanitizer/55702 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions. * gcc.dg/pr55702.c: New test. From-SVN: r197430
2013-04-03re PR target/56809 (Revision 197266 causes trunk ICE for arm-none-eabi targets)Kyrylo Tkachov4-4/+49
gcc/ 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com> PR target/56809 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of next_real_insn. (thumb1_output_casesi): Likewise. (thumb2_output_casesi): Likewise. gcc/testsuite 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com> PR target/56809 * gcc.dg/pr56809.c: New testcase. From-SVN: r197425
2013-04-03re PR c++/56819 (ICE: SIGSEGV in int_cst_value (tree.h:4013) with ↵Jakub Jelinek4-4/+49
-fcompare-debug) PR debug/56819 * tree.c (strip_typedefs): Copy NON_DEFAULT_TEMPLATE_ARGS_COUNT from args to new_args. (strip_typedefs_expr): Copy NON_DEFAULT_TEMPLATE_ARGS_COUNT from t to r instead of doing {S,G}ET_NON_DEFAULT_TEMPLATE_ARGS_COUNT. * g++.dg/debug/pr56819.C: New test. From-SVN: r197420
2013-04-03v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.Nick Clifton1-9/+13
* config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures. (fmssf4): Use fmsf.s on E3V5 architectures. (fnmasf4): Use fnmaf.s on E3V5 architectures. (fnmssf4): Use fnmsf.s on E3V5 architectures. From-SVN: r197413
2013-04-03re PR tree-optimization/56817 (ICE in hide_evolution_in_other_loops_than_loop)Richard Biener4-31/+112
2013-04-03 Richard Biener <rguenther@suse.de> PR tree-optimization/56817 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Split out ... (tree_unroll_loops_completely_1): ... new function to manually walk the loop tree, properly defering outer loops of unrolled loops to later iterations. * g++.dg/torture/pr56817.C: New testcase. From-SVN: r197411
2013-04-03tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.Marc Glisse6-0/+28
2013-04-03 Marc Glisse <marc.glisse@inria.fr> gcc/ * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF. (vectorizable_load): Likewise. * tree-vect-slp.c (vect_build_slp_tree): Likewise. * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE. gcc/testsuite/ * gcc.dg/vect/bb-slp-31.c: New file. From-SVN: r197410
2013-04-03tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle BIT_FIELD_REF.Marc Glisse2-1/+12
2013-04-03 Marc Glisse <marc.glisse@inria.fr> * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle BIT_FIELD_REF. From-SVN: r197409
2013-04-03re PR c++/34949 (Dead code in empty destructors.)Jason Merrill2-1/+6
PR c++/34949 * g++.dg/tree-ssa/ehcleanup-1.C: Adjust unreachable count. From-SVN: r197408
2013-04-03slp-pr56812.cc: Use dg-additional-options.Richard Biener2-1/+5
2013-04-03 Richard Biener <rguenther@suse.de> * g++.dg/vect/slp-pr56812.cc: Use dg-additional-options. From-SVN: r197407
2013-04-03* config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.Ulrich Weigand2-2/+15
From-SVN: r197406
2013-04-03re PR tree-optimization/55964 (Segmentation fault with -O ↵Richard Biener2-0/+26
-ftree-loop-distribution -funswitch-loops) 2013-04-03 Richard Biener <rguenther@suse.de> PR tree-optimization/55964 * gcc.dg/torture/pr55964-2.c: New testcase. From-SVN: r197403
2013-04-03re PR tree-optimization/56501 (gcc 4.6 ICE on noreturn function at -Os and ↵Richard Biener2-0/+32
above) 2013-04-03 Richard Biener <rguenther@suse.de> PR tree-optimization/56501 * gcc.dg/torture/pr56501.c: New testcase. From-SVN: r197401
2013-04-03re PR tree-optimization/56407 (Optimizations (-O2 -O3) make comparison of ↵Richard Biener2-0/+53
arrays of ints to fail) 2013-04-03 Richard Biener <rguenther@suse.de> PR tree-optimization/56407 * gcc.dg/torture/pr56407.c: New testcase. From-SVN: r197399
2013-04-03* rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.Bin Cheng2-1/+5
From-SVN: r197398
2013-04-03re PR tree-optimization/56790 (VEC_COND_EXPR not constant folded)Marc Glisse4-0/+49
2013-04-03 Marc Glisse <marc.glisse@inria.fr> PR tree-optimization/56790 gcc/ * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant folding. gcc/testsuite/ * g++.dg/ext/pr56790-1.C: New testcase. From-SVN: r197395
2013-04-03simplify-rtx.c (simplify_binary_operation_1): Handle VEC_MERGE.Marc Glisse5-15/+117
2013-04-03 Marc Glisse <marc.glisse@inria.fr> gcc/ * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>: Handle VEC_MERGE. (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT for masks. Test for side effects. Handle nested VEC_MERGE. Handle equal arguments. gcc/testsuite/ * gcc.target/i386/merge-1.c: New testcase. * gcc.target/i386/avx2-vpblendd128-1.c: Make it non-trivial. From-SVN: r197394
2013-04-03re PR c/19449 (__builtin_constant_p cannot resolve to const when optimizing)Jakub Jelinek7-5/+61
PR c/19449 * tree.h (force_folding_builtin_constant_p): New decl. * builtins.c (force_folding_builtin_constant_p): New variable. (fold_builtin_constant_p): Fold immediately also if force_folding_builtin_constant_p. * c-parser.c (c_parser_get_builtin_args): Add choose_expr_p argument. If set, or it temporarily for parsing of the first argument into force_folding_builtin_constant_p. (c_parser_postfix_expression): Adjust callers. * gcc.c-torture/execute/pr19449.c: New test. From-SVN: r197393
2013-04-03re PR tree-optimization/56812 (Simple loop is not SLP-vectorized after r196872)Richard Biener4-0/+38
2013-04-03 Richard Biener <rguenther@suse.de> PR tree-optimization/56812 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence): DRs of the same interleaving chain are independent. * g++.dg/vect/slp-pr56812.cc: New testcase. From-SVN: r197390
2013-04-03re PR fortran/56284 ([OOP] ICE with alternate return in type-bound procedure)Janus Weil8-1/+58
2013-04-03 Janus Weil <janus@gcc.gnu.org> PR fortran/56284 PR fortran/40881 * decl.c (gfc_match_formal_arglist): Warn about alternate-return arguments. * interface.c (check_dummy_characteristics): Return if symbols are NULL. 2013-04-03 Janus Weil <janus@gcc.gnu.org> PR fortran/56284 PR fortran/40881 * gfortran.dg/altreturn_8.f90: New. * gfortran.dg/altreturn_2.f90: Add -std=legacy. * gfortran.dg/intrinsic_actual_3.f90: Ditto. * gfortran.dg/invalid_interface_assignment.f90: Ditto. From-SVN: r197389
2013-04-02re PR c++/56821 (Unable to overload with references to 'this'.)Jason Merrill3-4/+76
PR c++/56821 * mangle.c (write_function_type): Mangle ref-qualifier. (write_nested_name): Likewise. (canonicalize_for_substitution): Preserve ref-qualifier. (write_type): Likewise. From-SVN: r197386
2013-04-03Daily bump.GCC Administrator1-1/+1
From-SVN: r197384
2013-04-02* de.po: Update.Joseph Myers2-354/+358
From-SVN: r197377
2013-04-02* gdbinit.in (pbb): Use debug fn.Jason Merrill2-1/+5
From-SVN: r197376
2013-04-02re PR c++/34949 (Dead code in empty destructors.)Jason Merrill3-0/+37
PR c++/34949 * decl.c (begin_destructor_body): Clobber the object in a cleanup. From-SVN: r197375
2013-04-02Remove unused symbols related to ivtype_map.Lawrence Crowl3-52/+11
Remove unused symbols related to ivtype_map. This map does not appear to exist and I see no evidence of its removal in the ChangeLog. Tested on x86_64. Index: gcc/ChangeLog 2013-04-02 Lawrence Crowl <crowl@google.com> * sese.h (struct ivtype_map_elt_s): Remove unused. (extern debug_ivtype_map): Remove unused. (extern eq_ivtype_map_elts): Remove unused. * sese.c (debug_ivtype_map): Removed unused. (debug_ivtype_map_1): Removed unused. (debug_ivtype_elt): Remove unused. (eq_ivtype_map_elts): Remove unused. From-SVN: r197374
2013-04-02re PR target/52790 (Problems using x86_64-w64-mingw-w32-gfortran with ↵Kai Tietz6-58/+264
mcmodel=large and medium) PR target/52790 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro. * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype. * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static function. (legitimize_pe_coff_symbol): Likewise. (is_imported_p): New helper-function. (ix86_option_override_internal): Make MEDIUM_PIC the default code-model for Windows x64 targets. (ix86_expand_prologue): Optimize for pe-coff targets. (ix86_expand_split_stack_prologue): Adjust for pe-coff targets. (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support medium/large code-model. (legitimize_pic_address): Likewise. (legitimize_tls_address): Likewise. (ix86_expand_call): Likewise. (x86_output_mi_thunk): Likewise. (get_dllimport_decl): Add new beimport argument. (construct_plt_address): Don't assert for x64 pe-coff targets. * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff targets. (SYMBOL_FLAG_STUBVAR): New macro. (SYMBOL_REF_STUBVAR_P): Likewise. * config/i386/winnt.c (stub_list): New structure. (stub_head): New local variable. (i386_pe_record_stub): New function. (i386_pe_file_end): Emit refptr-stubs. From-SVN: r197373
2013-04-02re PR rtl-optimization/56745 (ICE in merge_if_block)Jakub Jelinek4-2/+26
PR rtl-optimization/56745 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize if then_bb has no successors and else_bb is EXIT_BLOCK_PTR. * gcc.c-torture/compile/pr56745.c: New test. From-SVN: r197371
2013-04-02re PR c++/34949 (Dead code in empty destructors.)Jakub Jelinek2-8/+43
PR c++/34949 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base and both of them are MEM_REFs, just compare first argument for equality and attempt to deal even with differing offsets. From-SVN: r197370
2013-04-02re PR c++/34949 (Dead code in empty destructors.)Jakub Jelinek7-13/+66
PR c++/34949 * tree-cfg.c (verify_gimple_assign_single): Allow lhs of gimple_clobber_p to be MEM_REF. * gimplify.c (gimplify_modify_expr): Gimplify *to_p of an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF after gimplification. * asan.c (get_mem_ref_of_assignment): Don't instrument gimple_clobber_p stmts. * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of gimple_clobber_p stmt if they have MEM_REF lhs and are dead because of another gimple_clobber_p stmt. * tree-ssa-live.c (clear_unused_block_pointer): Treat gimple_clobber_p stmts like debug stmts. (remove_unused_locals): Remove clobbers with MEM_REF lhs that refer to unused VAR_DECLs or uninitialized values. * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove gimple_clobber_p stmts if they refer to removed parameters. (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up formatting. From-SVN: r197369
2013-04-02i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64 using SWI48 mode ↵Uros Bizjak2-45/+32
attribute. * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64 using SWI48 mode attribute. From-SVN: r197367
2013-04-02sra-13.c: Fix for 16 bit int.Pitchumani Sivanupandi2-1/+5
2013-04-02 Pitchumani Sivanupandi <pitchumani.s@atmel.com> * gcc.dg/tree-ssa/sra-13.c: Fix for 16 bit int. From-SVN: r197366
2013-04-02i386.c (ix86_rtx_costs): Set proper rtx cost for ashl<mode>3_mask...Wei Mi2-0/+13
2013-04-02 Wei Mi <wmi@google.com> * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for ashl<mode>3_mask, *<shift_insn><mode>3_mask and *<rotate_insn><mode>3_mask in i386.md. From-SVN: r197362
2013-04-02config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.Alexander Ivchenko2-1/+5
* config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android. From-SVN: r197358
2013-04-02friend.c (do_friend): Use COMPLETE_OR_OPEN_TYPE_P.Paolo Carlini3-8/+10
2013-04-02 Paolo Carlini <paolo.carlini@oracle.com> * friend.c (do_friend): Use COMPLETE_OR_OPEN_TYPE_P. * pt.c (find_parameter_packs_r): Use TYPE_ALIAS_P and TYPE_TI_ARGS. (for_each_template_parm_r): Use TYPE_TI_ARGS. From-SVN: r197356
2013-04-02re PR tree-optimization/56778 (ICE on several benchmarks after r196775.)Richard Biener5-1/+63
2013-04-02 Richard Biener <rguenther@suse.de> PR tree-optimization/56778 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Runtime alias tests are not supported for gather loads. * tree-vect-loop-manip.c (vect_loop_versioning): Insert stmts referenced from SSA operands before updating SSA form. * gcc.dg/torture/pr56778.c: New testcase. From-SVN: r197355
2013-04-02re PR c++/56768 ([4.7] ICE in make_decl_rtl, at varasm.c:1147)Richard Biener2-0/+46
2013-04-02 Richard Biener <rguenther@suse.de> PR middle-end/56768 * g++.dg/torture/pr56768.C: New testcase. From-SVN: r197349
2013-04-02cp-tree.h (TAGGED_TYPE_P): Remove.Paolo Carlini8-13/+25
2013-04-02 Paolo Carlini <paolo.carlini@oracle.com> * cp-tree.h (TAGGED_TYPE_P): Remove. (IS_OVERLOAD_TYPE): Rename to OVERLOAD_TYPE_P, adjust. (TYPE_ANONYMOUS_P): Adjust. * call.c (build_new_op_1): Likewise. * class.c (find_abi_tags_r): Likewise. * decl.c (warn_misplaced_attr_for_class_type, start_decl, type_is_deprecated): Likewise. * decl2.c (grokfield, min_vis_r): Likewise. * pt.c (get_template_info): Likewise. * tree.c (handle_abi_tag_attribute): Likewise. From-SVN: r197347
2013-04-02Add support for Cortex-A53.Ian Caulfield10-6/+324
2013-04-02 Ian Caulfield <ian.caulfield@arm.com> Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> * config/arm/arm-arches.def (armv8-a): Default to cortex-a53. * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md. * config/arm/cortex-a53.md: New file. * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53. * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53. * config/arm/arm.c (arm_issue_rate): Likewise. * config/arm/arm-tune.md: Regenerate * config/arm/arm-tables.opt: Regenerate. * config/arm/arm-cores.def: Add cortex-a53. From-SVN: r197346
2013-04-02re PR c++/56725 (extra spaces in error message)Paolo Carlini2-4/+8
2013-04-02 Paolo Carlini <paolo.carlini@oracle.com> * obj-c++.dg/try-catch-13.mm: Update per PR56725. From-SVN: r197345
2013-04-02uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for non-static link.Zhenqiang Chen2-1/+6
2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com> * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for non-static link. From-SVN: r197344
2013-04-02aarch64.md (*mov<mode>_aarch64): Add variants for scalar load/store ↵Sofiane Naci2-8/+17
operations using B/H registers. * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for scalar load/store operations using B/H registers. (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise. From-SVN: r197342
2013-04-02aarch64.md (*mov<mode>_aarch64): Add alternatives for scalar move.Sofiane Naci6-5/+53
* config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for scalar move. * config/aarch64/aarch64.c (aarch64_simd_scalar_immediate_valid_for_move): New. * config/aarch64/aarch64-protos.h (aarch64_simd_scalar_immediate_valid_for_move): New. * config/aarch64/constraints.md (Dh, Dq): New. * config/aarch64/iterators.md (hq): New. From-SVN: r197341
2013-04-02reorg.c (get_branch_condition): Deal with conditional returns.Eric Botcazou2-35/+19
* reorg.c (get_branch_condition): Deal with conditional returns. (fill_simple_delay_slots): Remove dead code dealing with jumps. From-SVN: r197340
2013-04-02Daily bump.GCC Administrator1-1/+1
From-SVN: r197338
2013-04-01semantics.c (maybe_constant_value): Check instantiation_dependent_expression_p.Jason Merrill3-5/+7
* semantics.c (maybe_constant_value): Check instantiation_dependent_expression_p. * pt.c (build_non_dependent_expr): Don't check it here. From-SVN: r197327
2013-04-01re PR c++/56772 (placement new operator does not work inside function ↵Jason Merrill3-0/+25
template for array types.) PR c++/56772 * init.c (build_new): Don't try to process an array initializer at template definition time. From-SVN: r197326