RE: [PATCH PR95199] vect: Remove extra variable created for memory reference

2020-06-14 Thread Richard Biener
On Sun, 14 Jun 2020, zhoukaipeng (A) wrote: > Hi, > > I modified the issue you mentioned. Bootstrap and tested on aarch64 Linux > platform again. No new regression witnessed. > > For "*vec_offset", it is indeed a point optimizable. However, it is not > able to eliminate it by the same way

Re: [PATCH 1/2] RISC-V: Describe correct USEs for gpr_save pattern [PR95252]

2020-06-14 Thread Kito Cheng
Hi Andreas: Thanks for your reminder, fixed on trunk: https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=82a3008e56c620008b4575a97e459e2769df54db On Sat, Jun 13, 2020 at 4:58 PM Andreas Schwab wrote: > > On Jun 10 2020, Kito Cheng wrote: > > > - Verified on rv32emc/rv32gc/rv64gc bare-metal target

[committed] RISC-V: Suppress warning for signed and unsigned integer comparison.

2020-06-14 Thread Kito Cheng
gcc/ChangeLog: * config/riscv/riscv.c (riscv_gen_gpr_save_insn): Change type to unsigned for i. (riscv_gpr_save_operation_p): Change type to unsigned for i and len. --- gcc/config/riscv/riscv.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

Ping: [PATCH V2] Add pattern for pointer-diff on addresses with same base/offset (PR 94234)

2020-06-14 Thread Feng Xue OS via Gcc-patches
Thanks, Feng From: Feng Xue OS Sent: Friday, June 5, 2020 5:20 PM To: Richard Biener; gcc-patches@gcc.gnu.org; Marc Glisse Subject: Re: [PATCH] Add pattern for pointer-diff on addresses with same base/offset (PR 94234) As Marc suggested, removed the new

[PATCH] libstdc++: Fix char_traits move with overlap

2020-06-14 Thread Paul Keir
Hi, Upon constexpr evaluation, char_traits move uses copy_backward, but its last argument should be to the range end rather than its beginning. I include the fix and a test. This is my first patch, so if it looks OK, perhaps someone could commit for me. Regards, Paul Please consider the en

[PATCH] gfortran: Improve translation of POPPAR intrinsic

2020-06-14 Thread Roger Sayle
The following patch to gfortran's trans-instrinsic.c tweaks the generic that is produced for popcnt on integer(kind=16). Currently, the double word popcnt is implemented as parityll(hipart(x))^parityll(lopart(x)), but with this patch this is now translated as parityll(hipart(x)^lopart(x)).

Re: [PATCH] avoid false positives due to compute_objsize (PR 95353)

2020-06-14 Thread Jeff Law via Gcc-patches
On Sat, 2020-06-13 at 17:49 -0600, Martin Sebor wrote: > On 6/13/20 3:50 PM, Sandra Loosemore wrote: > > On 6/2/20 6:12 PM, Martin Sebor via Gcc-patches wrote: > > > The compute_objsize() function started out as a thin wrapper around > > > compute_builtin_object_size(), but over time developed its

Re: [PATCH] Treat { 0 } specially for structs with the designated_init attribute.

2020-06-14 Thread Asher Gordon via Gcc-patches
Hello, Asher Gordon writes: > I also added a note after the warning showing where the field was > defined in the structure, like this: > > inform (DECL_SOURCE_LOCATION (info.field), > "in definition of %qT", constructor_type); > > However, I think it would be preferable to point to

[patch, Fortran, committed] Fix a crash with a developer's option

2020-06-14 Thread Thomas Koenig via Gcc-patches
Committed as obvious, simple and risk-free after checking that it still compiles. It does not fix the PR in question, it it just something that was noted in one of the comments. Regards Thomas Avoid crash when global symbol table is empty with -fdump-fortran-global. This just avoids a

Re: Ping [PATCH] PR fortran/95088 - Buffer overflows with PDTs, submodules and long symbols

2020-06-14 Thread Thomas Koenig via Gcc-patches
Hi Harald, Here's a fix for another buffer overflow which is triggered by one of Gerhard's (in)famous testsuite. Looking at the way symbols are generated, I decided to partly use a simple solution recommended by Jakub Jelinek. Regtested with no new failures on x86_64-pc-linux-gnu. OK for mast

Ping [PATCH] PR fortran/95088 - Buffer overflows with PDTs, submodules and long symbols

2020-06-14 Thread Harald Anlauf
> Here's a fix for another buffer overflow which is triggered by one of > Gerhard's (in)famous testsuite. Looking at the way symbols are generated, > I decided to partly use a simple solution recommended by Jakub Jelinek. > > Regtested with no new failures on x86_64-pc-linux-gnu. > > OK for master

[patch, fortran, committed] Fix PR 95037, NULL location in error message

2020-06-14 Thread Thomas Koenig via Gcc-patches
Hi, I just committed as obvious and simple the attached patch, as r11-1297-g4644e8f15f835a9934a8d289ee08ba4cb46cbfac . Regards Thomas Always use locations from get and put arguments for error messages. A simple and obvios patch - the error location was taken from a variable that was n

[patch, fortran] PR 27318, warn if interfaces do not match

2020-06-14 Thread Thomas Koenig via Gcc-patches
Hello world, this patch solves an PR which just had its 14th birthday, continuing the mission of alerting the user to mismatches where possible. Regression-tested (which led to a few of the extra checks for errors). OK for trunk? Regards Thomas Test global identifiers against what is

[committed] d: Fix line lengths after mechanical field renames.

2020-06-14 Thread Iain Buclaw via Gcc-patches
Hi, This patch adjusts a few overflowed lines after the recent refactorings done in the upstream front-end that caused renames of many fields - in this case, dim -> length. Bootstrapped and regression tested on x86_64-linux-gnu, and committed to mainline. Regards Iain. gcc/d/ChangeLog:

[committed][GCC10/11] testsuite: Re-add gdc.test prefix in test names (PR testsuite/95575)

2020-06-14 Thread Iain Buclaw via Gcc-patches
Hi, When moving the gdc-test.exp test script into multiple test scripts (c76df72f1a9), this subdir handling got removed. This patch re-adds that, adjusted to handle the new $subdir path. Regression tested on x86_64-linux-gnu, committed to mainline, and backported to releases/gcc-10. Regards Iai

RE: [PATCH PR95199] vect: Remove extra variable created for memory reference

2020-06-14 Thread zhoukaipeng (A)
Hi, I modified the issue you mentioned. Bootstrap and tested on aarch64 Linux platform again. No new regression witnessed. For "*vec_offset", it is indeed a point optimizable. However, it is not able to eliminate it by the same way as "*dataref_bump". The cse_and_gimplify_to_preheader wil