Re: [PATCH, rs6000] PR71800, use correct constraint for stxsiwx

2016-07-07 Thread Segher Boessenkool
Hi Pat, On Thu, Jul 07, 2016 at 03:42:55PM -0500, Pat Haugen wrote: > The following patch corrects the constraint so that we only generate > 'stxsiwx' on Power8 or later hardware. Ok for trunk after successful > bootstrap/regtest? I don't really understand this. Before, it required

Re: [PATCH, rs6000] Fix PR71297 (ICE on invalid calls to vec_ld and vec_st)

2016-07-07 Thread Segher Boessenkool
On Thu, Jul 07, 2016 at 03:40:28PM -0500, Bill Schmidt wrote: > > PR71297 reports that we ICE when __builtin_vec_ld or __builtin_vec_st is > > provided with an incorrect number of arguments. This patch fixes it by > > bypassing special handling for these intrinsics when the number of > >

[patch, fortran] Bug 71764 - [4.9/5/6/7 Regression] ICE in gfc_trans_structure_assign

2016-07-07 Thread Jerry DeLisle
This trivial patch removes the problem. As far as I can tell, looking at -fdump-tree-original, the results are correct. Regression tested on x86-64. I will add a test case from the PR. I plan to commit to trunk and then backport after about a week if no problems show up. Regards, Jerry

Re: [PATCH] rs6000: Make the ctr* patterns allow ints in vector regs (PR71763)

2016-07-07 Thread Alan Modra
On Fri, Jul 08, 2016 at 01:28:05AM +0930, Alan Modra wrote: > BTW, both pr70098 and pr71763 are triggered by combine, not > loop-doloop as I was thinking earlier. See rtl dumps for the > testcases. I doubt the "optimization" done by combine here is worth > keeping, since loop-doloop.c ought to

[patch] Fix DWARF type output for non-default address spaces

2016-07-07 Thread James Bowman
FT32 makes use of multiple address spaces. When trying to inspect objects in GDB, GDB was treating them as a straight "const". The cause seems to be in GCC DWARF2 output. This output is handled in gcc/gcc/dwarf2out.c, where modified_type_die() checks that TYPE has qualifiers CV_QUALS. However

Backports to 4.9.4

2016-07-07 Thread Jakub Jelinek
Hi! I've bootstrapped/regtested on x86_64-linux and i686-linux and committed following backports from gcc-5-branch and trunk to gcc-4_9-branch: Jakub 2016-07-07 Jakub Jelinek Backported from mainline 2014-12-12 Richard Biener

Re: Importing gnulib into the gcc tree

2016-07-07 Thread Manuel López-Ibáñez
On 7 July 2016 at 13:48, ayush goel wrote: > In order to show the setup works, I’ve replaced libiberty’s version by > obstack by gnulib’s. This was made possible by replacing the corresponding > header file and then including gnulib headers and gnulib static library in

[PATCH, rs6000] PR71800, use correct constraint for stxsiwx

2016-07-07 Thread Pat Haugen
The following patch corrects the constraint so that we only generate 'stxsiwx' on Power8 or later hardware. Ok for trunk after successful bootstrap/regtest? -Pat 2016-07-07 Pat Haugen PR target/71800 * config/rs6000/rs6000.md (stfiwx): Change constraint

Re: [PATCH, rs6000] Fix PR71297 (ICE on invalid calls to vec_ld and vec_st)

2016-07-07 Thread Bill Schmidt
Resending since I thinkoed Segher's email address. Sorry for the noise. Bill On Thu, 2016-07-07 at 14:11 -0500, Bill Schmidt wrote: > Hi, > > PR71297 reports that we ICE when __builtin_vec_ld or __builtin_vec_st is > provided with an incorrect number of arguments. This patch fixes it by >

Re: [PATCH] doc fix for c/71560 - union compound literal initializes wrong union field

