Re: [PATCH] i386: Disable stv under optimize_size [PR 105034]

2022-04-13 Thread Richard Biener via Gcc-patches
On Thu, Apr 14, 2022 at 3:18 AM Hongyu Wang via Gcc-patches wrote: > > Hi, > > From -Os point of view, stv converts scalar register to vector mode > which introduces extra reg conversion and increase instruction size. > Disabling stv under optimize_size would avoid such code size increment > and n

Re: [PATCH] fold, simplify-rtx: Punt on non-representable floating point constants [PR104522]

2022-04-13 Thread Richard Biener via Gcc-patches
On Wed, Apr 13, 2022 at 5:22 PM Qing Zhao wrote: > > Hi, Richard, > > Thanks a lot for taking a look at this issue (and Sorry that I haven’t fixed > this one yet, I was distracted by other tasks then just forgot this one….) > > > On Apr 13, 2022, at 3:41 AM, Richard Biener > > wrote: > > > > On

Re: [PATCH] s390: Add scheduler description for z16

2022-04-13 Thread Andreas Krebbel via Gcc-patches
On 4/13/22 12:23, Robin Dapp wrote: > Hi, > > this patch adds the scheduler description for z16. Bootstrapped and > regtested with --with-arch=z16. > > Is it OK? > > Regards > Robin > > > gcc/ChangeLog: > > * config/s390/s390.cc (s390_get_sched_attrmask): Add z16. > (s390_get_un

Re: [PATCH] testsuite/s390: Silence warning in pr80725.c

2022-04-13 Thread Andreas Krebbel via Gcc-patches
On 4/13/22 09:35, Robin Dapp wrote: > Hi, > > this test case checks that we do not ICE but FAILs because of > -Wint-to-pointer-cast. Silence this warning. > > Is it OK? Ok. Thanks! Andreas

Re: [PATCH] testsuite: Skip pr105250.c for powerpc and s390 [PR105266]

2022-04-13 Thread Andreas Krebbel via Gcc-patches
On 4/14/22 05:10, Kewen.Lin wrote: > Hi, > > The test case pr105250.c is like its related pr105140.c, which > suffers the error with message like "{AltiVec,vector} argument > passed to unprototyped" on powerpc and s390. So like commits > r12-8025 and r12-8039, this fix is to add the dg-skip-if fo

Re: [wwwdocs] Add Ada's changelog entry

2022-04-13 Thread Gerald Pfeifer
On Wed, 13 Apr 2022, Gerald Pfeifer wrote: > This is the first batch of fixes. Pushed. Hmm, there is one issue that confused me a bit. What did you want to relay by the following? +Pattern matching + + The case statement has been extended to cover Currently that is a withi

Re: [wwwdocs] Add Ada's changelog entry

2022-04-13 Thread Gerald Pfeifer
On Mon, 4 Apr 2022, Fernando Oleo Blanco via Gcc-patches wrote: > this is my first patch to GCC, if there is anything off, please, say > so. I have used the default HTML formatting that comes with Emacs. I am not familiar with that Emacs mode, but < and > are special characters in HTML and have t

[PATCH] testsuite: Skip pr105250.c for powerpc and s390 [PR105266]

2022-04-13 Thread Kewen.Lin via Gcc-patches
Hi, The test case pr105250.c is like its related pr105140.c, which suffers the error with message like "{AltiVec,vector} argument passed to unprototyped" on powerpc and s390. So like commits r12-8025 and r12-8039, this fix is to add the dg-skip-if for powerpc*-*-* and s390*-*-*. Tested on powerp

[pushed] c++: alignment of local typedef in template [PR65211]

2022-04-13 Thread Jason Merrill via Gcc-patches
Because common_handle_aligned_attribute only applies the alignment to the TREE_TYPE of a typedef, not the DECL_ORIGINAL_TYPE, we need to copy it explicitly in tsubst. Tested x86_64-pc-linux-gnu, applying to trunk. PR c++/65211 gcc/cp/ChangeLog: * pt.cc (tsubst_decl) [TYPE_DECL]:

[PATCH] i386: Disable stv under optimize_size [PR 105034]

2022-04-13 Thread Hongyu Wang via Gcc-patches
Hi, >From -Os point of view, stv converts scalar register to vector mode which introduces extra reg conversion and increase instruction size. Disabling stv under optimize_size would avoid such code size increment and no need to touch ix86_size_cost that has not been tuned for long time. Bootstrap

Re: [PATCH] fortran: use fpu-glibc on powerpc*-unknown-freebsd

2022-04-13 Thread Piotr Kubaj via Gcc-patches
Hello, can you check the following patch? On 22-04-13 17:27:11, FX wrote: > Hi, > > > the problem is that configure checks for feenableexcept() in libm: > > AC_CHECK_LIB([m],[feenableexcept],[have_feenableexcept=yes > > AC_DEFINE([HAVE_FEENABLEEXCEPT],[1],[libm includes feenableexcept])]) > >

[pushed] c++: local fn and generic lambda [PR97219]

2022-04-13 Thread Jason Merrill via Gcc-patches
When instantiating the op() for a generic lambda, we can no longer do name lookup inside function scopes enclosing the lambda, so we need to remember the lookup result from processing the definition of the lambda. So the code in finish_call_expr to throw away the lookup result and instead look it

[pushed] c++: template conversion op [PR101698]

2022-04-13 Thread Jason Merrill via Gcc-patches
Asking for conversion to a dependent type also makes a BASELINK dependent. Tested x86_64-pc-linux-gnu, applying to trunk. PR c++/101698 gcc/cp/ChangeLog: * pt.cc (tsubst_baselink): Also check dependent optype. gcc/testsuite/ChangeLog: * g++.dg/template/conv19.C: New te

[pushed] c++: NRV and ref-extended temps [PR101442]

2022-04-13 Thread Jason Merrill via Gcc-patches
This issue goes back to r83221, where the cleanup for extended ref temps changed from being unconditional to being tied to the declaration they formed part of the initializer for. The named return value optimization changes the cleanup for the NRV variable to only run on the EH path; we don't want

[PATCH] ppc: testsuite: enable _Float128 type

2022-04-13 Thread Alexandre Oliva via Gcc-patches
[sorry, I failed to add [PATCH] to the subject of the two previous patches] Though -mpower9-vector makes float128 support possible, some target systems such as vxworks disable float128 types by default (TARGET_FLOAT128_ENABLE_TYPE is defined to 0), so explicit -mfloat128 is needed to enable it, an

ppc: testsuite: prune float128 partial support warnings

2022-04-13 Thread Alexandre Oliva via Gcc-patches
When -mfloat128 is specified on targets that don't have float128 types enabled by default, a warning is raised that the option may not be fully supported. This patch prunes the warning on some tests that use the flag but don't accept the warning. Tested on x86_64-linux-gnu x ppc64-vx7r2 with gc

ppc: testsuite: bfp: enable float128 for __ieee128

2022-04-13 Thread Alexandre Oliva via Gcc-patches
Multiple bfp tests expect -mcpu=power[89] to enable the __ieee128 type, but on targets that #define TARGET_FLOAT128_ENABLE_TYPE 0, that is not the case. Since they are compile-time tests and effective target support for powerpc_p9vector_ok is required, adding -mfloat128 is safe. This patch does

Re: add -mfloat128 to __float128-using test missing it

2022-04-13 Thread Alexandre Oliva via Gcc-patches
Hello, Iain, Sorry about the late response. On Mar 11, 2021, Iain Sandoe wrote: > Alexandre Oliva wrote: >> On Mar 10, 2021, Alexandre Oliva wrote: >> >>> * gcc.target/powerpc/prefix-ds-dq.c: Enable __float128. >> >> I've been reminded that this is not enough for the scan-assembler tests >>

Re: enable __ieee128 for p9vector tests

2022-04-13 Thread Alexandre Oliva via Gcc-patches
On Apr 17, 2021, Alexandre Oliva wrote: > On Apr 12, 2021, Segher Boessenkool wrote: >> Hi! >> Sorry for the late answer. Likewise :-) >> On Fri, Apr 02, 2021 at 01:52:59PM -0300, Alexandre Oliva wrote: >>> Several compile tests that use the __ieee128 type do not ensure it is >>> defined. Thi

