Re: [PATCH] c++: CTAD within alias template [PR91911]

2021-12-21 Thread Jason Merrill via Gcc-patches
On 12/21/21 14:08, Patrick Palka wrote: On Tue, Dec 21, 2021 at 2:03 PM Patrick Palka wrote: On Wed, Jun 30, 2021 at 4:23 PM Jason Merrill wrote: On 6/30/21 4:18 PM, Patrick Palka wrote: On Wed, Jun 30, 2021 at 3:51 PM Jason Merrill wrote: On 6/30/21 11:58 AM, Patrick Palka wrote: On

[PATCH] i386: Enable intrinsics that convert float and bf16 data to each other.

2021-12-21 Thread Kong, Lingling via Gcc-patches
Hi, This patch is to enable intrinsics that convert float and bf16 data to each other. Ok for master? gcc/ChangeLog: * config/i386/avx512bf16intrin.h (_mm_cvtsbh_ss): Add new intrinsic. (_mm512_cvtpbh_ps): Likewise. (_mm512_maskz_cvtpbh_ps): Likewise.

[PATCH] [i386] Add option -mvect-compare-costs

2021-12-21 Thread liuhongt via Gcc-patches
Here is updated patch. Also with corresponding target attribute, option default disabled. gcc/ChangeLog: * config/i386/i386-options.c (ix86_target_string): Handle -mvect-compare-costs. (ix86_valid_target_attribute_inner_p): Support target attribute

Re: [PATCH] PR target/32803: Add -Oz option for improved clang compatibility.

2021-12-21 Thread Eric Gallager via Gcc-patches
On Tue, Dec 14, 2021 at 6:33 PM Jeff Law via Gcc-patches wrote: > > > > On 12/13/2021 5:27 PM, Joseph Myers wrote: > > This is missing an invoke.texi update for the new option. > And that update should probably note that -Oz turns on O2. OK with that > change. > > jeff A news entry for the new

Re: [PATCH v3, rs6000] Implement mffscrni pattern

2021-12-21 Thread HAO CHEN GUI via Gcc-patches
Hi Segher, Thanks for your advice. Please see my explanation below. On 22/12/2021 上午 1:05, Segher Boessenkool wrote: > Hi! > > On Tue, Dec 21, 2021 at 04:08:06PM +0800, HAO CHEN GUI wrote: >> This patch defines a pattern for mffscrni. If the RN is a constant, it can >> call >>

[PATCH] Fix [11/12 regression] error: 'fenv_t' has not been declared in '::' -- canadian compilation fails [PR100017]

2021-12-21 Thread cqwrteur via Gcc-patches
libstdc++ cannot find fenv_t for fenv.h when doing canadian compilation. Fix it by adding -nostdinc++ toggle to configure and configure.ac. new patch after today's change to configure --- configure| 2 +- configure.ac | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH] disable aggressive_loop_optimizations until niter ready

2021-12-21 Thread Jiufu Guo via Gcc-patches
Hi, Normaly, estimate_numbers_of_iterations get/caculate niter first, and then invokes infer_loop_bounds_from_undefined. While in some case, after a few call stacks, estimate_numbers_of_iterations is invoked before niter is ready (e.g. before number_of_latch_executions returns). e.g.

[PATCH] Fix ICE in lsplit when built with -O3 -fno-guess-branch-probability [PR103793]

2021-12-21 Thread Xionghu Luo via Gcc-patches
no-guess-branch-probability option requires profile_count with initialized_p guard. Also merge the missed part of r12-6086 of factor out function to avoid duplicate code. gcc/ChangeLog: PR 103793 * tree-ssa-loop-split.c (fix_loop_bb_probability): New function.

Re: [PATCH] c++: CTAD within alias template [PR91911]

2021-12-21 Thread Patrick Palka via Gcc-patches
On Tue, Dec 21, 2021 at 2:03 PM Patrick Palka wrote: > > On Wed, Jun 30, 2021 at 4:23 PM Jason Merrill wrote: > > > > On 6/30/21 4:18 PM, Patrick Palka wrote: > > > On Wed, Jun 30, 2021 at 3:51 PM Jason Merrill wrote: > > >> > > >> On 6/30/21 11:58 AM, Patrick Palka wrote: > > >>> On Wed, 30

