[PATCH] Fix latent PHI-opt bug

2014-10-21 Thread Richard Biener
This fixes a miscompile that can happen when PHI-opt is entered with a not cleaned up CFG and we have a always true/false condition like if (a_1 != a_1) or if (0 != 0) in this case the check guarding /* If the middle basic block was empty or is defining the PHI arguments and

Re: [GOOGLE] Increase max-early-inliner-iterations to 2 for profile-gen and use

2014-10-21 Thread Richard Biener
On Mon, Oct 20, 2014 at 5:53 PM, Xinliang David Li davi...@google.com wrote: On Mon, Oct 20, 2014 at 1:32 AM, Richard Biener richard.guent...@gmail.com wrote: On Mon, Oct 20, 2014 at 12:02 AM, Xinliang David Li davi...@google.com wrote: On Sat, Oct 18, 2014 at 4:19 PM, Xinliang David Li

Re: [patch] Second basic-block.h restructuring patch.

2014-10-21 Thread Richard Biener
On Mon, Oct 20, 2014 at 8:21 PM, Andrew MacLeod amacl...@redhat.com wrote: creates cfg.h, cfganal.h, lcm.h, and loop-unroll.h to house the prototypes for those .c files. cfganal.h also gets struct edge_list and class control_dependences definitions since that is where all the routines and

Re: [PATCH 6/8] Handle SCRATCH in decompose_address

2014-10-21 Thread Richard Sandiford
Maxim Kuvyrkov maxim.kuvyr...@linaro.org writes: This patch is a simple fix to allow decompose_address to handle SCRATCH'es during 2nd scheduler pass. This patch is a prerequisite for a scheduler improvement that relies on decompose_address to parse insns. Bootstrapped and regtested on

Re: [PATCH PR63530] Fix the pointer alignment in vectorization

2014-10-21 Thread Richard Biener
On Mon, Oct 20, 2014 at 10:10 PM, Carrot Wei car...@google.com wrote: Hi Richard An arm testcase that can reproduce this bug is attached. 2014-10-20 Guozhi Wei car...@google.com PR tree-optimization/63530 gcc.target/arm/pr63530.c: New testcase. Index: pr63530.c

Re: [PATCH 8/8] Use rank_for_schedule to as tie-breaker in model_order_p

2014-10-21 Thread Richard Sandiford
Maxim Kuvyrkov maxim.kuvyr...@linaro.org writes: This patch improves model_order_p to use non-reg-pressure version of rank_for_schedule when it needs to break the tie. At the moment it is comparing INSN_PRIORITY by itself, and it seems prudent to outsource that to rank_for_schedule. Do you

Re: [PATCH, PR63307] Fix generation of new declarations in random order

2014-10-21 Thread Jakub Jelinek
On Thu, Oct 16, 2014 at 11:06:34AM -0600, Jeff Law wrote: We really prefer fully specified sorts. For a qsort callback, this doesn't look fully specified. With that fixed, this should be OK. jeff Thanks for the review. Here is the updated version. Is it ok? Yes, this is good for

Re: The nvptx port [0/11+]

2014-10-21 Thread Richard Biener
On Mon, Oct 20, 2014 at 4:17 PM, Bernd Schmidt ber...@codesourcery.com wrote: This is a patch kit that adds the nvptx port to gcc. It contains preliminary patches to add needed functionality, the target files, and one somewhat optional patch with additional target tools. There'll be more patch

RE: [PATCH, PR63307] Fix generation of new declarations in random order

2014-10-21 Thread Zamyatin, Igor
For some reasons it passed bootstrap locally... -Original Message- From: Jakub Jelinek [mailto:ja...@redhat.com] Sent: Tuesday, October 21, 2014 12:15 PM To: Zamyatin, Igor; Jeff Law Cc: GCC Patches (gcc-patches@gcc.gnu.org) Subject: Re: [PATCH, PR63307] Fix generation of new

Re: [PATCH, PR63307] Fix generation of new declarations in random order

2014-10-21 Thread Jakub Jelinek
On Tue, Oct 21, 2014 at 10:14:56AM +0200, Jakub Jelinek wrote: I've bootstrapped/regtested on i686-linux the following quick fix, bootstrapped on x86_64-linux too, in the middle of regtesting there. If it succeeds, I'll commit as obvious, so that people can continue working on the trunk. Ah,

Re: The nvptx port [0/11+]

2014-10-21 Thread Jakub Jelinek
On Mon, Oct 20, 2014 at 04:17:56PM +0200, Bernd Schmidt wrote: * Can't emit initializers referring to their variable's address since you can't write forward declarations for variables. Can't that be handled by emitting the initializer without the address and some constructor that fixes up

Re: [PATCH i386 AVX512] [81/n] Add new built-ins.

2014-10-21 Thread Richard Biener
On Mon, Oct 20, 2014 at 3:50 PM, Jakub Jelinek ja...@redhat.com wrote: On Mon, Oct 20, 2014 at 05:41:25PM +0400, Kirill Yukhin wrote: Hello, This patch adds (almost) all built-ins needed by AVX-512VL,BW,DQ intrinsics. Main questionable hunk is: diff --git a/gcc/tree-core.h

[1/2][PATCH,ARM]Generate UAL assembly code for Thumb-1 target

2014-10-21 Thread Terry Guo
Hi There, This is the first patch to enable GCC generate UAL assembly code for Thumb1 target. This new option enables user to specify which syntax is used in their inline assembly code. If the inline assembly code uses UAL format, then gcc does nothing because gcc generates UAL code as well. If

RE: [PATCH] Fix PR63266: Keep track of impact of sign extension in bswap

2014-10-21 Thread Thomas Preud'homme
Hi Richard, I realized thanks to Christophe Lyon that a shift was not right: the shift count is a number of bytes instead of a number of bits. This extra patch fixes the problem. ChangeLog are as follows: *** gcc/ChangeLog *** 2014-09-26 Thomas Preud'homme thomas.preudho...@arm.com

[PATCH, fixincludes]: Add pthread.h to glibc_c99_inline_4 fix

2014-10-21 Thread Uros Bizjak
On Thu, Oct 16, 2014 at 2:05 PM, Jakub Jelinek ja...@redhat.com wrote: Recent change caused bootstrap failure on CentOS 5.11: /usr/bin/ld: Dwarf Error: found dwarf version '4', this reader only handles version 2 information. unwind-dw2-fde-dip_s.o: In function

Re: [PATCH, fixincludes]: Add pthread.h to glibc_c99_inline_4 fix

2014-10-21 Thread Jakub Jelinek
On Tue, Oct 21, 2014 at 11:30:49AM +0200, Uros Bizjak wrote: At the end of the day, adding pthread.h to glibc_c99_inline_4 fix fixes the bootstrap. The fix applies __attribute__((__gnu_inline__)) to the declaration: extern __inline __attribute__ ((__gnu_inline__)) void

Re: [PATCH/AARCH64] Add ThunderX -mcpu support

2014-10-21 Thread Marcus Shawcroft
On 20 October 2014 21:45, Andrew Pinski apin...@cavium.com wrote: Hi, This adds simple -mcpu=thunderx support. Right now we use the schedule model of cortex-a53 but we will submit a schedule model for ThunderX later on. Note ThunderX is an AARCH64 only processor so I created a new file to

[PATCH] Add arm_cortex_m7_tune.

2014-10-21 Thread Hale Wang
Hi, This patch is used to tune the gcc for Cortex-M7. The performance of Dhrystone can be improved by 1%. The performance of Coremark can be improved by 2.3%. Patch also attached for convenience. Is it ok for trunk? Thanks and Best Regards, Hale Wang gcc/ChangeLog 2014-10-11 Hale Wang

[PATCH] Don't put conditional loads/stores into interleaved chains (PR tree-optimization/63563)

2014-10-21 Thread Jakub Jelinek
Hi! This patch prevents conditional loads/stores to be added into interleaved groups (where it ICEs later on). Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk/4.9? 2014-10-21 Jakub Jelinek ja...@redhat.com PR tree-optimization/63563 * tree-vect-data-refs.c

RE: [PATCH] Add arm_cortex_m7_tune.

2014-10-21 Thread Hale Wang
Attach the patch. -Original Message- From: gcc-patches-ow...@gcc.gnu.org [mailto:gcc-patches- ow...@gcc.gnu.org] On Behalf Of Hale Wang Sent: Tuesday, October 21, 2014 5:49 PM To: gcc-patches@gcc.gnu.org Subject: [PATCH] Add arm_cortex_m7_tune. Hi, This patch is used to tune

Small multiplier support in Cortex-M0/1/+

2014-10-21 Thread Hale Wang
Hi, Some configurations of the Cortex-M0 and Cortex-M1 come with a high latency multiplier. This patch adds support for such configurations. Small multiplier means using add/sub/shift instructions to replace the mul instruction for the MCU that has no fast multiplier. The following strategies

Re: [PATCHv4][Kasan] Allow to override Asan shadow offset from command line

2014-10-21 Thread Yury Gribov
On 10/17/2014 04:32 PM, Ian Lance Taylor wrote: Jakub Jelinek ja...@redhat.com writes: Not sure if there aren't extra steps to make strtoull prototype available in system.h, libiberty.h etc. for systems that don't have strtoull in their headers. See the #if defined(HAVE_DECL_XXX)

Re: [Patch, libstdc++/63497] Avoid dereferencing invalid iterator in regex_executor

2014-10-21 Thread Jonathan Wakely
On 20/10/14 10:23 -0700, Tim Shen wrote: Bootstrapped and tested. Did you manage to produce a testcase that crashed on trunk? @@ -407,25 +409,28 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION templatetypename _BiIter, typename _Alloc, typename _TraitsT, bool __dfs_mode bool

Re: The nvptx port [0/11+]

2014-10-21 Thread Bernd Schmidt
On 10/21/2014 10:18 AM, Richard Biener wrote: So with this restriction I wonder why it didn't make sense to go the HSA backend route emitting PTX from a GIMPLE SSA pass. This would have avoided the LTO dance as well ... Quite simple - there isn't an established way to do this. If I'd known

Re: The nvptx port [0/11+]

2014-10-21 Thread Bernd Schmidt
On 10/21/2014 10:42 AM, Jakub Jelinek wrote: On Mon, Oct 20, 2014 at 04:17:56PM +0200, Bernd Schmidt wrote: * Can't emit initializers referring to their variable's address since you can't write forward declarations for variables. Can't that be handled by emitting the initializer without

[2/2][PATCH,ARM]Generate UAL assembly code for Thumb-1 target

2014-10-21 Thread Terry Guo
Hi there, Attached patch intends to enable GCC generate UAL format code for Thumb1 target. Tested with regression test and no regressions. Is it OK to trunk? BR, Terry 2014-10-21 Terry Guo terry@arm.com * config/arm/arm.c (arm_output_mi_thunk): Use UAL for Thumb1 target.

Re: [PATCH] Don't put conditional loads/stores into interleaved chains (PR tree-optimization/63563)

2014-10-21 Thread Richard Biener
On Tue, 21 Oct 2014, Jakub Jelinek wrote: Hi! This patch prevents conditional loads/stores to be added into interleaved groups (where it ICEs later on). Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk/4.9? Ok. Thanks, Richard. 2014-10-21 Jakub Jelinek

Re: The nvptx port [0/11+]

2014-10-21 Thread Richard Biener
On Tue, Oct 21, 2014 at 12:53 PM, Bernd Schmidt ber...@codesourcery.com wrote: On 10/21/2014 10:18 AM, Richard Biener wrote: So with this restriction I wonder why it didn't make sense to go the HSA backend route emitting PTX from a GIMPLE SSA pass. This would have avoided the LTO dance as

Re: [PATCH] Fix PR63266: Keep track of impact of sign extension in bswap

2014-10-21 Thread Richard Biener
On Tue, Oct 21, 2014 at 11:28 AM, Thomas Preud'homme thomas.preudho...@arm.com wrote: Hi Richard, I realized thanks to Christophe Lyon that a shift was not right: the shift count is a number of bytes instead of a number of bits. This extra patch fixes the problem. Ok. Thanks, Richard.

[C++ Patch] Add default arguments to cp_parser_unary_expression

2014-10-21 Thread Paolo Carlini
Hi, another patchlet along the lines of the other I proposed over the last weeks: this one should be really uncontroversial, because turns out that in all but one case we are passing all NULL / false arguments. Tested x86_64-linux. Thanks, Paolo. /

Re: [C++ Patch] Add default arguments to cp_parser_unary_expression

2014-10-21 Thread Paolo Carlini
... the patch. Paolo. // 2014-10-21 Paolo Carlini paolo.carl...@oracle.com * parser.c (cp_parser_unary_expression): Add default arguments. (cp_parser_cast_expression, cp_parser_sizeof_operand, cp_parser_omp_atomic): Adjust. Index: parser.c

Re: [PATCH,1/2] Extended if-conversion for loops marked with pragma omp simd.

2014-10-21 Thread Yuri Rumyantsev
Richard, I did some changes in patch and ChangeLog to mark that support for if-convert of blocks with only critical incoming edges will be added in the future (more precise in patch.4). Could you please review it. Thanks. ChangeLog: 2014-10-21 Yuri Rumyantsev ysrum...@gmail.com

[PATCH] Fix obvious errors in IPA devirt and tree-prof testcases

2014-10-21 Thread Richard Biener
They still FAIL though: FAIL: g++.dg/tree-prof/pr35545.C execution: file pr35545.gcda does not exist, -fprofile-generate -D_PROFILE_GENERATE FAIL: g++.dg/ipa/devirt-42.C -std=gnu++98 scan-tree-dump-times optimized return 2 2 FAIL: g++.dg/ipa/devirt-42.C -std=gnu++11 scan-tree-dump-times

Re: [PATCH,1/2] Extended if-conversion for loops marked with pragma omp simd.

2014-10-21 Thread Richard Biener
On Tue, Oct 21, 2014 at 2:25 PM, Yuri Rumyantsev ysrum...@gmail.com wrote: Richard, I did some changes in patch and ChangeLog to mark that support for if-convert of blocks with only critical incoming edges will be added in the future (more precise in patch.4). But the same reasoning applies

gnu11 fallout

2014-10-21 Thread Andreas Schwab
Tested on m68k-suse-linux, installed as obvious. Andreas. * gcc.dg/bf-spl1.c (main): Fix implicit int. diff --git a/gcc/testsuite/gcc.dg/bf-spl1.c b/gcc/testsuite/gcc.dg/bf-spl1.c index b28130d..1cba005 100644 --- a/gcc/testsuite/gcc.dg/bf-spl1.c +++ b/gcc/testsuite/gcc.dg/bf-spl1.c @@

[Patch ARM-AArch64/testsuite v3 00/21] Neon intrinsics executable tests

2014-10-21 Thread Christophe Lyon
This patch series is an updated version of the series I sent here: https://gcc.gnu.org/ml/gcc-patches/2014-07/msg00022.html I addressed comments from Marcus and Richard, and decided to skip support for half-precision variants for the time being. I'll post dedicated patches later. Compared to v2:

[Patch ARM-AArch64/testsuite v3 02/21] Add unary operators: vabs and vneg.

2014-10-21 Thread Christophe Lyon
2014-10-21 Christophe Lyon christophe.l...@linaro.org * gcc.target/aarch64/advsimd-intrinsics/unary_op.inc: New file. * gcc.target/aarch64/advsimd-intrinsics/vabs.c: Likewise. * gcc.target/aarch64/advsimd-intrinsics/vneg.c: Likewise. diff --git

[Patch ARM-AArch64/testsuite v3 01/21] Advanced SIMD (Neon) intrinsics execution tests initial framework. vaba, vld1 and vshl tests.

2014-10-21 Thread Christophe Lyon
* documentation (README) * dejanu driver (advsimd-intrinsics.exp) * support macros (arm-neon-ref.h, compute-ref-data.h) * Tests for 3 intrinsics: vaba, vld1, vshl 2014-10-21 Christophe Lyon christophe.l...@linaro.org * gcc.target/arm/README.advsimd-intrinsics: New file. *

[Patch ARM-AArch64/testsuite v3 03/21] Add binary operators: vadd, vand, vbic, veor, vorn, vorr, vsub.

2014-10-21 Thread Christophe Lyon
2014-10-21 Christophe Lyon christophe.l...@linaro.org * gcc.target/aarch64/advsimd-intrinsics/binary_op.inc: New file. * gcc.target/aarch64/advsimd-intrinsics/vadd.c: Likewise. * gcc.target/aarch64/advsimd-intrinsics/vand.c: Likewise. *

[Patch ARM-AArch64/testsuite v3 05/21] Add comparison operators with floating-point operands: vcage, vcagt, vcale and cvalt.

2014-10-21 Thread Christophe Lyon
2014-10-21 Christophe Lyon christophe.l...@linaro.org * gcc.target/aarch64/advsimd-intrinsics/cmp_fp_op.inc: New file. * gcc.target/aarch64/advsimd-intrinsics/vcage.c: Likewise. * gcc.target/aarch64/advsimd-intrinsics/vcagt.c: Likewise. *

[Patch ARM-AArch64/testsuite v3 06/21] Add unary saturating operators: vqabs and vqneg.

2014-10-21 Thread Christophe Lyon
2014-10-21 Christophe Lyon christophe.l...@linaro.org * gcc.target/aarch64/advsimd-intrinsics/unary_sat_op.inc: New file. * gcc.target/aarch64/advsimd-intrinsics/vqabs.c: Likewise. * gcc.target/aarch64/advsimd-intrinsics/vqneg.c: Likewise. diff --git

[Patch ARM-AArch64/testsuite v3 08/21] Add vabal tests.

2014-10-21 Thread Christophe Lyon
2014-10-21 Christophe Lyon christophe.l...@linaro.org * gcc.target/aarch64/advsimd-intrinsics/vabal.c: New file. diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vabal.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vabal.c new file mode 100644 index

[Patch ARM-AArch64/testsuite v3 04/21] Add comparison operators: vceq, vcge, vcgt, vcle and vclt.

2014-10-21 Thread Christophe Lyon
2014-10-21 Christophe Lyon christophe.l...@linaro.org * gcc.target/aarch64/advsimd-intrinsics/cmp_op.inc: New file. * gcc.target/aarch64/advsimd-intrinsics/vceq.c: Likewise. * gcc.target/aarch64/advsimd-intrinsics/vcge.c: Likewise. *

[Patch ARM-AArch64/testsuite v3 07/21] Add binary saturating operators: vqadd, vqsub.

2014-10-21 Thread Christophe Lyon
2014-10-21 Christophe Lyon christophe.l...@linaro.org * gcc.target/aarch64/advsimd-intrinsics/binary_sat_op.inc: New file. * gcc.target/aarch64/advsimd-intrinsics/vqadd.c: Likewise. * gcc.target/aarch64/advsimd-intrinsics/vqsub.c: Likewise. diff --git

[Patch ARM-AArch64/testsuite v3 10/21] Add vabdl tests.

2014-10-21 Thread Christophe Lyon
2014-10-21 Christophe Lyon christophe.l...@linaro.org * gcc.target/aarch64/advsimd-intrinsics/vabdl.c: New file. diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vabdl.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vabdl.c new file mode 100644 index

[Patch ARM-AArch64/testsuite v3 16/21] Add vdup and vmov tests.

2014-10-21 Thread Christophe Lyon
2014-10-21 Christophe Lyon christophe.l...@linaro.org * gcc.target/aarch64/advsimd-intrinsics/vdup-vmov.c: New file. diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vdup-vmov.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vdup-vmov.c new file mode 100644

[Patch ARM-AArch64/testsuite v3 12/21] Add vaddl tests.

2014-10-21 Thread Christophe Lyon
2014-10-21 Christophe Lyon christophe.l...@linaro.org * gcc.target/aarch64/advsimd-intrinsics/vaddl.c: New file. diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vaddl.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vaddl.c new file mode 100644 index

[Patch ARM-AArch64/testsuite v3 13/21] Add vaddw tests.

2014-10-21 Thread Christophe Lyon
2014-10-21 Christophe Lyon christophe.l...@linaro.org * gcc.target/aarch64/advsimd-intrinsics/vaddw.c: New file. diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vaddw.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vaddw.c new file mode 100644 index

[Patch ARM-AArch64/testsuite v3 19/21] Add vld2_lane, vld3_lane and vld4_lane tests.

2014-10-21 Thread Christophe Lyon
2014-10-21 Christophe Lyon christophe.l...@linaro.org * gcc.target/aarch64/advsimd-intrinsics/vldX_lane.c: New file. diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vldX_lane.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vldX_lane.c new file mode 100644

[Patch ARM-AArch64/testsuite v3 14/21] Add vbsl tests.

2014-10-21 Thread Christophe Lyon
2014-10-21 Christophe Lyon christophe.l...@linaro.org * gcc.target/aarch64/advsimd-intrinsics/vbsl.c: New file. diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vbsl.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vbsl.c new file mode 100644 index

[Patch ARM-AArch64/testsuite v3 17/21] Add vld1_dup tests.

2014-10-21 Thread Christophe Lyon
2014-10-21 Christophe Lyon christophe.l...@linaro.org * gcc.target/aarch64/advsimd-intrinsics/vld1_dup.c: New file. diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vld1_dup.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vld1_dup.c new file mode 100644 index

[Patch ARM-AArch64/testsuite v3 20/21] Add vmul tests.

2014-10-21 Thread Christophe Lyon
2014-10-21 Christophe Lyon christophe.l...@linaro.org * gcc.target/aarch64/advsimd-intrinsics/vmul.c: New file. diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vmul.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vmul.c new file mode 100644 index

[Patch ARM-AArch64/testsuite v3 15/21] Add vclz tests.

2014-10-21 Thread Christophe Lyon
2014-10-21 Christophe Lyon christophe.l...@linaro.org * gcc.target/aarch64/advsimd-intrinsics/vclz.c: New file. diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vclz.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vclz.c new file mode 100644 index

[Patch ARM-AArch64/testsuite v3 18/21] Add vld2/vld3/vld4 tests.

2014-10-21 Thread Christophe Lyon
2014-10-21 Christophe Lyon christophe.l...@linaro.org * gcc.target/aarch64/advsimd-intrinsics/vldX.c: New file. diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vldX.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vldX.c new file mode 100644 index

[Patch ARM-AArch64/testsuite v3 21/21] Add vuzp and vzip tests.

2014-10-21 Thread Christophe Lyon
2014-10-21 Christophe Lyon christophe.l...@linaro.org * gcc.target/aarch64/advsimd-intrinsics/vuzp.c: New file. * gcc.target/aarch64/advsimd-intrinsics/vzip.c: Likewise. diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vuzp.c

[Patch ARM-AArch64/testsuite v3 11/21] Add vaddhn tests.

2014-10-21 Thread Christophe Lyon
2014-10-21 Christophe Lyon christophe.l...@linaro.org * gcc.target/aarch64/advsimd-intrinsics/vaddhn.c: New file. diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vaddhn.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vaddhn.c new file mode 100644 index

[Patch ARM-AArch64/testsuite v3 09/21] Add vabd tests.

2014-10-21 Thread Christophe Lyon
2014-10-21 Christophe Lyon christophe.l...@linaro.org * gcc.target/aarch64/advsimd-intrinsics/vabd.c: New file. diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vabd.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vabd.c new file mode 100644 index

Re: [libstdc++ PATCH] More Fundamentals v1 variable templates

2014-10-21 Thread Jonathan Wakely
On 21/10/14 07:19 +0300, Ville Voutilainen wrote: No, no, no! Contributors must be punished, otherwise they will never learn! ;) Revised patch attached. Thanks, committed to trunk. diff --git a/libstdc++-v3/include/Makefile.am b/libstdc++-v3/include/Makefile.am index 1ee8ddc..c797246 100644

Re: [PATCH,1/2] Extended if-conversion for loops marked with pragma omp simd.

2014-10-21 Thread Yuri Rumyantsev
Richard, Yes, This patch does not make sense since phi node predication for bb with critical incoming edges only performs another function which is absent (predicate_extended_scalar_phi). BTW I see that commit_edge_insertions() is used for rtx instructions only but you propose to use it for tree

[PATCHv2] Don't expand string/memory builtins if ASan is enabled.

2014-10-21 Thread Maxim Ostapenko
Hi, this is the second version of the patch. Here the major changes from the previous one: 1) Added a new intercepted_p parameter in get_mem_refs_of_builtin_call to decide whether builtin function should/shouldn't be instrumented. 2) Changed instrument_mem_region_access function. Now, we

Re: [PATCH,1/2] Extended if-conversion for loops marked with pragma omp simd.

2014-10-21 Thread Richard Biener
On Tue, Oct 21, 2014 at 3:20 PM, Yuri Rumyantsev ysrum...@gmail.com wrote: Richard, Yes, This patch does not make sense since phi node predication for bb with critical incoming edges only performs another function which is absent (predicate_extended_scalar_phi). BTW I see that

Re: Add polymorphic call context propagation to ipa-prop

2014-10-21 Thread Martin Jambor
Hi, On Thu, Oct 02, 2014 at 09:00:12AM +0200, Jan Hubicka wrote: Hi, this patch makes ipa-prop to use ipa-polymorphic-call-context infrastructure for forward propagation (in a very minimal and simple way). At the moment only static type info is propagated and it is used only

[PATCH][ARM] Update target testcases for gnu11

2014-10-21 Thread Jiong Wang
this patch update arm testcases for recently gnu11 change. ok for trunk? thanks. gcc/testsuite/ * gcc.target/arm/20031108-1.c: Add explicit declaration. * gcc.target/arm/cold-lc.c: Likewise. * gcc.target/arm/neon-modes-2.c: Likewise. * gcc.target/arm/pr43920-2.c: Likewise. *

[PATCH][AArch64]Update target testcases for gnu11

2014-10-21 Thread Jiong Wang
Update testcases for recent gnu11 changes. ok for trunk? thanks. gcc/testsuite/ * gcc.target/aarch64/pic-constantpool1.c: Add explicit declaration. * gcc.target/aarch64/pic-symrefplus.c: Likewise. * gcc.target/aarch64/reload-valid-spoff.c: Likewise. * gcc.target/aarch64/vect.x:

Re: [PATCH,1/2] Extended if-conversion for loops marked with pragma omp simd.

2014-10-21 Thread Yuri Rumyantsev
Richard, I saw the sources of these functions, but I can't understand why I should use something else? Note that all predicate computations are located in basic blocks ( by design of if-conv) and there is special function that put these computations in bb (insert_gimplified_predicates). Edge

[PATCH][match-and-simplify] Re-factor code in fold_stmt_1

2014-10-21 Thread Richard Biener
This refactors the code I added to fold_stmt to dispatch to pattern-based folding to avoid long lines and make error handling easier (no goto). It also uses the newly introduced gimple_seq_discard to properly discard an unused simplification result. Bootstrapped on x86_64-unknown-linux-gnu,

Re: [C++ Patch] Add default arguments to cp_parser_unary_expression

2014-10-21 Thread Jason Merrill
OK. Jason

[PATCH][dejagnu] gcc-dg-prune glitch when filtering relocation truncation error

2014-10-21 Thread Jiong Wang
On 19/08/14 17:30, Mike Stump wrote: On Aug 19, 2014, at 6:12 AM, Kyrill Tkachov kyrylo.tkac...@arm.com wrote: So how about this? Ok. Thanks. looks like this patch only fixed one invoke path. currently, gcc-dg-prune may be invoked directly *or* via ${tool}_check_compile: and

Re: [PATCH,1/2] Extended if-conversion for loops marked with pragma omp simd.

2014-10-21 Thread Richard Biener
On Tue, Oct 21, 2014 at 3:58 PM, Yuri Rumyantsev ysrum...@gmail.com wrote: Richard, I saw the sources of these functions, but I can't understand why I should use something else? Note that all predicate computations are located in basic blocks ( by design of if-conv) and there is special

[0/6] nvptx testsuite patches

2014-10-21 Thread Bernd Schmidt
This series modifies a large number of tests in order to clean up testsuite results on nvptx. The goal here was never really to get an entirely clean run - the target is just too different from conventional ones - but to be able to test the compiler sufficiently to be sure that it's in good

[1/6] nvptx testsuite patches: alloca

2014-10-21 Thread Bernd Schmidt
This deals with uses of alloca in the testsuite. Some tests require it outright, others only at -O0, and others require it implicitly by requiring an alignment for stack variables bigger than the target's STACK_BOUNDARY. For the latter I've added explicit xfails. Bernd gcc/testsuite/ *

[2/6] nvptx testsuite patches: typed assembly

2014-10-21 Thread Bernd Schmidt
Since everything in ptx assembly is typed, KR C is problematic. There are a number of testcases that call functions with the wrong number of arguments, or arguments of the wrong type. I've added a new feature, untyped_assembly, which these tests now require. I've also used this for tests using

Re: [PATCH][ARM] Update target testcases for gnu11

2014-10-21 Thread Ramana Radhakrishnan
On 21/10/14 14:48, Jiong Wang wrote: this patch update arm testcases for recently gnu11 change. ok for trunk? This is OK bar the minor nit in the ChangeLog below - as a follow up it would be nice to see if we can use the ACLE feature macros instead of hard-coding some of the functions

[3/6] nvptx testsuite patches: stdio

2014-10-21 Thread Bernd Schmidt
Some tests use stdio functions which are unavaiable with the cut-down newlib I'm using for ptx testing. I'm somewhat uncertain what to do with these; they are by no means the only unavailable library functions the testsuite tries to use (signal is another example). Here's a patch which deals

Re: [PATCH i386 AVX512] [81/n] Add new built-ins.

2014-10-21 Thread Kirill Yukhin
Hello, On 21 Oct 11:17, Richard Biener wrote: On Mon, Oct 20, 2014 at 3:50 PM, Jakub Jelinek ja...@redhat.com wrote: On Mon, Oct 20, 2014 at 05:41:25PM +0400, Kirill Yukhin wrote: Hello, This patch adds (almost) all built-ins needed by AVX-512VL,BW,DQ intrinsics. Main questionable

Re: [PATCH,1/2] Extended if-conversion for loops marked with pragma omp simd.

2014-10-21 Thread Richard Biener
On Tue, Oct 21, 2014 at 4:09 PM, Richard Biener richard.guent...@gmail.com wrote: On Tue, Oct 21, 2014 at 3:58 PM, Yuri Rumyantsev ysrum...@gmail.com wrote: Richard, I saw the sources of these functions, but I can't understand why I should use something else? Note that all predicate

Re: [PATCH i386 AVX512] [81/n] Add new built-ins.

2014-10-21 Thread Jakub Jelinek
On Tue, Oct 21, 2014 at 06:08:15PM +0400, Kirill Yukhin wrote: --- a/gcc/tree.h +++ b/gcc/tree.h @@ -2334,6 +2334,10 @@ extern void decl_value_expr_insert (tree, tree); #define DECL_COMDAT(NODE) \ (DECL_WITH_VIS_CHECK (NODE)-decl_with_vis.comdat_flag) + /* In a FUNCTION_DECL indicates

[4/6] nvptx testsuite patches: xfails and skips

2014-10-21 Thread Bernd Schmidt
Some things don't fit into nice categories that apply to a larger set of tests, or which are somewhat random like ptxas tool failures. For these I've added xfails and skips. Bernd gcc/testsuite/ * lib/target-supports.exp (check_effective_target_trampolines, check_profiling_available,

[5/6] nvptx testsuite patches: jumps and labels

2014-10-21 Thread Bernd Schmidt
This deals with tests requiring indirect jumps (including tests using setjmp), label values, and nonlocal goto. A subset of these tests uses the NO_LABEL_VALUES macro, but it's not consistent across the testsuite. The feature test I wrote tests whether that is defined and returns false for

[6/7] Random tweaks

2014-10-21 Thread Bernd Schmidt
This tweaks a few tests so that we don't have to skip them. This is mostly concerned with declaring main properly, or changing other declarations where the test does not seem to rely on the type mismatches. I've also included one example of changing a function name to not be call, ptxas

[7/7] nvptx testsuite patches: Return addresses

2014-10-21 Thread Bernd Schmidt
This tests for availability of return addresses in a number of tests. Bernd gcc/testsuite/ * lib/target-supports.exp (check_effective_target_return_address): New function. * gcc.c-torture/execute/20010122-1.c: Require return_address. * gcc.c-torture/execute/20030323-1.c: Likewise. *

Re: [PATCH,1/2] Extended if-conversion for loops marked with pragma omp simd.

2014-10-21 Thread Yuri Rumyantsev
Richard, In my initial design I did such splitting but before start real if-conversion but I decided to not perform it since code size for if-converted loop is growing (number of phi nodes is increased). It is worth noting also that for phi with #nodes 2 we need to get all predicates (except

Re: [PATCH][ARM]Add ACLE 2.0 predefined marco __ARM_FEATURE_IDIV

2014-10-21 Thread Ramana Radhakrishnan
On Mon, Oct 13, 2014 at 3:15 PM, Renlin Li renlin...@arm.com wrote: Hi all, This is a simple patch to add missing __ARM_FEATURE_IDIV__ predefined marco(ACLE 2.0) into TARGET_CPU_CPP_BUILTINS. Is it Okay to commit? gcc/ChangeLog: 2014-10-13 Renlin Li renlin...@arm.com *

Re: [0/6] nvptx testsuite patches

2014-10-21 Thread Jeff Law
On 10/21/14 14:10, Bernd Schmidt wrote: This series modifies a large number of tests in order to clean up testsuite results on nvptx. The goal here was never really to get an entirely clean run - the target is just too different from conventional ones - but to be able to test the compiler

Re: [PATCH i386 AVX512] [81/n] Add new built-ins.

2014-10-21 Thread Kirill Yukhin
On 21 Oct 16:20, Jakub Jelinek wrote: On Tue, Oct 21, 2014 at 06:08:15PM +0400, Kirill Yukhin wrote: --- a/gcc/tree.h +++ b/gcc/tree.h @@ -2334,6 +2334,10 @@ extern void decl_value_expr_insert (tree, tree); #define DECL_COMDAT(NODE) \ (DECL_WITH_VIS_CHECK

[COMMITTED][PATCH][ARM] Update target testcases for gnu11

2014-10-21 Thread Jiong Wang
On 21/10/14 15:13, Ramana Radhakrishnan wrote: On 21/10/14 14:48, Jiong Wang wrote: this patch update arm testcases for recently gnu11 change. ok for trunk? This is OK bar the minor nit in the ChangeLog below - as a follow up it would be nice to see if we can use the ACLE feature macros

Re: [PATCH] microblaze: microblaze.md: Use 'SI' instead of 'VOID' for operand 1 of 'call_value_intern'

2014-10-21 Thread Chen Gang
On 09/25/2014 08:12 AM, Chen Gang wrote: OK, thanks, next month, I shall try Qemu for microblaze (I also focus on Qemu, and try to make patches for it). Excuse me, after tried upstream qemu, it cann't run microblaze correctly, even for Xilinx qemu branch, I cann't run correctly either. I

Re: [PATCH 1/5] Add recog_constrain_insn

2014-10-21 Thread Vladimir Makarov
On 10/17/2014 10:47 AM, Richard Sandiford wrote: This patch just adds a new utility function called recog_constrain_insn, to go alongside the existing recog_constrain_insn_cached. Note that the extract_insn in lra.c wasn't used when checking is disabled. The function just moved on to the next

Re: [PATCH] Add zero-overhead looping for xtensa backend

2014-10-21 Thread augustine.sterl...@gmail.com
On Wed, Oct 15, 2014 at 7:10 PM, Yangfei (Felix) felix.y...@huawei.com wrote: Hi Sterling, Since the patch is delayed for a long time, I'm kind of pushing it. Sorry for that. Yeah, you are right. We have some performance issue here as GCC may use one more general register in some

Re: [PATCH 2/5] Add preferred_for_{size,speed} attributes

2014-10-21 Thread Vladimir Makarov
On 10/17/2014 10:48 AM, Richard Sandiford wrote: This is the main patch, to add new preferred_for_size and preferred_for_speed attributes that can be used to selectively disable alternatives when optimising for size or speed. As explained in the docs, the new attributes are just optimisation

Re: [PATCH 4/5] Remove recog_data.enabled_alternatives

2014-10-21 Thread Vladimir Makarov
On 10/17/2014 10:52 AM, Richard Sandiford wrote: After the previous patches, this one gets rid of recog_data.enabled_alternatives and its one remaining use. Ok for me, too. Pretty obvious patch although I have no power to approve it all.

Re: [PATCH 5/5] Use preferred_for_speed in i386.md

2014-10-21 Thread Vladimir Makarov
On 10/17/2014 10:54 AM, Richard Sandiford wrote: Undo the original fix for 61630 and use preferred_for_speed in the problematic pattern. I've not written many gcc.target/i386 tests so the markup might need some work. Final lra.c change is ok for me too. gcc/ * lra.c (lra): Remove

Re: [PATCH i386 AVX512] [81/n] Add new built-ins.

2014-10-21 Thread Kirill Yukhin
On 21 Oct 18:47, Kirill Yukhin wrote: On 21 Oct 16:20, Jakub Jelinek wrote: On Tue, Oct 21, 2014 at 06:08:15PM +0400, Kirill Yukhin wrote: --- a/gcc/tree.h +++ b/gcc/tree.h @@ -2334,6 +2334,10 @@ extern void decl_value_expr_insert (tree, tree); #define DECL_COMDAT(NODE) \

Re: [1/6] nvptx testsuite patches: alloca

2014-10-21 Thread Jeff Law
On 10/21/14 14:12, Bernd Schmidt wrote: This deals with uses of alloca in the testsuite. Some tests require it outright, others only at -O0, and others require it implicitly by requiring an alignment for stack variables bigger than the target's STACK_BOUNDARY. For the latter I've added explicit

Re: [2/6] nvptx testsuite patches: typed assembly

2014-10-21 Thread Jeff Law
On 10/21/14 14:15, Bernd Schmidt wrote: Since everything in ptx assembly is typed, KR C is problematic. There are a number of testcases that call functions with the wrong number of arguments, or arguments of the wrong type. I've added a new feature, untyped_assembly, which these tests now

Re: [3/6] nvptx testsuite patches: stdio

2014-10-21 Thread Jeff Law
On 10/21/14 14:17, Bernd Schmidt wrote: Some tests use stdio functions which are unavaiable with the cut-down newlib I'm using for ptx testing. I'm somewhat uncertain what to do with these; they are by no means the only unavailable library functions the testsuite tries to use (signal is another

[PATCHv5][PING^2] Vimrc config with GNU formatting

2014-10-21 Thread Yury Gribov
On 10/13/2014 02:26 PM, Yury Gribov wrote: On 10/02/2014 09:14 PM, Yury Gribov wrote: On 09/17/2014 09:08 PM, Yury Gribov wrote: On 09/16/2014 08:38 PM, Yury Gribov wrote: Hi all, This is the third version of the patch. A list of changes since last version: * move config to contrib

Re: [PATCH] Account for prologue spills in reg_pressure scheduling

2014-10-21 Thread Vladimir Makarov
On 10/20/2014 02:57 AM, Maxim Kuvyrkov wrote: Hi, This patch improves register pressure scheduling (both SCHED_PRESSURE_WEIGHTED and SCHED_PRESSURE_MODEL) to better estimate number of available registers. At the moment the scheduler does not account for spills in the prologues and

Re: [4/6] nvptx testsuite patches: xfails and skips

2014-10-21 Thread Jeff Law
On 10/21/14 14:19, Bernd Schmidt wrote: Some things don't fit into nice categories that apply to a larger set of tests, or which are somewhat random like ptxas tool failures. For these I've added xfails and skips. Bernd ts-xfails.diff gcc/testsuite/ * lib/target-supports.exp

Re: [5/6] nvptx testsuite patches: jumps and labels

2014-10-21 Thread Jeff Law
On 10/21/14 14:23, Bernd Schmidt wrote: This deals with tests requiring indirect jumps (including tests using setjmp), label values, and nonlocal goto. A subset of these tests uses the NO_LABEL_VALUES macro, but it's not consistent across the testsuite. The feature test I wrote tests whether

  1   2   >