[PATCH v2] c, c++: attribute format on a ctor with a vbase [PR101833, PR47634]

2022-04-13 Thread Marek Polacek via Gcc-patches
On Tue, Apr 12, 2022 at 04:01:14PM -0400, Jason Merrill wrote: > On 4/12/22 14:38, Marek Polacek wrote: > > On Mon, Apr 11, 2022 at 04:39:22PM -0400, Jason Merrill wrote: > > > On 4/8/22 15:21, Marek Polacek wrote: > > > > On Wed, Apr 06, 2022 at 04:55:54PM -0400, Jason Merrill wrote: > > > > > On

Go testsuite patch committed: Update issue10441.go to upstream version

2022-04-13 Thread Ian Lance Taylor via Gcc-patches
This patch updates issue10441.go to the upstream version. The test only needs to be compiled, not linked. Linking failed on some platforms, and there was no need to do it anyhow. Ran test on x86_64-pc-linux-gnu. Committed to mainline. Ian 33ba46663cdf2c9e995265eb838585488f81e907 diff --git a/g

Re: Ping^2 [PATCH, rs6000] Correct match pattern in pr56605.c

2022-04-13 Thread Segher Boessenkool
On Wed, Apr 13, 2022 at 04:30:36PM -0500, Segher Boessenkool wrote: > This should have been tested on Linux as well: it is now broken on both > -m32 and -m64 there. Please revert? Sorry, confusing with another new regression: this one is only -m64 of course. Segher

