platform/upstream/linaro-gcc.git
8 years ago PR ipa/66223
hubicka [Mon, 4 Apr 2016 15:54:39 +0000 (15:54 +0000)]
PR ipa/66223
* ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
calls when sanitizing.
(possible_polymorphic_call_target_p)" FIx formating.
* g++.dg/ipa/devirt-51.C: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234719 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago[gcc]
wschmidt [Mon, 4 Apr 2016 15:42:19 +0000 (15:42 +0000)]
[gcc]

2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
    Jakub Jelinek <jakub@redhat.com>

PR middle-end/70457
* tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
to ensure a call statement is compatible with a built-in's
prototype.
* tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
Likewise.

[gcc/testsuite]

2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
    Jakub Jelinek <jakub@redhat.com>

PR middle-end/70457
* gcc.dg/torture/pr70457.c: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234716 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agogcc/fortran/ChangeLog:
vehre [Mon, 4 Apr 2016 10:32:32 +0000 (10:32 +0000)]
gcc/fortran/ChangeLog:

2016-04-04  Andre Vehreschild  <vehre@gcc.gnu.org>

PR fortran/67538
* resolve.c (resolve_allocate_expr): Emit error message when no
array spec and no array valued source= expression is given in an
F2008 allocate() for an array to allocate.

gcc/testsuite/ChangeLog:

2016-04-04  Andre Vehreschild  <vehre@gcc.gnu.org>

PR fortran/67538
* gfortran.dg/allocate_with_source_19.f08: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234714 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agogcc/fortran/ChangeLog:
vehre [Mon, 4 Apr 2016 09:32:28 +0000 (09:32 +0000)]
gcc/fortran/ChangeLog:

2016-04-04  Andre Vehreschild  <vehre@gcc.gnu.org>

PR fortran/65795
* trans-array.c (gfc_array_allocate): When the array is a coarray,
do not nullyfing its allocatable components in array_allocate, because
the nullify missed the array ref and nullifies the wrong component.
Cosmetics.

gcc/testsuite/ChangeLog:

2016-04-04  Andre Vehreschild  <vehre@gcc.gnu.org>

PR fortran/65795
* gfortran.dg/coarray_allocate_6.f08: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234710 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2016-04-04 Richard Biener <rguenther@suse.de>
rguenth [Mon, 4 Apr 2016 09:30:16 +0000 (09:30 +0000)]
2016-04-04  Richard Biener  <rguenther@suse.de>

PR rtl-optimization/70484
* rtl.h (canon_output_dependence): Declare.
* alias.c (canon_output_dependence): New function.
* dse.c (record_store): Use canon_output_dependence rather
than canon_true_dependence.

* gcc.dg/torture/pr70484.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234709 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR ipa/68881
hubicka [Mon, 4 Apr 2016 09:26:29 +0000 (09:26 +0000)]
PR ipa/68881
* cgraph.h (symtab_node::copy_visibility_from): New function.
* symtab.c (symtab_node::copy_visibility_from): New function.
* ipa-visibility.c (optimize_weakref): New function.
(function_and_variable_visibility): Use it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234708 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoFix PR hsa/70402
marxin [Mon, 4 Apr 2016 08:46:51 +0000 (08:46 +0000)]
Fix PR hsa/70402

PR hsa/70402
* hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
value that is really in range handled by SBR instruction.
* hsa-brig.c (emit_switch_insn): Do not emit unconditional
jump.
* hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
* hsa.h (hsa_insn_sbr::m_default_bb): Remove field.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234707 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR c/70307
mpolacek [Mon, 4 Apr 2016 08:11:46 +0000 (08:11 +0000)]
PR c/70307
* c-fold.c (c_fully_fold_internal): Handle VEC_COND_EXPR.

* gcc.dg/torture/pr70307.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234706 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Mon, 4 Apr 2016 00:16:16 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234705 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agogcc/
olegendo [Sun, 3 Apr 2016 12:50:54 +0000 (12:50 +0000)]
gcc/
PR target/70416
PR target/67391
* config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
set, but not for SP_REG operands.

gcc/testsuite/
PR target/70416
PR target/67391
* gcc.target/sh/torture/pr70416.c: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234702 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Sun, 3 Apr 2016 00:16:17 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234701 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoPR c++/67376 - [5/6 regression] Comparison with pointer to past-the-end
msebor [Sat, 2 Apr 2016 17:14:48 +0000 (17:14 +0000)]
PR c++/67376 - [5/6 regression] Comparison with pointer to past-the-end
        of array fails inside constant expression
PR c++/70170 - [6 regression] bogus not a constant expression error comparing
        pointer to array to null
PR c++/70172 - incorrect reinterpret_cast from integer to pointer error
        on invalid constexpr initialization
PR c++/70228 - insufficient detail in diagnostics for a constexpr out of bounds
        array subscript

