[r12-2649 Regression] FAIL: gcc.target/i386/pr78103-2.c scan-assembler \\m(leal|addl)\\M on Linux/x86_64

2021-07-31 Thread sunil.k.pandey via Gcc-patches
On Linux/x86_64, 91425e2adecd00091d7443104ecb367686e88663 is the first bad commit commit 91425e2adecd00091d7443104ecb367686e88663 Author: Jakub Jelinek Date: Sat Jul 31 09:19:32 2021 +0200 i386: Improve extensions of __builtin_clz and constant - __builtin_clz for -mno-lzcnt [PR78103]

Re: [PATCH] i386: Improve extensions of __builtin_clz and constant - __builtin_clz for -mno-lzcnt [PR78103]

2021-07-31 Thread H.J. Lu via Gcc-patches
On Fri, Jul 30, 2021 at 6:27 AM Jakub Jelinek via Gcc-patches wrote: > > On Fri, Jul 30, 2021 at 12:27:39PM +0200, Uros Bizjak wrote: > > Please put some space here, e.g.: > ... > > Can you just name the relevant insn pattern and use > > > > emit_insn (gen_bsr_1)? > > Here is the updated patch.

Re: [PATCH] i386: Improve extensions of __builtin_clz and constant - __builtin_clz for -mno-lzcnt [PR78103]

2021-07-31 Thread H.J. Lu via Gcc-patches
On Sat, Jul 31, 2021 at 12:38 PM H.J. Lu wrote: > > On Fri, Jul 30, 2021 at 6:27 AM Jakub Jelinek via Gcc-patches > wrote: > > > > On Fri, Jul 30, 2021 at 12:27:39PM +0200, Uros Bizjak wrote: > > > Please put some space here, e.g.: > > ... > > > Can you just name the relevant insn pattern and

Re: [PATCH] i386: Improve extensions of __builtin_clz and constant - __builtin_clz for -mno-lzcnt [PR78103]

2021-07-31 Thread H.J. Lu via Gcc-patches
On Fri, Jul 30, 2021 at 6:27 AM Jakub Jelinek via Gcc-patches wrote: > > On Fri, Jul 30, 2021 at 12:27:39PM +0200, Uros Bizjak wrote: > > Please put some space here, e.g.: > ... > > Can you just name the relevant insn pattern and use > > > > emit_insn (gen_bsr_1)? > > Here is the updated patch.

PING^1 [PATCH v5] : Add pragma GCC target("general-regs-only")

2021-07-31 Thread H.J. Lu via Gcc-patches
On Sat, Jul 17, 2021 at 6:45 PM H.J. Lu wrote: > > On Thu, Apr 22, 2021 at 7:30 AM Richard Biener via Gcc-patches > wrote: > > > > On Thu, Apr 22, 2021 at 2:52 PM Richard Biener > > wrote: > > > > > > On Thu, Apr 22, 2021 at 2:22 PM Jakub Jelinek wrote: > > > > > > > > On Thu, Apr 22, 2021 at

Re: [PATCH] c++: Reject anonymous struct with bases

2021-07-31 Thread Jason Merrill via Gcc-patches
On Fri, Jul 30, 2021 at 3:35 PM Andrew Pinski wrote: > On Fri, Jul 30, 2021 at 9:26 AM Jason Merrill via Gcc-patches > wrote: > > > > In discussion of jakub's patch for C++20 pointer-interconvertibility, it > > came up that we allow anonymous structs to have bases, but don't do > anything > >

[pushed] c++: ICE on anon struct with base [PR96636]

2021-07-31 Thread Jason Merrill via Gcc-patches
pinskia pointed out that my recent change to reject anonymous structs with bases was relevant to this PR. But we still ICEd after giving that error; this fixes the ICE. Tested x86_64-pc-linux-gnu, applying to trunk. PR c++/96636 gcc/cp/ChangeLog: * decl.c

[pushed] c++: pretty-print TYPE_PACK_EXPANSION better

2021-07-31 Thread Jason Merrill via Gcc-patches
gcc/cp/ChangeLog: * ptree.c (cxx_print_type) [TYPE_PACK_EXPANSION]: Also print PACK_EXPANSION_PATTERN. --- Tested x86_64-pc-linux-gnu, applying to trunk. gcc/cp/ptree.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/cp/ptree.c b/gcc/cp/ptree.c index

committed: [PATCH] mips: Fix up mips_atomic_assign_expand_fenv [PR94780]

2021-07-31 Thread Xi Ruoyao via Gcc-patches
On Sat, 2021-07-31 at 02:08 +0800, Xi Ruoyao via Gcc-patches wrote: > On Fri, 2021-07-30 at 16:23 +0800, Xi Ruoyao via Gcc-patches wrote: > > On Fri, 2021-07-30 at 09:11 +0100, Richard Sandiford wrote: > > > Xi Ruoyao writes: > > > > Ping again. > > > > > > > > On Wed, 2021-06-23 at 11:11 +0800,

RE: [r12-2640 Regression] FAIL: gcc.target/i386/dec-cmov-2.c scan-assembler-not test(l|q|w) on Linux/x86_64

2021-07-31 Thread Roger Sayle
[Committed] Tweak new test case gcc.target/i386/dec-cmov-2.c With -m32, this test case is sensitive to the instruction timings of the target (for ifcvt to normalize bar() to foo() during the ce1 pass, prior to the transformations actually being tested here). Specifying -march=core2 prevents

New French PO file for 'gcc' (version 11.2.0)

2021-07-31 Thread Translation Project Robot
Hello, gentle maintainer. This is a message from the Translation Project robot. A revised PO file for textual domain 'gcc' has been submitted by the French team of translators. The file is available at: https://translationproject.org/latest/gcc/fr.po (This file, 'gcc-11.2.0.fr.po', has

[PATCH] Optimize x ? bswap(x) : 0 in tree-ssa-phiopt

2021-07-31 Thread Roger Sayle
Many thanks again to Jakub Jelinek for a speedy fix for PR 101642. Interestingly, that test case "bswap16(x) ? : x" also reveals a missed optimization opportunity. The resulting "x ? bswap(x) : 0" can be further simplified to just bswap(x). Conveniently, tree-ssa-phiopt.c already

[committed] openmp: Handle OpenMP directives in attribute syntax in attribute-declaration

2021-07-31 Thread Jakub Jelinek via Gcc-patches
Hi! Now that we parse attribute-declaration (outside of functions), the following patch handles OpenMP directives in its attribute(s). What needs handling incrementally is diagnose mismatching begin/end pair like [[omp::directive (declare target)]]; int a; #pragma omp end declare target or

[r12-2640 Regression] FAIL: gcc.target/i386/dec-cmov-2.c scan-assembler-not test(l|q|w) on Linux/x86_64

2021-07-31 Thread sunil.k.pandey via Gcc-patches
On Linux/x86_64, f7bf03cf69ccb7dcfa0320774aa7f3c51344dada is the first bad commit commit f7bf03cf69ccb7dcfa0320774aa7f3c51344dada Author: Roger Sayle Date: Fri Jul 30 22:46:32 2021 +0100 Decrement followed by cmov improvements. caused FAIL: gcc.target/i386/dec-cmov-2.c