Re: [PATCH] c++: CTAD within alias template [PR91911]

2021-12-21 Thread Patrick Palka via Gcc-patches
On Wed, Jun 30, 2021 at 4:23 PM Jason Merrill wrote: > > On 6/30/21 4:18 PM, Patrick Palka wrote: > > On Wed, Jun 30, 2021 at 3:51 PM Jason Merrill wrote: > >> > >> On 6/30/21 11:58 AM, Patrick Palka wrote: > >>> On Wed, 30 Jun 2021, Patrick Palka wrote: > >>> > On Fri, 25 Jun 2021, Jason

Re: [PATCH][Hashtable 6/6] PR 68303 small size optimization

2021-12-21 Thread François Dumont via Gcc-patches
On 21/12/21 7:28 am, Daniel Krügler wrote: Am Di., 21. Dez. 2021 um 07:08 Uhr schrieb François Dumont via Libstdc++ : Hi Is there a chance for this patch to be integrated for next gcc release ? François No counterargument for the acceptance, but: Shouldn't __small_size_threshold() be

Re: [PATCH v3, rs6000] Implement mffscrni pattern

2021-12-21 Thread Segher Boessenkool
Hi! On Tue, Dec 21, 2021 at 04:08:06PM +0800, HAO CHEN GUI wrote: > This patch defines a pattern for mffscrni. If the RN is a constant, it can > call > gen_rs6000_mffscrni directly. And that isn't more work than just falling through to the general case. Okay. > The "rs6000-builtin-new.def"

[GCC-11][committed] libphobos: Add power*-*-freebsd* as supported target

2021-12-21 Thread Iain Buclaw via Gcc-patches
This patch backports the change in mainline that adds power*-*-freebsd* as supported targets for libphobos, which soft depends on another change in mainline that adds FreeBSD_13 support for the bindings. Regression tested on powerpc64-portbld-freebsd13.0, and committed to the releases/gcc-11

vxworks libstdc++ locale

2021-12-21 Thread Rasmus Villemoes via Gcc-patches
Hi While trying to upgrade our vxworks 5.5 compiler to gcc12, I've hit a problem when loading the libstdc++ module on target. It manifests as [00] tShell memPartFree: invalid block 8bf72c in partition 9605dc. [00] tShell memPartFree: invalid block 8bf38c in partition 9605dc. [00]

[PATCH] x86: Shrink writing 0/-1 to memory using and/or with -Oz.

2021-12-21 Thread Roger Sayle
This is the second part of my fix to PR target/103773 where -Oz shouldn't use push/pop on x86 to shrink writing small integer constants to memory. Instead clang uses "andl $0, mem" for writing zero, and "orl $-1, mem" when writing -1 to memory when using -Oz. This patch implements this via

[committed] libphobos: Add power*-*-freebsd* as supported target

2021-12-21 Thread Iain Buclaw via Gcc-patches
Hi, This patch adds power*-*-freebsd* as supported targets for libphobos. This has been tested on powerpc64-freebsd13 and powerpc64le-freebsd13, and used to build dub, along with some D tools from ports. Regression tested, and committed to mainline. Regards, Iain. --- libphobos/ChangeLog:

[GCC-9, 10, 11][committed] libphobos: Fix definition of stat_t for MIPS64 (PR103604)

2021-12-21 Thread Iain Buclaw via Gcc-patches
Hi, This patch backports a specific change from commit r12-6003 to the release branches to fix the layout of stat_t on MIPS64 targets. Bootstrapped and regression tested on mips-unknown-linux, with -mabi=64 and -mabi=n32 multilib configurations. Committed to releases/gcc-11, gcc-10, and gcc-9

Re: [PATCH] PR fortran/103777 - ICE in gfc_simplify_maskl, at fortran/simplify.c:4918

2021-12-21 Thread Mikael Morin
Le 20/12/2021 à 23:05, Harald Anlauf via Fortran a écrit : Dear all, we need to check the arguments of the elemental MASKL and MASKR intrinsics also before simplifying. Testcase by Gerhard. The fix is almost obvious, but I'm happy to get feedback in case there is something I overlooked.