gcc/testsuite/ChangeLog:
2016-04-02  Martin Sebor  <msebor@redhat.com>

        PR c++/67376
        PR c++/70170
        PR c++/70172
        PR c++/70228
        * g++.dg/cpp0x/constexpr-array-ptr10.C: New test.
        * g++.dg/cpp0x/constexpr-array-ptr9.C: New test.
        * g++.dg/cpp0x/constexpr-nullptr-1.C: New test.
        * g++.dg/cpp0x/constexpr-array5.C: Adjust text of expected diagnostic.
        * g++.dg/cpp0x/constexpr-string.C: Same.
        * g++.dg/cpp0x/constexpr-wstring2.C: Same.
        * g++.dg/cpp0x/pr65398.C: Same.
        * g++.dg/ext/constexpr-vla1.C: Same.
        * g++.dg/ext/constexpr-vla2.C: Same.
        * g++.dg/ext/constexpr-vla3.C: Same.
        * g++.dg/ubsan/pr63956.C: Same.

gcc/cp/ChangeLog:
2016-04-02  Martin Sebor  <msebor@redhat.com>

        PR c++/67376
        PR c++/70170
        PR c++/70172
        PR c++/70228
        * constexpr.c (diag_array_subscript): New function.
        (cxx_eval_array_reference): Detect out of bounds array indices.