2016-07-07 Thread Martin Sebor
On 07/03/2016 05:22 PM, Sandra Loosemore wrote: On 07/01/2016 05:56 PM, Martin Sebor wrote: The bug points out a couple of conformance problems in the GCC manual where is discusses compound literals and casts to unions and says that a compound literal is equivalent to a cast. It isn't because

Re: [PATCH] [ARC] Various small miscellaneous fixes.

2016-07-07 Thread Andrew Burgess
* Claudiu Zissulescu [2016-06-30 12:36:10 +0200]: > Small patches batch. > > Ok to apply? > Claudiu > > gcc/ > 2016-05-09 Claudiu Zissulescu > > * config/arc/arc.c (arc_process_double_reg_moves): Change. > *

Re: RFA (gimplify): PATCH to implement C++ order of evaluation paper

2016-07-07 Thread Jason Merrill
On Tue, Jun 28, 2016 at 10:00 AM, Richard Biener wrote: > On Thu, Jun 16, 2016 at 6:15 PM, Jakub Jelinek wrote: >> On Thu, Jun 16, 2016 at 11:28:48AM -0400, Jason Merrill wrote: >>> gimple_predicate >>> rhs_predicate_for (tree lhs) >>> { >>> - if

[PATCH, rs6000] Fix PR71297 (ICE on invalid calls to vec_ld and vec_st)

2016-07-07 Thread Bill Schmidt
Hi, PR71297 reports that we ICE when __builtin_vec_ld or __builtin_vec_st is provided with an incorrect number of arguments. This patch fixes it by bypassing special handling for these intrinsics when the number of arguments is wrong, thus allowing the standard error handling for builtins to

Re: [C++ PATCH] Fix ICE with PTRMEM_CST (PR c++/70869)

2016-07-07 Thread Jason Merrill
On Thu, Jul 7, 2016 at 2:23 PM, Jakub Jelinek wrote: > On Thu, Jul 07, 2016 at 12:32:02PM -0400, Jason Merrill wrote: >> Hmm, I wonder if walk_tree_1 should walk into DECL_EXPR like it does into >> BIND_EXPR_VARS. But your patch is OK. > > Well, walk_tree_1 does walk into

Re: [C++ PATCH] Fix ICE with PTRMEM_CST (PR c++/70869)

2016-07-07 Thread Jakub Jelinek
On Thu, Jul 07, 2016 at 12:32:02PM -0400, Jason Merrill wrote: > Hmm, I wonder if walk_tree_1 should walk into DECL_EXPR like it does into > BIND_EXPR_VARS. But your patch is OK. Well, walk_tree_1 does walk into DECL_EXPR, but cp_genericize_r says *walk_subtrees on the VAR_DECL inside of it.

rs6000: Fix gcc.target/powerpc/ti_math1.c on GCC 5 (PR69019)

2016-07-07 Thread Segher Boessenkool
Hi all, This testcase currently fails on GCC 5, for LE only. Since it is fixed for 6 and later, and backporting the relevant code is rather invasive, let's just weaken the testcase for GCC 5 instead. Segher 2016-07-07 Segher Boessenkool PR target/69019

[PATCH] Update libstdc++ status docs

2016-07-07 Thread Jonathan Wakely
Committed to trunk. * doc/xml/manual/status_cxx2014.xml: Update LFTS status table. * doc/html/*: Regenerate. (PMR support is only partial as we don't provide the two concrete memory resource types). commit 2b73ef0f620d5130a1afca4bf2ed43a35210ce29 Author: Jonathan Wakely

Re: [C++ PATCH] Fix ICE with PTRMEM_CST (PR c++/70869)

2016-07-07 Thread Jason Merrill
On Thu, Jul 7, 2016 at 12:32 PM, Jason Merrill wrote: > Hmm, I wonder if walk_tree_1 should walk into DECL_EXPR like it does into > BIND_EXPR_VARS. But your patch is OK. > > Jason > > > On Fri, Jul 1, 2016 at 11:23 AM, Jakub Jelinek wrote: >> >> Hi! >> >> As

Re: [RFC] Convert TYPE_ALIGN_OK into an TYPE_LANG_FLAG

2016-07-07 Thread Bernd Edlinger
On 07/07/16 17:40, Jeff Law wrote: > On 07/07/2016 08:53 AM, Bernd Edlinger wrote: >> Hi, >> >> this patch re-factors the TYPE_ALIGN_OK into a new TYPE_LANG_FLAG, >> and removes one of the 9 parameters of get_inner_reference. It therefore >> simplifies the middle end slightly. >> >> It is quite a

[AArch64][4/14] ARMv8.2-A FP16 three operands vector intrinsics

2016-07-07 Thread Jiong Wang
This patch add ARMv8.2-A FP16 three operands vector intrinsics. Three operands intrinsics only contain fma and fms. 2016-07-07 Jiong Wang gcc/ * config/aarch64/aarch64-simd-builtins.def: Register new builtins. * config/aarch64/aarch64-simd.md (fma4):

Re: [PATCH][vectorizer][2/2] Hook up mult synthesis logic into vectorisation of mult-by-constant

2016-07-07 Thread Kyrill Tkachov
On 06/07/16 13:40, Kyrill Tkachov wrote: On 06/07/16 13:31, Rainer Orth wrote: Hi Kyrill, On 05/07/16 12:24, Rainer Orth wrote: Marc Glisse writes: On Tue, 5 Jul 2016, Kyrill Tkachov wrote: As for testing I've bootstrapped and tested the patch on aarch64 and

[AArch64][7/14] ARMv8.2-A FP16 one operand scalar intrinsics

2016-07-07 Thread Jiong Wang
This patch add ARMv8.2-A FP16 one operand scalar intrinsics Scalar intrinsics are kept in arm_fp16.h instead of arm_neon.h. gcc/ 2016-07-07 Jiong Wang * config.gcc (aarch64*-*-*): Install arm_fp16.h. * config/aarch64/aarch64-builtins.c (hi_UP): New.

[AArch64][5/14] ARMv8.2-A FP16 lane vector intrinsics

2016-07-07 Thread Jiong Wang
This patch add ARMv8.2-A FP16 lane vector intrinsics. Lane intrinsics are generally derivatives of multiply intrinsics, including multiply accumulate. All necessary backend support for them are there already except fmulx, the implementions are largely a combination of existed multiply

[AArch64][2/14] ARMv8.2-A FP16 one operand vector intrinsics

2016-07-07 Thread Jiong Wang
This patch add ARMv8.2-A FP16 one operand vector intrinsics. We introduced new mode iterators to cover HF modes, qualified patterns which was using old mode iterators are switched to new ones. We can't simply extend old iterator like VDQF to conver HF modes, because not all patterns using VDQF

[AArch64][3/14] ARMv8.2-A FP16 two operands vector intrinsics

2016-07-07 Thread Jiong Wang
This patch add ARMv8.2-A FP16 two operands vector intrinsics. gcc/ 2016-07-07 Jiong Wang * config/aarch64/aarch64-simd-builtins.def: Register new builtins. * config/aarch64/aarch64-simd.md (aarch64_rsqrts): Extend to HF modes. (fabd3):

[AArch64][14/14] ARMv8.2-A testsuite for new scalar intrinsics

2016-07-07 Thread Jiong Wang
This patch contains testcases for those new scalar intrinsics which are only available for AArch64. gcc/testsuite/ 2016-07-07 Jiong Wang * gcc.target/aarch64/advsimd-intrinsics/unary_scalar_op.inc: Support FMT64. *

[AArch64][13/14] ARMv8.2-A testsuite for new vector intrinsics

2016-07-07 Thread Jiong Wang
This patch contains testcases for those new vector intrinsics which are only available for AArch64. gcc/testsuite/ 2016-07-07 Jiong Wang * gcc.target/aarch64/advsimd-intrinsics/vdiv_f16_1.c: New. * gcc.target/aarch64/advsimd-intrinsics/vfmas_lane_f16_1.c:

[AArch64][12/14] ARMv8.2-A testsuite for new data movement intrinsics

2016-07-07 Thread Jiong Wang
This patch contains testcases for those new scalar intrinsics which are only available for AArch64. gcc/testsuite/ 2016-07-07 Jiong Wang * gcc.target/aarch64/advsimd-intrinsics/arm-neon-ref.h (FP16_SUPPORTED): Enable AArch64. *

[AArch64][11/14] ARMv8.2-A FP16 testsuite selector

2016-07-07 Thread Jiong Wang
ARMv8.2-A adds support for scalar and vector FP16 instructions to ARM and AArch64. This patch adds support for testing code for AArch64 targets using the new instructions. It is based on the target-support code for ARMv8.2-A added for ARM (AArch32). The patch - Updates effective-target

[AArch64][10/14] ARMv8.2-A FP16 lane scalar intrinsics

2016-07-07 Thread Jiong Wang
This patch adds ARMv8.2-A FP16 lane scalar intrinsics. gcc/ 2016-07-07 Jiong Wang * config/aarch64/arm_neon.h (vfmah_lane_f16): New. (vfmah_laneq_f16): Likewise. (vfmsh_lane_f16): Likewise. (vfmsh_laneq_f16): Likewise.

[AArch64][9/14] ARMv8.2-A FP16 three operands scalar intrinsics

2016-07-07 Thread Jiong Wang
This patch add ARMv8.2-A FP16 three operands scalar intrinsics. gcc/ 2016-07-07 Jiong Wang * config/aarch64/aarch64-simd-builtins.def: Register new builtins. * config/aarch64/aarch64.md (fma): New for HF. (fnma): Likewise. *

[AArch64][8/14] ARMv8.2-A FP16 two operands scalar intrinsics

2016-07-07 Thread Jiong Wang
This patch add ARMv8.2-A FP16 two operands scalar intrinsics. 2016-07-07 Jiong Wang gcc/ * config/aarch64/aarch64-simd-builtins.def: Register new builtins. * config/aarch64/aarch64.md (hf3): New. (hf3): Likewise. (add3): Likewise.

[AArch64][6/14] ARMv8.2-A FP16 reduction vector intrinsics

2016-07-07 Thread Jiong Wang
This patch add ARMv8.2-A FP16 reduction vector intrinsics. gcc/ 2016-07-07 Jiong Wang * config/aarch64/arm_neon.h (vmaxv_f16): New. (vmaxvq_f16): Likewise. (vminv_f16): Likewise. (vminvq_f16): Likewise. (vmaxnmv_f16): Likewise.

[AArch64][1/14] ARMv8.2-A FP16 data processing intrinsics

2016-07-07 Thread Jiong Wang
Several data-processing instructions are agnostic to the type of their operands. This patch add the mapping between them and those bit- and lane-manipulation instructions. No ARMv8.2-A FP16 extension hardware support is required for these intrinsics. gcc/ 2016-07-07 Jiong Wang

[AArch64][0/14] ARMv8.2-A FP16 extension support

2016-07-07 Thread Jiong Wang
Hello, As a follow up of https://gcc.gnu.org/ml/gcc-patches/2016-05/msg01240.html, This patch set adds ARMv8.2-A FP16 scalar and vector intrinsics support, gcc middle-end will also be aware of some standard operations that some instructions can be auto-generated. According to ACLE, ARMv8.2-A

Re: [PATCH 0/7] remove targets obsoleted in gcc 6

2016-07-07 Thread Matthias Klose
On 20.06.2016 10:30, Trevor Saunders wrote: > On Mon, Jun 20, 2016 at 09:25:17AM +0100, Kyrill Tkachov wrote: >> Hi Trev, >> >> On 20/06/16 06:47, tbsaunde+...@tbsaunde.org wrote: >>> From: Trevor Saunders >>> >>> Hi, >>> >>> later than I hoped, but here's the series to

Re: [PATCH] rs6000: Make the ctr* patterns allow ints in vector regs (PR71763)

2016-07-07 Thread Alan Modra
On Thu, Jul 07, 2016 at 02:58:17AM +, Segher Boessenkool wrote: > Similar to PR70098, which is about integers in floating point registers, > we can have the completely analogous problem with vector registers as well > now that we allow integers in vector registers. So, this patch solves it >

Re: [PATCH 2/2] Optimize fortran loops with +-1 step.

2016-07-07 Thread Tobias Burnus
On Thu, Jul 07, 2016 at 02:13:12PM +0200, Tobias Burnus wrote: > marxin wrote: > > gcc/fortran/ChangeLog: > > > > 2016-07-01 Martin Liska > > * lang.opt (Wundefined-do-loop): New option. > >* resolve.c (gfc_resolve_iterator): Warn for Wundefined-do-loop. > >

Re: [RFC] Convert TYPE_ALIGN_OK into an TYPE_LANG_FLAG

2016-07-07 Thread Jeff Law
On 07/07/2016 08:53 AM, Bernd Edlinger wrote: Hi, this patch re-factors the TYPE_ALIGN_OK into a new TYPE_LANG_FLAG, and removes one of the 9 parameters of get_inner_reference. It therefore simplifies the middle end slightly. It is quite a while ago, when I last proposed a similar patch,

[RFC] Convert TYPE_ALIGN_OK into an TYPE_LANG_FLAG

2016-07-07 Thread Bernd Edlinger
Hi, this patch re-factors the TYPE_ALIGN_OK into a new TYPE_LANG_FLAG, and removes one of the 9 parameters of get_inner_reference. It therefore simplifies the middle end slightly. It is quite a while ago, when I last proposed a similar patch, which focused only on get_inner_referene. According

Re: [PATCH 0/2, fortran] Better code generation for DO loops with +-1 step

2016-07-07 Thread Jan Hubicka
> > Why is the behavior only undefined for step 1 if the last iteration IV > increment overflows? > Doesn't this apply to all step values? This is what Fortran standard says: The iteration count is established and is the value of the expression (m2-m1+m3)/m3 unless that value is negative,

Re: [AArch64] Fix simd intrinsics bug on float vminnm/vmaxnm

2016-07-07 Thread Jiong Wang
On 07/07/16 15:13, Christophe Lyon wrote: On 7 July 2016 at 14:54, Jiong Wang wrote: On 07/07/16 12:36, Christophe Lyon wrote: On 7 July 2016 at 11:16, Jiong Wang wrote: I was using dg-xfail-if, (the description is still using "marked as

PING Re:[PATCH] PR 71667 - Handle live operations with DEBUG uses

2016-07-07 Thread Alan Hayward
Ping. From: Alan Hayward To: "gcc-patches at gcc dot gnu dot org" Date: Wed, 29 Jun 2016 08:49:34 +0100 Subject: [PATCH] PR 71667 - Handle live operations with DEBUG uses Authentication-results: sourceware.org; auth=none In vectorizable_live_operation() we always assume uses a of live

Re: [PATCH, ARM 5/7] Add support for MOVT/MOVW to ARMv8-M Baseline

2016-07-07 Thread Thomas Preudhomme
Hi Kyrill, Please find an updated version in attachment. Please note I made quite a few other changes as well. The most important one was to add new ARMv8-M Baseline only alternatives to the two movt insns in order to have non predicable output template for ARMv8-M Baseline. I also inverted

Re: [PATCH] Do not emit SAVE_EXPR for already assigned SSA_NAMEs (PR71606).

2016-07-07 Thread Richard Biener
On Thu, Jul 7, 2016 at 4:01 PM, Martin Liška wrote: > On 07/01/2016 12:15 PM, Richard Biener wrote: >> IMHO using fold-convert in this case is bogus and ideally the testcase >> should have been diagnosed. >> >> fold_convertible_p has a comment >> >> /* Returns true, if ARG is

Re: [AArch64] Fix simd intrinsics bug on float vminnm/vmaxnm

2016-07-07 Thread Christophe Lyon
On 7 July 2016 at 14:54, Jiong Wang wrote: > > > On 07/07/16 12:36, Christophe Lyon wrote: >> >> On 7 July 2016 at 11:16, Jiong Wang wrote: >>> >>> >>> I was using dg-xfail-if, (the description is still using "marked as >>> XFAIL"...), >>> but

Re: [PATCH] Do not emit SAVE_EXPR for already assigned SSA_NAMEs (PR71606).

2016-07-07 Thread Martin Liška
On 07/01/2016 12:15 PM, Richard Biener wrote: > IMHO using fold-convert in this case is bogus and ideally the testcase > should have been diagnosed. > > fold_convertible_p has a comment > > /* Returns true, if ARG is convertible to TYPE using a NOP_EXPR. * > > but clearly it isn't generating

Re: [PATCH 0/2, fortran] Better code generation for DO loops with +-1 step

2016-07-07 Thread Richard Biener
On Thu, Jul 7, 2016 at 11:32 AM, marxin wrote: > Hello. > > As discussed in [1], I would like to change code emission from: > > D.3428 = (*array)[0]; > D.3429 = (*array)[1]; > i = D.3428; > if (i <= D.3429) > { > while (1) > { >

[Ada] Clarify the semantics of -gnatn switch

2016-07-07 Thread Arnaud Charlet
This change is aimed at clarifying the semantics of the -gnatn switch, both in the code and in the documentation. In particular, it makes it explicit that -gnatn only pertains to inter-unit inlining (inlining across modules) and has no effect on intra-unit inlining (inlining within a given

[Ada] Spurious errors on inherited class-wide preconditions

2016-07-07 Thread Arnaud Charlet
This patch fixes some spurious errors arising when class-wide preconditions in an generic instance are overridden in a child instance. The following must compile quietly: gcc -c r.ads --- generic package P is type T1 is abstract tagged private; procedure P1 (This : in out T1) with

Backports to 5.5

2016-07-07 Thread Jakub Jelinek
Hi! I've bootstrapped/regtested on x86_64-linux and i686-linux following 18 trunk/6.x commits and committed them to gcc-5-branch. Jakub 2016-07-07 Jakub Jelinek Backported from mainline 2016-02-02 Segher Boessenkool

Re: [AArch64] Fix simd intrinsics bug on float vminnm/vmaxnm

2016-07-07 Thread Jiong Wang
On 07/07/16 12:36, Christophe Lyon wrote: On 7 July 2016 at 11:16, Jiong Wang wrote: I was using dg-xfail-if, (the description is still using "marked as XFAIL"...), but later found it's actually broken under advsimd-intrinsics, UNRESOLVEDs are given at the same time

Re: Importing gnulib into the gcc tree

2016-07-07 Thread ayush goel
Hey,  As a first step of my GSOC project (https://gcc.gnu.org/wiki/replacelibibertywithgnulib) I have imported the gnulib library inside the gcc tree. I have created gnulib as a top level directory which contains the necessary scripts to import the modules. It also contains the necessary

Re: [PATCH][ARM] -mpure-code option for ARM

2016-07-07 Thread mickael guene
Hi Andre, Another feedback on your purecode patch. You have to disable casesi pattern since then it will generate wrong code with -mpure-code option. Indeed it will generate an 'adr rx, .Lx' (aka 'subs rx, PC, #offset') which will not work in our case since 'Lx' label is put in an .rodata

Re: [PATCH][ARM] -mpure-code option for ARM

2016-07-07 Thread mickael guene
Hi Andre, I think you have a typo in your patch. I need to change : +text_section->unnamed.data = "\t.section .text,\"0x2006\",%%progbits"; into +text_section->unnamed.data = "\t.section .text,\"0x2006\",%progbits"; to make it works. Regards Mickael On 06/30/2016 04:32

Re: [PATCH 1/2] Add PRED_FORTRAN_LOOP_PREHEADER to DO loops with step bigger than +-1.

2016-07-07 Thread Tobias Burnus
marxin wrote: > gcc/fortran/ChangeLog: > 2016-07-01 Martin Liska > > * trans-stmt.c (gfc_trans_do): Add expect builtin for DO > loops with step bigger than +-1. > > gcc/testsuite/ChangeLog: > 2016-07-01 Martin Liska > > *

Re: [PATCH 2/2] Optimize fortran loops with +-1 step.

2016-07-07 Thread Tobias Burnus
marxin wrote: > gcc/fortran/ChangeLog: > > 2016-07-01 Martin Liska > * lang.opt (Wundefined-do-loop): New option. >* resolve.c (gfc_resolve_iterator): Warn for Wundefined-do-loop. > (gfc_trans_simple_do): Generate a c-style loop. > (gfc_trans_do): Fix

Re: [PATCH v2] Allocate constant size dynamic stack space in the prologue

2016-07-07 Thread Dominik Vogt
On Wed, Jul 06, 2016 at 02:01:06PM +0200, Bernd Schmidt wrote: > There's one thing I don't quite understand and which seems to have > changed since v1: > > On 07/04/2016 02:19 PM, Dominik Vogt wrote: > >@@ -1099,8 +1101,10 @@ expand_stack_vars (bool (*pred) (size_t), struct > >stack_vars_data

Re: [AArch64] Fix simd intrinsics bug on float vminnm/vmaxnm

2016-07-07 Thread Christophe Lyon
On 7 July 2016 at 11:16, Jiong Wang wrote: > On 06/07/16 16:55, Christophe Lyon wrote: >> >> On 6 July 2016 at 17:44, Kyrill Tkachov >> wrote: >>> >>> Hi all, >>> >>> >>> On 06/07/16 16:29, James Greenhalgh wrote: On Wed, Jul 06,

Re: [AArch64] Fix simd intrinsics bug on float vminnm/vmaxnm

2016-07-07 Thread Christophe Lyon
On 7 July 2016 at 11:16, Jiong Wang wrote: > On 06/07/16 16:55, Christophe Lyon wrote: >> >> On 6 July 2016 at 17:44, Kyrill Tkachov >> wrote: >>> >>> Hi all, >>> >>> >>> On 06/07/16 16:29, James Greenhalgh wrote: On Wed, Jul 06,

Re: [PATCH 0/9] remove some manual memory management

2016-07-07 Thread Eric Botcazou
> I'm still a little suprised people actually read ChangeLogs, but anyway ChangeLogs are a very effective mean of knowing whether changes were intended or instead made by mistake for example. > I doubt people want to be spammed with a bunch more email just for some > changes to ChangeLogs so

Re: PING x2 Re: [PATCH 0/9] separate shrink-wrapping

2016-07-07 Thread Segher Boessenkool
Ping. On Mon, Jun 27, 2016 at 06:51:01PM -0500, Segher Boessenkool wrote: > Ping. > > On Wed, Jun 08, 2016 at 01:47:31AM +, Segher Boessenkool wrote: > > This patch series introduces separate shrink-wrapping. > > > > There are many things the prologue/epilogue of a function do, and most of

[v3 PATCH] Implement std::optional.

2016-07-07 Thread Ville Voutilainen
Tested on Linux-x64. 2016-07-07 Ville Voutilainen Implement std::optional. * include/Makefile.am: Add optional to exported headers. * include/Makefile.in: Likewise. * include/std/optional: New. * testsuite/20_util/optional/typedefs.cc:

[PATCH 0/2, fortran] Better code generation for DO loops with +-1 step

2016-07-07 Thread marxin
Hello. As discussed in [1], I would like to change code emission from: D.3428 = (*array)[0]; D.3429 = (*array)[1]; i = D.3428; if (i <= D.3429) { while (1) { { logical(kind=4) D.3432; (*block)[(integer(kind=8)) i +

[PATCH 2/2] Optimize fortran loops with +-1 step.

2016-07-07 Thread marxin
gcc/testsuite/ChangeLog: 2016-07-01 Martin Liska * gfortran.dg/do_1.f90: Remove a corner case that triggers an undefined behavior. * gfortran.dg/do_3.F90: Likewise. * gfortran.dg/do_check_11.f90: New test. * gfortran.dg/do_check_12.f90:

[PATCH 1/2] Add PRED_FORTRAN_LOOP_PREHEADER to DO loops with step bigger than +-1.

2016-07-07 Thread marxin
gcc/fortran/ChangeLog: 2016-07-01 Martin Liska * trans-stmt.c (gfc_trans_do): Add expect builtin for DO loops with step bigger than +-1. gcc/testsuite/ChangeLog: 2016-07-01 Martin Liska * gfortran.dg/predict-1.f90: Ammend the test.

Re: [AArch64] Fix simd intrinsics bug on float vminnm/vmaxnm

2016-07-07 Thread James Greenhalgh
On Thu, Jul 07, 2016 at 10:16:31AM +0100, Jiong Wang wrote: > I was using dg-xfail-if, (the description is still using "marked as > XFAIL"...), > but later found it's actually broken under advsimd-intrinsics, > UNRESOLVEDs are > given at the same time instead of clean XFAIL, I suspect those

Re: [AArch64] Fix simd intrinsics bug on float vminnm/vmaxnm

2016-07-07 Thread Jiong Wang
On 06/07/16 16:55, Christophe Lyon wrote: On 6 July 2016 at 17:44, Kyrill Tkachov wrote: Hi all, On 06/07/16 16:29, James Greenhalgh wrote: On Wed, Jul 06, 2016 at 02:11:51PM +0100, Jiong Wang wrote: The current vmaxnm/vminnm float intrinsics are implemented

Re: [PATCH, ARM 4/7, ping1] Factor out MOVW/MOVT availability and desirability checks

2016-07-07 Thread Thomas Preudhomme
On Friday 20 May 2016 13:41:30 Kyrill Tkachov wrote: > Hi Thomas, > > On 19/05/16 17:10, Thomas Preudhomme wrote: > > On Wednesday 18 May 2016 11:47:47 Kyrill Tkachov wrote: > >> Hi Thomas, > > > > Hi Kyrill, > > > > Please find below the updated patch and associated ChangeLog entry. > > > >

Re: [PATCH, ARM 2/7, ping1] Add support for ARMv8-M

2016-07-07 Thread Thomas Preudhomme
On Wednesday 25 May 2016 14:32:54 Kyrill Tkachov wrote: > Hi Thomas, > > On 25/05/16 14:26, Thomas Preudhomme wrote: > > On Thursday 19 May 2016 17:59:26 Kyrill Tkachov wrote: > >> Hi Thomas, > > > > Hi Kyrill, > > > > Please find an updated patch in attachment. ChangeLog entries are now as > >

[PATCH] Fix PRE insertion wrt alignment/aliasing

2016-07-07 Thread Richard Biener
This finally tries to solve the issue that PRE uses the VN tables and their expression representation for insertion. While for VN things like alignment and aliasing do not matter it is quite important to insert expressions that are compatible with the original one which means not blindly take