[PATCH][AArch32]: correct usdot-product RTL patterns.

2021-12-21 Thread Tamar Christina via Gcc-patches
Hi All, There was a bug in the ACLE specication for dot product which has now been fixed[1]. This means some intrinsics were missing and are added by this patch. Bootstrapped and regtested on arm-none-linux-gnueabihf and no issues. Ok for master? [1]

[AArch32]: correct dot-product RTL patterns.

2021-12-21 Thread Tamar Christina via Gcc-patches
Hi All, The previous fix for this problem was wrong due to a subtle difference between where NEON expects the RMW values and where intrinsics expects them. The insn pattern is modeled after the intrinsics and so needs an expand for the vectorizer optab to switch the RTL. However operand[3] is

[PATCH] PR target/103773: Fix wrong-code with -Oz from pop to memory.

2021-12-21 Thread Roger Sayle
My apologies for the inconvenience. The new support for -Oz using push/pop for small integer constants on x86_64 is only a win/correct for loading registers. Fixed by adding !MEM_P tests in the appropriate locations. This patch has been tested on x86_64-pc-linux-gnu with make bootstrap and

[PATCH] nvptx: bump default to PTX 4.1

2021-12-21 Thread Andrew Stubbs
On 20/12/2021 15:58, Andrew Stubbs wrote: In order to support the %dynamic_smem_size PTX feature is is necessary to bump the minimum supported PTX version from 3.1 (~2013) to 4.1 (~2014). Tobias has pointed out, privately, that the default version is both documented and encoded in the -mptx

Re: [PATCH v3 2/2][GCC] arm: Declare MVE types internally via pragma

2021-12-21 Thread Murray Steele via Gcc-patches
Hi, I'd like to ping this patch revision [1]. Thanks, Murray [1]: https://gcc.gnu.org/pipermail/gcc-patches/2021-December/586476.html --- On 09/12/2021 15:24, Murray Steele via Gcc-patches wrote: > Changes from original patch: > > 1. Make mentioned changes to changelog. > 2. Add

[PATCH] [PATCH] Fix [11/12 regression] error: 'fenv_t' has not been declared in '::' -- canadian compilation fails [PR100017]

2021-12-21 Thread cqwrteur via Gcc-patches
libstdc++ cannot find fenv_t for fenv.h when doing canadian compilation. Fix it by adding -nostdinc++ toggle to configure and configure.ac. Backported from master --- configure| 2 +- configure.ac | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure

[PATCH] Fix [11/12 regression] error: 'fenv_t' has not been declared in '::' -- canadian compilation fails [PR100017]

2021-12-21 Thread cqwrteur via Gcc-patches
From: expnkx libstdc++ cannot find fenv_t for fenv.h when doing canadian compilation. Fix it by adding -nostdinc++ toggle to configure and configure.ac. --- configure| 2 +- configure.ac | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index

[PATCH, rs6000] Fix ICE on expand bcd__ [PR100736]

2021-12-21 Thread HAO CHEN GUI via Gcc-patches
Hi, This patch fixes the ICE in PR100736. It adds a reverse condition comparison when the condition code can be reversed and finite-math-only is set. Bootstrapped and tested on powerpc64-linux BE and LE with no regressions. Is this okay for trunk? Any recommendations? Thanks a lot.

Re: [gcc r12-6020] Fixed typo

2021-12-21 Thread Martin Liška
On 12/20/21 19:19, Rainer Orth wrote: please make config.sub executable again. This has been lost with the update. Hello. Sure, sorry for the unintended change. Fixed in r12-6088-g6fad101f3063d722e3348d07dc93cf737f8709e4. Martin

[PATCH v3, rs6000] Implement mffscrni pattern

2021-12-21 Thread HAO CHEN GUI via Gcc-patches
Hi, I modified the patch according to reviewers' advice. This patch defines a pattern for mffscrni. If the RN is a constant, it can call gen_rs6000_mffscrni directly. The "rs6000-builtin-new.def" defines prototype for builtin arguments. The pattern "rs6000_set_fpscr_rn" is then broken as