Re: Ping^2 [PATCH, rs6000] Correct match pattern in pr56605.c

2022-04-13 Thread Segher Boessenkool
On Mon, Apr 11, 2022 at 08:54:14PM -0300, Alexandre Oliva wrote: > On Apr 7, 2022, HAO CHEN GUI via Gcc-patches wrote: > > > Gentle ping this: > >https://gcc.gnu.org/pipermail/gcc-patches/2022-February/590958.html > > Thanks > > >> On 28/2/2022 上午 11:17, HAO CHEN GUI wrote: > > >>> This

Re: [x86 PATCH] PR target/70321: Split double word equality/inequality after STV.

2022-04-13 Thread Uros Bizjak via Gcc-patches
On Wed, Apr 13, 2022 at 11:03 AM Roger Sayle wrote: > > > This patch resolves the last piece of PR target/70321 a code quality > (P2 regression) affecting mainline. Currently, for HJ's testcase: > > void foo (long long ixi) > { > if (ixi != 14348907) > __builtin_abort (); > } > > GCC with -

[pushed] aarch64: Make sure the UF divides the VF [PR105254]

2022-04-13 Thread Richard Sandiford via Gcc-patches
In this PR, we were trying to set the unroll factor to a value higher than the minimum VF (or more specifically, to a value that doesn't divide the VF). I guess there are two approaches to this: let the target pick any value it likes and make target-independent code pare it back to something that

[vect-patterns] Refactor widen_plus/widen_minus as internal_fns

2022-04-13 Thread Joel Hutton via Gcc-patches
Hi all, These patches refactor the widening patterns in vect-patterns to use internal_fn instead of tree_codes. Sorry about the delay, some changes to master made it a bit messier. Bootstrapped and regression tested on aarch64. Joel > > diff --git a/gcc/tree-vect-patterns.c b/gcc/tree-vect-pa

Re: [Patch] OpenMP/Fortran: Fix EXIT in loop diagnostic [PR105242]

2022-04-13 Thread Jakub Jelinek via Gcc-patches
On Wed, Apr 13, 2022 at 05:16:48PM +0200, Tobias Burnus wrote: > Trivial fix – after finding the issue. The LOOP directive and > several LOOP/DO/SIMD combined directives were missing in the > check. As the PR shows, this leads to an ICE on invalid code. > > OK? > > Tobias > - > Si

Re: [PATCH] fortran: use fpu-glibc on powerpc*-unknown-freebsd

2022-04-13 Thread FX via Gcc-patches
Hi, > the problem is that configure checks for feenableexcept() in libm: > AC_CHECK_LIB([m],[feenableexcept],[have_feenableexcept=yes > AC_DEFINE([HAVE_FEENABLEEXCEPT],[1],[libm includes feenableexcept])]) > > FreeBSD doesn't have this function in libm, it's implemented in > /usr/include/fenv.h

Re: [PATCH] fold, simplify-rtx: Punt on non-representable floating point constants [PR104522]

2022-04-13 Thread Qing Zhao via Gcc-patches
Hi, Richard, Thanks a lot for taking a look at this issue (and Sorry that I haven’t fixed this one yet, I was distracted by other tasks then just forgot this one….) > On Apr 13, 2022, at 3:41 AM, Richard Biener > wrote: > > On Tue, Feb 15, 2022 at 5:31 PM Qing Zhao via Gcc-patches > wrote: >

[Patch] OpenMP/Fortran: Fix EXIT in loop diagnostic [PR105242]

2022-04-13 Thread Tobias Burnus
Trivial fix – after finding the issue. The LOOP directive and several LOOP/DO/SIMD combined directives were missing in the check. As the PR shows, this leads to an ICE on invalid code. OK? Tobias - Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 Mün

Re: [PATCH] fortran: use fpu-glibc on powerpc*-unknown-freebsd

2022-04-13 Thread Piotr Kubaj via Gcc-patches
On 22-03-20 16:30:08, FX wrote: > Hi, > > (Please send all Fortran (front-end and libgfortran) patches in CC to the > Fortran list.) > > Please hold from pushing the patch as is, I have some questions: > > - If FreeBSD has feenableexcept() and related functions, it should already > use the fpu

[wwwdocs][commmited] gcc-12: further jit changes (LIBGCCJIT_ABI_20 through _24)

2022-04-13 Thread David Malcolm via Gcc-patches
I've pushed the following release notes change to the GCC website: https://gcc.gnu.org/gcc-12/changes.html#jit covering the 5 patches from Antoni that I pushed yesterday. Dave --- htdocs/gcc-12/changes.html | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-) diff --gi

[PATCH] libstdc++: Use LTLIBICONV when linking libstdc++.so [PR93602]

2022-04-13 Thread Jonathan Wakely via Gcc-patches
Tested x86_64-linux, without libiconv installed, with libiconv installed, with libiconv installed but using an in-tree libiconv, with libiconv.a installed and using --with-libiconv-type=static, and with libiconv.so installed and using --without-libiconv-prefix (which still fails). I'm not entirely

[pushed] c++: empty base constexpr -fno-elide-ctors [PR105245]

2022-04-13 Thread Jason Merrill via Gcc-patches
The patch for 100111 extended our handling of empty base elision to the case where the derived class has no other fields, but we still need to make sure that there's some initializer for the derived object. Tested x86_64-pc-linux-gnu, applying to trunk. PR c++/105245 PR c++/100111

Re: [PATCH] tree-optimization/104010 - fix SLP scalar costing with patterns

2022-04-13 Thread Richard Biener via Gcc-patches
On Wed, 13 Apr 2022, Richard Biener wrote: > When doing BB vectorization the scalar cost compute is derailed > by patterns, causing lanes to be considered live and thus not > costed on the scalar side. For the testcase in PR104010 this > prevents vectorization which was done by GCC 11. PR103941

[PATCH] tree-optimization/105263 - reassoc and DFP

2022-04-13 Thread Richard Biener via Gcc-patches
reassoc has certain tricks which in the end depend on the ability to undo them. For DFP creating a -1. constant is easy but re-identifying is appearantly not - real_minus_onep rejects those outright for DFP. So we have to disable (at least) this one trick. Bootstrapped on x86_64-unknown-linux-gn

Re: [PATCH] tree.cc: Use useless_type_conversion_p in tree_builtin_call_types_compatible_p while in gimple form [PR105253]

2022-04-13 Thread Richard Biener via Gcc-patches
On Wed, 13 Apr 2022, Jakub Jelinek wrote: > Hi! > > tree_builtin_call_types_compatible_p uses TYPE_MAIN_VARIANT comparisons > or tree_nop_conversion_p to ensure a builtin has correct GENERIC arguments. > Unfortunately this regressed when get_call_combined_fn is called during > GIMPLE optimization

[PATCH] simplify-rtx: Don't assume shift count has the same mode as the shift [PR105247]

2022-04-13 Thread Jakub Jelinek via Gcc-patches
Hi! The following testcase ICEs on ia64. It is UB at runtime, but we shouldn't ICE on it... The problem is that on ia64, the shift count (last operand of ASHIFT etc.) is promoted to DImode (using zero-extension), while most other targets use much narrower modes (say QImode). If we try to simplif

[PATCH] tree.cc: Use useless_type_conversion_p in tree_builtin_call_types_compatible_p while in gimple form [PR105253]

2022-04-13 Thread Jakub Jelinek via Gcc-patches
Hi! tree_builtin_call_types_compatible_p uses TYPE_MAIN_VARIANT comparisons or tree_nop_conversion_p to ensure a builtin has correct GENERIC arguments. Unfortunately this regressed when get_call_combined_fn is called during GIMPLE optimizations. E.g. when number_of_iterations_popcount is called,

Re: [PATCH 0/5] openmp: Handle pinned and unified shared memory.

2022-04-13 Thread Andrew Stubbs
This patch adjusts the testcases, previously proposed, to allow for testing on machines with varying page sizes and default amounts of lockable memory. There turns out to be more variation than I had thought. This should go on mainline at the same time as the previous patches in this thread.

Re: [x86 PATCH] Avoid andn and generate shorter not;and with -Oz.

2022-04-13 Thread Michael Matz via Gcc-patches
Hello, On Wed, 13 Apr 2022, Roger Sayle wrote: > The x86 instruction encoding for SImode andn is longer than the > equivalent notl/andl sequence when the source for the not operand > is the same register as the destination. _And_ when no REX prefixes are necessary for the notl,andn, which they a

Re: [PATCH] tree-optimization/104010 - fix SLP scalar costing with patterns

2022-04-13 Thread Christophe Lyon via Gcc-patches
On 4/13/22 14:57, Richard Biener via Gcc-patches wrote: When doing BB vectorization the scalar cost compute is derailed by patterns, causing lanes to be considered live and thus not costed on the scalar side. For the testcase in PR104010 this prevents vectorization which was done by GCC 11.

[PATCH] tree-optimization/104010 - fix SLP scalar costing with patterns

2022-04-13 Thread Richard Biener via Gcc-patches
When doing BB vectorization the scalar cost compute is derailed by patterns, causing lanes to be considered live and thus not costed on the scalar side. For the testcase in PR104010 this prevents vectorization which was done by GCC 11. PR103941 shows similar cases of missed optimizations that are

Re: [PATCH] c++: Treat alignas align_expr and aligned attribute's operand as manifestly constant evaluation [PR105233]

2022-04-13 Thread Jason Merrill via Gcc-patches
On 4/13/22 04:11, Jakub Jelinek wrote: Hi! The following testcase fails, because we only constant evaluate the alignas argument as non-manifestly constant-evaluated and as __builtin_is_constant_evaluated appears, we make it non-constant (the reason is that we often try to evaluate some expressio

Re: [PATCH] tree-optimization/105250 - adjust fold_convertible_p PR105140 fix

2022-04-13 Thread Richard Sandiford via Gcc-patches
Richard Biener writes: > On Wed, 13 Apr 2022, Richard Sandiford wrote: > >> Richard Biener via Gcc-patches writes: >> > The following reverts the original PR105140 fix and goes for instead >> > applying the additional fold_convert constraint for VECTOR_TYPE >> > conversions also to fold_convertib

[PATCH] s390: Add scheduler description for z16

2022-04-13 Thread Robin Dapp via Gcc-patches
Hi, this patch adds the scheduler description for z16. Bootstrapped and regtested with --with-arch=z16. Is it OK? Regards Robin gcc/ChangeLog: * config/s390/s390.cc (s390_get_sched_attrmask): Add z16. (s390_get_unit_mask): Likewise. (s390_is_fpd): Likewise. (

Re: [x86_64 PATCH] Avoid andb %dil when optimizing for size.

2022-04-13 Thread Uros Bizjak via Gcc-patches
On Wed, Apr 13, 2022 at 9:08 AM Roger Sayle wrote: > > > Hi Uros, > Many thanks for the speedy review. Here's the revised version of the > patch incorporating all of your suggested fixes and improvements. How about we go with an alternative route and enhance the *_maybe_si instructions with your

Re: [PATCH] tree-optimization/105250 - adjust fold_convertible_p PR105140 fix

2022-04-13 Thread Richard Biener via Gcc-patches
On Wed, 13 Apr 2022, Richard Biener wrote: > On Wed, 13 Apr 2022, Richard Biener wrote: > > > On Wed, 13 Apr 2022, Richard Sandiford wrote: > > > > > Richard Biener via Gcc-patches writes: > > > > The following reverts the original PR105140 fix and goes for instead > > > > applying the addition

[x86 PATCH] PR target/70321: Split double word equality/inequality after STV.

2022-04-13 Thread Roger Sayle
This patch resolves the last piece of PR target/70321 a code quality (P2 regression) affecting mainline. Currently, for HJ's testcase: void foo (long long ixi) { if (ixi != 14348907) __builtin_abort (); } GCC with -m32 -O2 generates four instructions for the comparison: movl1

Re: [PATCH] tree-optimization/105250 - adjust fold_convertible_p PR105140 fix

2022-04-13 Thread Richard Biener via Gcc-patches
On Wed, 13 Apr 2022, Richard Biener wrote: > On Wed, 13 Apr 2022, Richard Sandiford wrote: > > > Richard Biener via Gcc-patches writes: > > > The following reverts the original PR105140 fix and goes for instead > > > applying the additional fold_convert constraint for VECTOR_TYPE > > > conversio

Re: [PATCH] tree-optimization/105250 - adjust fold_convertible_p PR105140 fix

2022-04-13 Thread Richard Biener via Gcc-patches
On Wed, 13 Apr 2022, Richard Sandiford wrote: > Richard Biener via Gcc-patches writes: > > The following reverts the original PR105140 fix and goes for instead > > applying the additional fold_convert constraint for VECTOR_TYPE > > conversions also to fold_convertible_p. I did not try sanitizing

[PATCH] middle-end/105259 - adjust gcc.target/i386/auto-init-4.c

2022-04-13 Thread Richard Biener via Gcc-patches
This adjusts the FAILing testcase to only check for the pieces that work. The bug tracks improving pattern-init for long double. Tested on x86_64-unknown-linux-gnu, pushed. 2022-04-13 Richard Biener PR middle-end/105259 * gcc.target/i386/auto-init-4.c: Adjust. --- gcc/testsu

Re: [PATCH] fold, simplify-rtx: Punt on non-representable floating point constants [PR104522]

2022-04-13 Thread Richard Biener via Gcc-patches
On Tue, Feb 15, 2022 at 5:31 PM Qing Zhao via Gcc-patches wrote: > > > > > On Feb 15, 2022, at 3:58 AM, Jakub Jelinek wrote: > > > > Hi! > > > > For IBM double double I've added in PR95450 and PR99648 verification that > > when we at the tree/GIMPLE or RTL level interpret target bytes as a REAL_C

[PATCH] c++: Treat alignas align_expr and aligned attribute's operand as manifestly constant evaluation [PR105233]

2022-04-13 Thread Jakub Jelinek via Gcc-patches
Hi! The following testcase fails, because we only constant evaluate the alignas argument as non-manifestly constant-evaluated and as __builtin_is_constant_evaluated appears, we make it non-constant (the reason is that we often try to evaluate some expression without manifestly_const_eval perhaps e

[x86 PATCH] Avoid andn and generate shorter not;and with -Oz.

2022-04-13 Thread Roger Sayle
The x86 instruction encoding for SImode andn is longer than the equivalent notl/andl sequence when the source for the not operand is the same register as the destination. This patch adds post_reload splitters to i386.md to avoid "-mbmi" (which enables andn) increasing code size with "-Oz". One m

Re: [PATCH] attribs: Restrict decl_attributes DECL_FUNCTION_SPECIFIC_TARGET changes to targets that care about target attributes/pragmas [PR105234]

2022-04-13 Thread Richard Biener via Gcc-patches
On Wed, 13 Apr 2022, Jakub Jelinek wrote: > Hi! > > The following code is rejected e.g. on mips64el-linux (but I think many > other targets which don't support target attribute or pragma). > The problem is that the change to decl_attributes below is done > unconditionally and with just #pragma GC

Re: [PATCH] tree-optimization/105250 - adjust fold_convertible_p PR105140 fix

2022-04-13 Thread Richard Sandiford via Gcc-patches
Richard Biener via Gcc-patches writes: > The following reverts the original PR105140 fix and goes for instead > applying the additional fold_convert constraint for VECTOR_TYPE > conversions also to fold_convertible_p. I did not try sanitizing > all of this at this point. > > Bootstrapped on x86_6

[PATCH] attribs: Restrict decl_attributes DECL_FUNCTION_SPECIFIC_TARGET changes to targets that care about target attributes/pragmas [PR105234]

2022-04-13 Thread Jakub Jelinek via Gcc-patches
Hi! The following code is rejected e.g. on mips64el-linux (but I think many other targets which don't support target attribute or pragma). The problem is that the change to decl_attributes below is done unconditionally and with just #pragma GCC push_options/pop_options pair we have target_option_d

[committed] libgomp: Fix a documentation typo

2022-04-13 Thread Jakub Jelinek via Gcc-patches
Hi! This fixes a typo in the 5.0 feature support table. Bootstrapped/regtested on x86_64-linux and i686-linux, committed to trunk. 2022-04-13 Jakub Jelinek * libgomp.texi: Fix a typo - mutexinouset -> mutexinoutset. --- libgomp/libgomp.texi.jj 2022-03-14 10:34:34.444919906 +0100

[committed] scev: Fix a comment typo

2022-04-13 Thread Jakub Jelinek via Gcc-patches
Hi! When looking at the kernel __popcountdi2 issue, I've noticed a comment typo. Bootstrapped/regtested on x86_64-linux and i686-linux, committed to trunk as obvious. 2022-04-13 Jakub Jelinek * tree-scalar-evolution.cc (expression_expensive_p): Fix a comment typo. --- gcc/tree-scala

[PATCH] tree-optimization/105250 - adjust fold_convertible_p PR105140 fix

2022-04-13 Thread Richard Biener via Gcc-patches
The following reverts the original PR105140 fix and goes for instead applying the additional fold_convert constraint for VECTOR_TYPE conversions also to fold_convertible_p. I did not try sanitizing all of this at this point. Bootstrapped on x86_64-unknown-linux-gnu, testing in progress. 2022-04-

Re: [PATCH] i386: Fix infinite loop under -mrelax-cmpxchg-loop [PR 103069]

2022-04-13 Thread Uros Bizjak via Gcc-patches
On Wed, Apr 13, 2022 at 9:07 AM Hongyu Wang wrote: > > Hi, > > For -mrelax-cmpxchg-loop which relaxes atomic_fetch_ loops, > there is a missing set to %eax when compare fails, which would result > in infinite loop in some benchmark. Add set to %eax to avoid it. > > Bootstraped/regtested on x86_64-

[PATCH] testsuite/s390: Silence warning in pr80725.c

2022-04-13 Thread Robin Dapp via Gcc-patches
Hi, this test case checks that we do not ICE but FAILs because of -Wint-to-pointer-cast. Silence this warning. Is it OK? Regards Robin gcc/testsuite/ChangeLog: * gcc.target/s390/pr80725.c: Add -Wno-int-to-pointer-cast. --- gcc/testsuite/gcc.target/s390/pr80725.c | 2 +- 1 file chan

GCC 11.2.1 Status Report (2022-04-13), branch frozen for release

2022-04-13 Thread Richard Biener via Gcc-patches
Status == The gcc-11 branch is now frozen in preparation for a GCC 11.3 release candidate and the GCC 11.3 release next week. All changes now require release manager approval. The remaining P1 bugs have been resolved or pushed back to GCC 11.4. Quality Data Priority

RE: [x86_64 PATCH] Avoid andb %dil when optimizing for size.

2022-04-13 Thread Roger Sayle
Hi Uros, Many thanks for the speedy review. Here's the revised version of the patch incorporating all of your suggested fixes and improvements. This has been tested on x86_64-pc-linux-gnu with make bootstrap and make -k check with no new failures. Ok for mainline? 2022-04-13 Roger Sayle

[PATCH] i386: Fix infinite loop under -mrelax-cmpxchg-loop [PR 103069]

2022-04-13 Thread Hongyu Wang via Gcc-patches
Hi, For -mrelax-cmpxchg-loop which relaxes atomic_fetch_ loops, there is a missing set to %eax when compare fails, which would result in infinite loop in some benchmark. Add set to %eax to avoid it. Bootstraped/regtested on x86_64-pc-linux-gnu{-m32,} Ok for master? gcc/ChangeLog: PR ta