gcc/ChangeLog:
2016-04-02  Martin Sebor  <msebor@redhat.com>

        PR c++/67376
        * fold-const.c (maybe_nonzero_address): New function.
        (fold_comparison): Call it.  Fold equality and relational
        expressions involving null pointers.
        (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234698 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago * gcc-interface/decl.c (components_to_record): Restrict the previous
ebotcazou [Sat, 2 Apr 2016 08:56:19 +0000 (08:56 +0000)]
* gcc-interface/decl.c (components_to_record): Restrict the previous
change to fields with variable size.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234696 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR c++/70449
jason [Sat, 2 Apr 2016 01:35:45 +0000 (01:35 +0000)]
PR c++/70449

PR c++/70344
* pt.c (instantiate_decl): A function isn't fully defined if
DECL_INITIAL is error_mark_node.
* constexpr.c (cxx_eval_call_expression): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234695 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago runtime: Use atomic load for in entersyscall.
ian [Sat, 2 Apr 2016 00:47:53 +0000 (00:47 +0000)]
runtime: Use atomic load for in entersyscall.

    Reportedly fixes PPC64 deadlock.

    From a comment by Gabriel Russell.

    Fixes golang/go#15051.

    Reviewed-on: https://go-review.googlesource.com/21450

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234694 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoAdd missing ChangeLog entry for PR target/70439
hjl [Sat, 2 Apr 2016 00:24:44 +0000 (00:24 +0000)]
Add missing ChangeLog entry for PR target/70439

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234693 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoAdd missing ChangeLog entry for PR testsuite/70364
hjl [Sat, 2 Apr 2016 00:18:41 +0000 (00:18 +0000)]
Add missing ChangeLog entry for PR testsuite/70364

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234692 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Sat, 2 Apr 2016 00:16:13 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234691 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago[AArch64] Fix SIMD predicate
evandro [Fri, 1 Apr 2016 19:55:52 +0000 (19:55 +0000)]
[AArch64] Fix SIMD predicate

Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate the
"Y" constraint (scalar FP 0.0 immediate).

* gcc/config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
Add the "const_double" to the list of operand constraints.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234685 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR rtl-optimization/70467
jakub [Fri, 1 Apr 2016 16:08:21 +0000 (16:08 +0000)]
PR rtl-optimization/70467
* config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
If low word of the last operand is 0, just emit addition/subtraction
for the high word.

* gcc.target/i386/pr70467-2.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234679 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoPR70404 S/390: Fix insv expansion.
krebbel [Fri, 1 Apr 2016 15:35:54 +0000 (15:35 +0000)]
PR70404 S/390: Fix insv expansion.

While the expander accepts general_operand as src operand the risbg
pattern only immediate_operand.  Unfortunately the expander called
force_reg only for VOIDmode constants missing things like
e.g. symbol_refs.  Fixed with the attached patch.

gcc/ChangeLog:

2016-04-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

PR target/70404
* config/s390/s390.c (s390_expand_insv): Check for everything
constant instead of just VOIDmode stuff.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234678 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR c++/70488
jakub [Fri, 1 Apr 2016 15:27:11 +0000 (15:27 +0000)]
PR c++/70488
* init.c (warn_placement_new_too_small): Test whether
DECL_SIZE_UNIT or TYPE_SIZE_UNIT are integers that fit into uhwi.

* g++.dg/init/new47.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234676 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoFix PR target/70496
ramana [Fri, 1 Apr 2016 14:58:53 +0000 (14:58 +0000)]
Fix PR target/70496

While doing the unified asm rewrite - I inadvertently changed the
meaning of ASM_APP_OFF which causes failures when folks who know what
they are doing switch between arm and thumb states within a
function. The intent of the unified asm rewrite was not to affect any
inline assembler code in that it would remain in divided syntax by
default and switching back to unified asm in normal compiled code
after the inline assembler block. Thanks to Jim Wilson for pointing it
out on the linaro list.

Fixed thusly and a test is added. Tested arm-none-eabi cross and
applied.

Ramana

2016-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

PR target/70496
* config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM
and TARGET_THUMB.

2016-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

PR target/70496
* gcc.target/arm/pr70496.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234675 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago * tree.def (TRY_CATCH_EXPR): Correct documentation.
nathan [Fri, 1 Apr 2016 12:57:52 +0000 (12:57 +0000)]
* tree.def (TRY_CATCH_EXPR): Correct documentation.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234671 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agofix flubbed changelog
nathan [Fri, 1 Apr 2016 12:12:27 +0000 (12:12 +0000)]
fix flubbed changelog

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234668 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR c++/68475
nathan [Fri, 1 Apr 2016 12:10:17 +0000 (12:10 +0000)]
PR c++/68475
* decl.c (check_redeclaration_exception_specification): Check
regardless of -fno-exceptions.
* typeck2.c (merge_exception_specifiers): Relax assert by checking
flag_exceptions too.

* g++.dg/g++.dg/cpp0x/noexcept29.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234667 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agogcc/testsuite/
ienkovich [Fri, 1 Apr 2016 10:40:51 +0000 (10:40 +0000)]
gcc/testsuite/

PR target/69890
* gcc.dg/strlenopt.h (memmove): New.
* gcc.target/i386/chkp-strlen-1.c: Include "../../gcc.dg/strlenopt.h"
instead of "string.h".
* gcc.target/i386/chkp-strlen-2.c: Likewise.
* gcc.target/i386/chkp-strlen-3.c: Likewise.
* gcc.target/i386/chkp-strlen-4.c: Likewise.
* gcc.target/i386/chkp-strlen-5.c: Likewise.
* gcc.target/i386/chkp-stropt-1.c: Likewise.
* gcc.target/i386/chkp-stropt-10.c: Likewise.
* gcc.target/i386/chkp-stropt-11.c: Likewise.
* gcc.target/i386/chkp-stropt-12.c: Likewise.
* gcc.target/i386/chkp-stropt-13.c: Likewise.
* gcc.target/i386/chkp-stropt-14.c: Likewise.
* gcc.target/i386/chkp-stropt-15.c: Likewise.
* gcc.target/i386/chkp-stropt-16.c: Likewise.
* gcc.target/i386/chkp-stropt-2.c: Likewise.
* gcc.target/i386/chkp-stropt-3.c: Likewise.
* gcc.target/i386/chkp-stropt-4.c: Likewise.
* gcc.target/i386/chkp-stropt-5.c: Likewise.
* gcc.target/i386/chkp-stropt-6.c: Likewise.
* gcc.target/i386/chkp-stropt-7.c: Likewise.
* gcc.target/i386/chkp-stropt-8.c: Likewise.
* gcc.target/i386/chkp-stropt-9.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234666 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Fri, 1 Apr 2016 00:16:13 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234661 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoFix g++.dg/template/ptrmem30.C with Solaris ld
ro [Thu, 31 Mar 2016 20:06:38 +0000 (20:06 +0000)]
Fix g++.dg/template/ptrmem30.C with Solaris ld

* g++.dg/template/ptrmem30.C (read): Rename to data_read.
(Holder::foo): Reflect this.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234652 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
vmakarov [Thu, 31 Mar 2016 17:51:13 +0000 (17:51 +0000)]
2016-03-31  Vladimir Makarov  <vmakarov@redhat.com>

PR rtl-optimization/70461
* ira-color.c (allocno_copy_cost_saving): Use allocno class if it
is necessary.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234649 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoFix PR hsa/70399
marxin [Thu, 31 Mar 2016 17:28:29 +0000 (17:28 +0000)]
Fix PR hsa/70399

PR hsa/70399
* hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
a tree value or an immediate integer value to a buffer
that is eventually copied to a BRIG section.
(emit_immediate_operand): Call the function here.
* hsa-dump.c (dump_hsa_immed): Remove checking assert.
* hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
of class' fields that are removed.
(hsa_op_immed::~hsa_op_immed): Remove deinitialization.
* hsa.h (class hsa_op_immed): Remove m_brig_repr and
m_brig_repr_size fields.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234647 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoAdd BZ markers to last commit
law [Thu, 31 Mar 2016 17:23:21 +0000 (17:23 +0000)]
Add BZ markers to last commit

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234646 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago * cplus-dem.c (squangle_mop_up): Zero bsize/ksize after freeing
law [Thu, 31 Mar 2016 17:20:53 +0000 (17:20 +0000)]
* cplus-dem.c (squangle_mop_up): Zero bsize/ksize after freeing
btypevec/ktypevec.
* testsuite/demangle-expected: Add coverage tests.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234645 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoHSA: handle alignment of string builtins (PR hsa/70391)
marxin [Thu, 31 Mar 2016 17:10:48 +0000 (17:10 +0000)]
HSA: handle alignment of string builtins (PR hsa/70391)

PR hsa/70391
* hsa-gen.c (hsa_function_representation::update_dominance): New
function.
(convert_addr_to_flat_segment): Likewise.
(gen_hsa_memory_set): New alignment argument.
(gen_hsa_ctor_assignment): Likewise.
(gen_hsa_insns_for_single_assignment): Provide alignment
to gen_hsa_ctor_assignment.
(gen_hsa_insns_for_direct_call): Add new argument.
(expand_lhs_of_string_op): New function.
(expand_string_operation_builtin): Likewise.
(expand_memory_copy): New function.
(expand_memory_set): New function.
(gen_hsa_insns_for_call): Use HOST_WIDE_INT.
(convert_switch_statements): Change signature.
(generate_hsa): Use a return value of the function.
(pass_gen_hsail::execute): Do not call
convert_switch_statements here.
* hsa-regalloc.c (hsa_regalloc): Call update_dominance.
* hsa.h (hsa_function_representation::m_modified_cfg):
New flag.
(hsa_function_representation::update_dominance): New function.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234644 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoHSA: support alignment for hsa_symbols (PR hsa/70391)
marxin [Thu, 31 Mar 2016 17:10:15 +0000 (17:10 +0000)]
HSA: support alignment for hsa_symbols (PR hsa/70391)

PR hsa/70391
* hsa-brig.c (emit_directive_variable): Emit alignment
according to hsa_symbol::m_align.
* hsa-dump.c (hsa_byte_alignment): Move the function to
another file.
(dump_hsa_symbol): Dump alignment of HSA symbols.
* hsa-gen.c (get_symbol_for_decl): Set-up alignment
of a symbol.
(gen_hsa_addr_with_align): New function.
(hsa_bitmemref_alignment): Use newly added function.
(gen_hsa_insns_for_load): Likewise.
(gen_hsa_insns_for_store): Likewise.
(gen_hsa_memory_copy): New argument added.
(gen_hsa_insns_for_single_assignment): Respect
alignment for assignments processed via
gen_hsa_memory_copy.
(gen_hsa_insns_for_direct_call): Likewise.
(gen_hsa_insns_for_return): Likewise.
(gen_function_def_parameters): Set default
alignment.
* hsa.c (hsa_object_alignment): New function.
(hsa_byte_alignment): Pasted function.
* hsa.h (hsa_symbol::m_align): New field.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234643 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago * decl.c (start_preparsed_function): Remove unnecessary bracing.
nathan [Thu, 31 Mar 2016 16:18:27 +0000 (16:18 +0000)]
* decl.c (start_preparsed_function): Remove unnecessary bracing.
(finish_destructor_body): Don't emit operator delete here.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234640 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
amker [Thu, 31 Mar 2016 16:17:44 +0000 (16:17 +0000)]
* tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
scratch field for goto case.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234639 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago[Patch ARM] Delete ASM_OUTPUT_DEF and fall back to default .set directive
jgreenhalgh [Thu, 31 Mar 2016 15:48:47 +0000 (15:48 +0000)]
[Patch ARM] Delete ASM_OUTPUT_DEF and fall back to default .set directive

gcc/

* config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234638 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agogcc/
ienkovich [Thu, 31 Mar 2016 15:37:12 +0000 (15:37 +0000)]
gcc/

PR target/70442
* config/i386/i386.c (scalar_chain::convert_op): Fix
description.
(scalar_chain::convert_insn): Call convert_op for reg
moves to handle undefined registers.

gcc/testsuite/

PR target/70442
* gcc.dg/pr70442.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234637 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR c++/70393
nathan [Thu, 31 Mar 2016 15:30:33 +0000 (15:30 +0000)]
PR c++/70393
* varasm.c (output_constructor_regular_field): Flush bitfield
earlier.  Assert we don't want to move backwards.

cp/
* constexpr.c (cxx_eval_store_expression): Keep CONSTRUCTOR
elements in field order.

testsuite/
* g++.dg/cpp0x/constexpr-virtual6.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234636 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoFix PR target/70453.
kyukhin [Thu, 31 Mar 2016 15:23:29 +0000 (15:23 +0000)]
Fix PR target/70453.

gcc/
* config/i386/sse.md (define_mode_attr shuffletype): Fix typo.

gcc/testsuite/
* gcc.target/i386/pr70453.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234634 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR target/70292
abel [Thu, 31 Mar 2016 14:37:08 +0000 (14:37 +0000)]
    PR target/70292
        * gcc.c-torture/pr70292.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234627 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR c/70297
mpolacek [Thu, 31 Mar 2016 14:29:15 +0000 (14:29 +0000)]
PR c/70297
* c-decl.c (merge_decls): Also set TYPE_ALIGN and TYPE_USER_ALIGN.

* decl.c (duplicate_decls): Also set TYPE_ALIGN and TYPE_USER_ALIGN.

* c-c++-common/pr70297.c: New test.
* g++.dg/cpp0x/typedef-redecl.C: New test.
* gcc.dg/typedef-redecl2.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234626 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR rtl-optimization/70460
jakub [Thu, 31 Mar 2016 13:00:52 +0000 (13:00 +0000)]
PR rtl-optimization/70460
* ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
with operand from REG_LABEL_OPERAND, instead substitute
SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
Don't do anything for REG_NON_LOCAL_GOTO jumps.

* gcc.c-torture/execute/pr70460.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234614 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDo not call todo_after for a discarded function
marxin [Thu, 31 Mar 2016 10:42:55 +0000 (10:42 +0000)]
Do not call todo_after for a discarded function

* passes.c (execute_one_pass): Do not call
todo_after for a discarded function.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234613 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
amker [Thu, 31 Mar 2016 08:57:13 +0000 (08:57 +0000)]
* tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
(no_cost, infinite_cost): Initialize the new field.
(get_computation_cost_at): Record setup cost.
(determine_use_iv_cost_address): Skip cost computation for sub
uses if we can estimate it without losing accuracy.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234612 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2016-03-31 Richard Biener <rguenther@suse.de>
rguenth [Thu, 31 Mar 2016 08:49:09 +0000 (08:49 +0000)]
2016-03-31  Richard Biener  <rguenther@suse.de>

PR c++/70430
* typeck.c (cp_build_binary_op): Fix operand order of vector
conditional in truth op handling.

* g++.dg/ext/vector30.C: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234611 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Thu, 31 Mar 2016 00:16:18 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234607 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2016-03-30 Jerry DeLisle <jvdelisle@gcc.gnu.org>
dominiq [Wed, 30 Mar 2016 20:47:45 +0000 (20:47 +0000)]
2016-03-30  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
    Dominique d'Humieres  <dominiq@lps.ens.fr>

PR libgfortran/70235
* io/write_float.def: Fix PF format for negative values of the scale
factor.

2016-03-30  Dominique d'Humieres  <dominiq@lps.ens.fr>
    Jerry DeLisle  <jvdelisle@gcc.gnu.org>

* gfortran.dg/fmt_pf.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234600 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago * da.po: Update.
jsm28 [Wed, 30 Mar 2016 17:52:59 +0000 (17:52 +0000)]
* da.po: Update.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234588 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoForward-port gcc.target/i386/avx-vextractf128-256-5.c from 5 branch (PR testsuite...
ro [Wed, 30 Mar 2016 17:08:08 +0000 (17:08 +0000)]
Forward-port gcc.target/i386/avx-vextractf128-256-5.c from 5 branch (PR testsuite/70356)

Forward-port from 5 branch
2016-03-30  Jakub Jelinek  <jakub@redhat.com>

PR testsuite/70356
* gcc.target/i386/avx-vextractf128-256-5.c: Move
dg-require-effective-target after dg-do.

2015-12-30  Kirill Yukhin  <kirill.yukhin@intel.com>

* gcc.target/i386/avx-vextractf128-256-5.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234580 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoUpdate OpenACC test cases
tschwinge [Wed, 30 Mar 2016 15:08:47 +0000 (15:08 +0000)]
Update OpenACC test cases

gcc/testsuite/
* c-c++-common/goacc/combined-directives.c: Clean up dg-*
directives.
* c-c++-common/goacc/loop-clauses.c: Likewise.
* g++.dg/goacc/template.C: Likewise.
* gfortran.dg/goacc/combined-directives.f90: Likewise.
* gfortran.dg/goacc/loop-1.f95: Likewise.
* gfortran.dg/goacc/loop-5.f95: Likewise.
* gfortran.dg/goacc/loop-6.f95: Likewise.
* gfortran.dg/goacc/loop-tree-1.f90: Likewise.
* c-c++-common/goacc-gomp/nesting-1.c: Update.
* c-c++-common/goacc-gomp/nesting-fail-1.c: Likewise.
* c-c++-common/goacc/clauses-fail.c: Likewise.
* c-c++-common/goacc/parallel-1.c: Likewise.
* c-c++-common/goacc/reduction-1.c: Likewise.
* c-c++-common/goacc/reduction-2.c: Likewise.
* c-c++-common/goacc/reduction-3.c: Likewise.
* c-c++-common/goacc/reduction-4.c: Likewise.
* c-c++-common/goacc/routine-3.c: Likewise.
* c-c++-common/goacc/routine-4.c: Likewise.
* c-c++-common/goacc/routine-5.c: Likewise.
* c-c++-common/goacc/tile.c: Likewise.
* g++.dg/goacc/template.C: Likewise.
* gfortran.dg/goacc/combined-directives.f90: Likewise.
* c-c++-common/goacc/nesting-1.c: Move dg-error test cases into...
* c-c++-common/goacc/nesting-fail-1.c: ... this file.  Update.
* c-c++-common/goacc/kernels-1.c: Update.  Incorporate...
* c-c++-common/goacc/kernels-empty.c: ... this file, and...
* c-c++-common/goacc/kernels-eternal.c: ... this file, and...
* c-c++-common/goacc/kernels-noreturn.c: ... this file.
* c-c++-common/goacc/host_data-1.c: New file.  Incorporate...
* c-c++-common/goacc/use_device-1.c: ... this file.
* c-c++-common/goacc/host_data-2.c: New file.  Incorporate...
* c-c++-common/goacc/host_data-5.c: ... this file, and...
* c-c++-common/goacc/host_data-6.c: ... this file.
* c-c++-common/goacc/loop-2-kernels.c: New file.
* c-c++-common/goacc/loop-2-parallel.c: Likewise.
* c-c++-common/goacc/loop-3.c: Likewise.
* g++.dg/goacc/reference.C: Likewise.
* g++.dg/goacc/routine-1.C: Likewise.
* g++.dg/goacc/routine-2.C: Likewise.
libgomp/
* testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
* testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
* testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
* testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
* testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
* testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
* testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
XFAIL.
* testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
Incorporate...
* testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
file.
* testsuite/libgomp.oacc-c++/template-reduction.C: New file.
* testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
Likewise.
* testsuite/libgomp.oacc-c-c++-common/private-variables.c:
Likewise.
* testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
* testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
* testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
* testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
* testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
* testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
* testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
Likewise.
* testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
* testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
* testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
file...
* testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
file into...
* testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
file.  Update.
* testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
file.
* testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
Likewise.
* testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
* testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
... this new file.  Update.
* testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
* testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
... this new file.  Update.
* testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
file.  Incorporate...
* testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
file, and...
* testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
file, and...
* testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
file.
* testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234575 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
hubicka [Wed, 30 Mar 2016 14:30:57 +0000 (14:30 +0000)]
* tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
estimates here.
* tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
max_loop_iterations_int.
(tree_unswitch_outer_loop): Likewise.
* tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
* tree-vect-loop.c (vect_analyze_loop_2): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234572 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2016-03-30 Richard Biener <rguenther@suse.de>
rguenth [Wed, 30 Mar 2016 14:18:28 +0000 (14:18 +0000)]
2016-03-30  Richard Biener  <rguenther@suse.de>

PR middle-end/70450
* fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from
usage.

* gcc.dg/torture/pr70450.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234571 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR target/70421
jakub [Wed, 30 Mar 2016 14:06:51 +0000 (14:06 +0000)]
PR target/70421
* config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
in gen_blendm expander.

* gcc.dg/torture/pr70421.c: New test.
* gcc.target/i386/avx512f-pr70421.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234569 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR target/62254
nickc [Wed, 30 Mar 2016 12:48:42 +0000 (12:48 +0000)]
PR target/62254
* config/arm/arm.c (arm_reload_out_hi): Add code to handle the
case where we are already provided with an SImode SUBREG.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234568 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoProperly check conflict between DRAP register and __builtin_eh_return
hjl [Wed, 30 Mar 2016 12:38:36 +0000 (12:38 +0000)]
Properly check conflict between DRAP register and __builtin_eh_return

Since %ecx can't be used for both DRAP register and __builtin_eh_return,
we need to check if crtl->drap_reg uses %ecx before using %ecx for
__builtin_eh_return.

PR target/70439
* config/i386/i386.c (ix86_expand_epilogue): Properly check
conflict between DRAP register and __builtin_eh_return.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234559 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoProperly align stack in gcc.target/i386/cleanup-[12].c
hjl [Wed, 30 Mar 2016 12:37:37 +0000 (12:37 +0000)]
Properly align stack in gcc.target/i386/cleanup-[12].c

PR testsuite/70364
* gcc.target/i386/cleanup-1.c: Include <stddef.h>.
(check): New function.
(bar): Call check.
(foo): Align stack to 16 bytes when calling bar.
* gcc.target/i386/cleanup-2.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234557 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2016-03-30 Michael Matz <matz@suse.de>
rguenth [Wed, 30 Mar 2016 07:47:40 +0000 (07:47 +0000)]
2016-03-30  Michael Matz  <matz@suse.de>
Richard Biener  <rguenther@suse.de>

PR ipa/12392
* ipa-polymorphic-call.c (struct type_change_info): Change
speculative to an unsigned allowing to limit the work we do.
(csftc_abort_walking_p): New inline function..
(check_stmt_for_type_change): Limit the number of may-defs
skipped for speculative devirtualization to
max-speculative-devirt-maydefs.
* params.def (max-speculative-devirt-maydefs): New param.
* doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234546 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR target/63890
law [Wed, 30 Mar 2016 03:57:30 +0000 (03:57 +0000)]
PR target/63890
* config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
and TARGET_MACHO.

* tree-vrp.c (register_edge_assert_for_2): For NAME != CST1

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234545 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoPR tree-optimization/59124 (bogus -Warray-bounds warning)
ppalka [Wed, 30 Mar 2016 00:55:00 +0000 (00:55 +0000)]
PR tree-optimization/59124 (bogus -Warray-bounds warning)

gcc/ChangeLog:

PR tree-optimization/59124
* tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).

gcc/testsuite/ChangeLog:

PR tree-optimization/59124
* gcc.dg/Warray-bounds-19.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234544 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Wed, 30 Mar 2016 00:16:20 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234542 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in
law [Tue, 29 Mar 2016 22:26:28 +0000 (22:26 +0000)]
* tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in
comment.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234538 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
hubicka [Tue, 29 Mar 2016 22:03:00 +0000 (22:03 +0000)]
* tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
to HOST_WIDE_INT.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234537 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago[Hurd] Specs maintenance
tschwinge [Tue, 29 Mar 2016 21:17:53 +0000 (21:17 +0000)]
[Hurd] Specs maintenance

gcc/
* config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
* config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
gcrt0.o if linking dynamically.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234535 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago[Hurd, kFreeBSD] boehm-gc: Use mmap instead of brk
tschwinge [Tue, 29 Mar 2016 21:05:07 +0000 (21:05 +0000)]
[Hurd, kFreeBSD] boehm-gc: Use mmap instead of brk

boehm-gc/
* configure.host: Set gc_use_mmap on *-kfreebsd-gnu* and *-gnu*.
* include/private/gcconfig.h [HURD && USE_MMAP]: Define
USE_MMAP_ANON.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234534 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2016-03-29 Zachary T Welch <zwelch@codesourcery.com>
mrs [Tue, 29 Mar 2016 19:56:35 +0000 (19:56 +0000)]
2016-03-29  Zachary T Welch <zwelch@codesourcery.com>

* lib/prune.exp (escape_regex_chars): New.
(prune_file_path): Update to quote metcharacters for regexp.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234533 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR ipa/70283
hubicka [Tue, 29 Mar 2016 19:37:55 +0000 (19:37 +0000)]
PR ipa/70283
* ipa-devirt.c (methods_equal_p): New function.
(compare_virtual_tables): Use it.
* cgraph.h (symbol_table::symbol_suffix_separator): Declare.
* cgraphclones.c (clone_function_name_1): Use
symbol_table::symbol_suffix_separator.
* coverage.c (build_var): Likewise.
* symtab.c (symbol_table::symbol_suffix_separator): New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234532 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR rtl-optimization/70429
jakub [Tue, 29 Mar 2016 18:49:00 +0000 (18:49 +0000)]
PR rtl-optimization/70429
* combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
(cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
mode != result_mode.

* gcc.c-torture/execute/pr70429.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234531 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR c++/70353
jason [Tue, 29 Mar 2016 18:40:02 +0000 (18:40 +0000)]
PR c++/70353

gcc/
* tree-inline.c (remap_decls): Don't add_local_decl if
cfun is null.
gcc/cp/
* decl.c (make_rtl_for_nonlocal_decl): Don't defer local statics
in constexpr functions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234530 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR tree-optimization/70405
jakub [Tue, 29 Mar 2016 17:33:52 +0000 (17:33 +0000)]
PR tree-optimization/70405
* ssa-iterators.h (num_imm_uses): Add missing braces.

* gcc.dg/pr70405.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234529 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agogcc/fortran/ChangeLog:
vehre [Tue, 29 Mar 2016 16:54:24 +0000 (16:54 +0000)]
gcc/fortran/ChangeLog:

2016-03-29  Andre Vehreschild  <vehre@gcc.gnu.org>

PR fortran/70397
* trans-expr.c (gfc_class_len_or_zero_get): Add function to return a
constant zero tree, when the class to get the _len component from is
not unlimited polymorphic.
(gfc_copy_class_to_class): Use the new function.
* trans.h: Added interface of new function gfc_class_len_or_zero_get.

gcc/testsuite/ChangeLog:

2016-03-29  Andre Vehreschild  <vehre@gcc.gnu.org>

PR fortran/70397
* gfortran.dg/unlimited_polymorphic_25.f90: New test.
* gfortran.dg/unlimited_polymorphic_26.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234528 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
vmakarov [Tue, 29 Mar 2016 16:20:39 +0000 (16:20 +0000)]
2016-03-29  Vladimir Makarov  <vmakarov@redhat.com>

PR rtl-optimization/68695
* ira-color.c (allocno_copy_cost_saving): New.
(improve_allocation): Use it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234527 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoadd myself to MAINTAINERS list
kelvin [Tue, 29 Mar 2016 15:55:58 +0000 (15:55 +0000)]
add myself to MAINTAINERS list

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234526 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoPR middle-end/70355
rth [Tue, 29 Mar 2016 15:19:00 +0000 (15:19 +0000)]
PR middle-end/70355

  * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234524 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago[PR testsuite/64177] Audit Cilk Plus tests for CILK_NWORKERS=1
tschwinge [Tue, 29 Mar 2016 14:39:33 +0000 (14:39 +0000)]
[PR testsuite/64177] Audit Cilk Plus tests for CILK_NWORKERS=1

PR testsuite/64177
gcc/testsuite/
* c-c++-common/cilk-plus/CK/spawning_arg.c (main): Call
__cilkrts_set_param to set two workers.
* c-c++-common/cilk-plus/CK/steal_check.c (main): Likewise.
* g++.dg/cilk-plus/CK/catch_exc.cc (main): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234523 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoAvoid ERROR in libgomp.oacc-c++/c++.exp in non-C++ configurations
tschwinge [Tue, 29 Mar 2016 13:24:22 +0000 (13:24 +0000)]
Avoid ERROR in libgomp.oacc-c++/c++.exp in non-C++ configurations

libgomp/
* testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
set-torture-options.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234519 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2016-03-29 Richard Biener <rguenther@suse.de>
rguenth [Tue, 29 Mar 2016 12:36:39 +0000 (12:36 +0000)]
2016-03-29  Richard Biener  <rguenther@suse.de>

PR middle-end/70424
* ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
use alignment returned by get_pointer_alignment_1 if it is
bigger than BITS_PER_UNIT.
* builtins.c (get_pointer_alignment_1): Do not return true
for alignment extracted from SSA info.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234517 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago * config/ft32/ft32.opt (mnodiv): New.
jamesbowman [Tue, 29 Mar 2016 00:37:26 +0000 (00:37 +0000)]
* config/ft32/ft32.opt (mnodiv): New.
* config/ft32/ft32.md (*divsi3, *modsi3): Qualify with
TARGET_NODIV.
* doc/invoke.texi (FT32 Options -mnodiv): New.
        * libgcc/config/ft32/lib1funcs.S (*divsi3, *modsi3): New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234516 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Tue, 29 Mar 2016 00:16:15 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234515 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR c++/70422
jason [Mon, 28 Mar 2016 20:16:21 +0000 (20:16 +0000)]
PR c++/70422

PR c++/64266
PR c++/70353
* decl.c, pt.c, constexpr.c: Revert last patch.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234511 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
jason [Mon, 28 Mar 2016 17:22:49 +0000 (17:22 +0000)]
* c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234508 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2016-03-28 Dominique d'Humieres <dominiq@lps.ens.fr>
dominiq [Mon, 28 Mar 2016 13:19:07 +0000 (13:19 +0000)]
2016-03-28  Dominique d'Humieres  <dominiq@lps.ens.fr>

g++.dg/ext/fnname5.C: Update the test for Darwin.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234504 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoSTOP managed by external library when coarrays are used
afanfa [Mon, 28 Mar 2016 09:05:01 +0000 (09:05 +0000)]
STOP managed by external library when coarrays are used

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234502 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoPR target/70406
kyukhin [Mon, 28 Mar 2016 07:59:44 +0000 (07:59 +0000)]
PR target/70406

gcc/
 * config/i386/i386.md (define_split, andn): Fix modes.

gcc/testsuite/
 * gcc.target/i386/pr70406.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234500 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Mon, 28 Mar 2016 00:16:14 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234499 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoFix typo
ebotcazou [Sun, 27 Mar 2016 10:00:54 +0000 (10:00 +0000)]
Fix typo

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234496 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago * gcc-interface/decl.c (components_to_record): Add special case for
ebotcazou [Sun, 27 Mar 2016 09:57:36 +0000 (09:57 +0000)]
* gcc-interface/decl.c (components_to_record): Add special case for
single field with representation clause at offset 0.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234494 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Sun, 27 Mar 2016 00:16:18 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234493 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2016-03-26 Richard Biener <rguenther@suse.de>
prathamesh3492 [Sat, 26 Mar 2016 10:08:47 +0000 (10:08 +0000)]
2016-03-26  Richard Biener  <rguenther@suse.de>
            Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>

PR ipa/70366
* ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
instead of
TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
as 2nd argument to cl_optimization_restore().

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234490 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Sat, 26 Mar 2016 00:16:14 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234489 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2016-03-25 Richard Henderson <rth@redhat.com>
law [Fri, 25 Mar 2016 23:37:13 +0000 (23:37 +0000)]
2016-03-25  Richard Henderson  <rth@redhat.com>

PR target/70120
* config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
* config/aarch64/aarch64-protos.h: Declare it.
* config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.

PR target/70120
* gcc.target/aarch64/pr70120-1.c: New.
* gcc.target/aarch64/pr70120-2.c: New.
* gcc.target/aarch64/pr70120-3.c: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234486 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR c++/64266
jason [Fri, 25 Mar 2016 21:29:26 +0000 (21:29 +0000)]
PR c++/64266
PR c++/70353
Core issue 1962
* decl.c (cp_fname_init): Decay the initializer to pointer.
(cp_make_fname_decl): Set DECL_DECLARED_CONSTEXPR_P,
DECL_VALUE_EXPR, DECL_INITIALIZED_BY_CONSTANT_EXPRESSION_P.
Don't call cp_finish_decl.
* pt.c (tsubst_expr) [DECL_EXPR]: Set DECL_VALUE_EXPR,
DECL_INITIALIZED_BY_CONSTANT_EXPRESSION_P.  Don't call cp_finish_decl.
* constexpr.c (cxx_eval_constant_expression) [VAR_DECL]:
Handle DECL_VALUE_EXPR.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234484 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoAdjust dg-do directive in mangle2.C
ppalka [Fri, 25 Mar 2016 18:21:44 +0000 (18:21 +0000)]
Adjust dg-do directive in mangle2.C

gcc/testsuite/ChangeLog:

PR c++/62212
* g++.dg/template/mangle2.C: The dg-do directive should be
"compile" not "assemble".

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234482 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR lto/69650
law [Fri, 25 Mar 2016 16:15:39 +0000 (16:15 +0000)]
PR lto/69650
* directives.c (do_linemarker): Test for file left but not entered
here.
* line-map.c (linemap_add): Not here.

PR lto/69650
* gcc.dg/pr69650.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234481 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago * g++.dg/ext/pr70290.C: Prune non-standard ABI.
dje [Fri, 25 Mar 2016 14:04:46 +0000 (14:04 +0000)]
    * g++.dg/ext/pr70290.C: Prune non-standard ABI.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234480 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago[RS6000] PR70052, ICE compiling _Decimal128 test case
amodra [Fri, 25 Mar 2016 09:10:03 +0000 (09:10 +0000)]
[RS6000] PR70052, ICE compiling _Decimal128 test case

gcc/
PR target/70052
* config/rs6000/constraints.md (j): Simplify.
* config/rs6000/predicates.md (easy_fp_constant): Exclude
decimal float 0.D.
* config/rs6000/rs6000.md (zero_fp): New mode_attr.
(mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
in all constraint alternatives.
(movtd_64bit_nodm): Delete "j" constraint alternative.
gcc/testsuite/
* gcc.dg/dfp/pr70052.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234479 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago * tree-ssa-propagate.c: Enhance docs for
aldyh [Fri, 25 Mar 2016 05:59:57 +0000 (05:59 +0000)]
* tree-ssa-propagate.c: Enhance docs for
SSA_PROP_NOT_INTERESTING.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234478 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago * doc/extend.texi: Fix typo in documentation to pure attribute.
aldyh [Fri, 25 Mar 2016 04:00:17 +0000 (04:00 +0000)]
* doc/extend.texi: Fix typo in documentation to pure attribute.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234477 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR target/70319
danglin [Fri, 25 Mar 2016 00:59:02 +0000 (00:59 +0000)]
PR target/70319
* config/pa/pa.md (bswapdi2): Use a scratch register.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234475 138bc75d-0d04-0410-961f-82ee72b054a4