[PATCH] Fix PR66552, Missed optimization when shift amount is result of signed modulus

2020-02-16 Thread Li Jia He
Hi, This patch wants to fix PR66552 on gimple and optimizes (x shift (n mod C)) to (x shift (n bit_and (C - 1))) when C is a constant and power of two as discussed in PR66552. The regression testing for the patch was done on GCC mainline on powerpc64le-unknown-linux-gnu (Power 9 LE) with

[committed] analyzer: fix ICEs in region_model::get_lvalue_1 [PR 93388]

2020-02-16 Thread David Malcolm
There have been various ICEs with -fanalyzer involving unhandled tree codes in region_model::get_lvalue_1; PR analyzer/93388 reports various others e.g. for IMAGPART_EXPR, REALPART_EXPR, and VIEW_CONVERT_EXPR seen when running the testsuite with -fanalyzer forcibly enabled. Whilst we could

[committed] analyzer: fix wording for assignment from NULL

2020-02-16 Thread David Malcolm
This patch improves the wording of the state-transition event (1) in the -Wanalyzer-null-dereference diagnostic for: void test (void) { int *p = NULL; *p = 1; } taking the path description from: ‘test’: events 1-2 | |5 | int *p = NULL; | |^ | |

[committed] analyzer: add diagnostics to output of -fdump-analyzer-exploded-graph

2020-02-16 Thread David Malcolm
Successfully bootstrapped & regrtested on x86_64-pc-linux-gnu. Pushed to master as 670987874d2aa043a454e112291931e32f4ca8cc. gcc/analyzer/ChangeLog: * diagnostic-manager.h (diagnostic_manager::get_saved_diagnostic): Add const overload. * engine.cc

Re: [PATCH V2] correct COUNT and PROB for unrolled loop

2020-02-16 Thread Jiufu Guo
Hi Honza and all, I updated the patch a little as below. Bootstrap and regtest are ok on powerpc64le. Is OK for trunk? Thanks for comments. Jiufu diff --git a/gcc/cfgloopmanip.c b/gcc/cfgloopmanip.c index 727e951..ded0046 100644 --- a/gcc/cfgloopmanip.c +++ b/gcc/cfgloopmanip.c @@ -31,6

Re: [PATCH] testsuite/strlenopt-81.c: Add target limitation.

2020-02-16 Thread Kito Cheng
> Unlike strlenopt-80.c which is a compile-time test that verifies > that the optimization successfully folds the strlen expressions, > strlenopt-81.c is a runtime test that verifies the optimization > isn't done when it might not be safe. It shouldn't fail anywhere, > whether or not the

Re: [RFC PATCH v0] PPC64: Implement POWER Architecure Vector Function ABI.

2020-02-16 Thread Segher Boessenkool
On Sat, Feb 15, 2020 at 05:22:09PM +, GT wrote: > > > Function rs6000_simd_clone_adjust, even though it's body is empty, > > > cannot simply be removed. I tried it. It resulted in ICE. In my > > > view, leaving it empty is preferable to modifying other files > > > unrelated to rs6000.c in

[committed] i386: Fix atan2l argument order [PR93743]

2020-02-16 Thread Uros Bizjak
i386: Fix atan2l argument order [PR93743] Bootstrapped and regression tested on x86_64-linux-gnu {,-m32}. 2020-02-16 Uroš Bizjak PR target/93743 * config/i386/i386.md (atan2xf3): Swap operands 1 and 2. (atan23): Update operand order in the call to gen_atan2xf3.

Re: [RFC PATCH v0] PPC64: Implement POWER Architecure Vector Function ABI.

2020-02-16 Thread GT
‐‐‐ Original Message ‐‐‐ On Friday, February 14, 2020 5:09 PM, Jakub Jelinek ja...@redhat.com wrote: > On Fri, Feb 14, 2020 at 10:02:39PM +, GT wrote: > > > > > Function rs6000_simd_clone_adjust, even though it's body is empty, > > > > cannot simply be removed. I tried it. It resulted

libgo patch committed: Install internal/reflectlite.gox

2020-02-16 Thread Ian Lance Taylor
This patch to libgo arranges to install internal/reflectlite.gox. This makes it possible to use gccgo to bootstrap Go 1.14. If we don't install this, gccgo can't compile the sort package, which expects to be able to import this internal package. This fixes GCC PR go/93679. Bootstrapped on

New Swedish PO file for 'cpplib' (version 10.1-b20200209)

2020-02-16 Thread Translation Project Robot
Hello, gentle maintainer. This is a message from the Translation Project robot. A revised PO file for textual domain 'cpplib' has been submitted by the Swedish team of translators. The file is available at: https://translationproject.org/latest/cpplib/sv.po (This file,

Contents of PO file 'cpplib-10.1-b20200209.sv.po'

2020-02-16 Thread Translation Project Robot
cpplib-10.1-b20200209.sv.po.gz Description: Binary data The Translation Project robot, in the name of your translation coordinator.