Re: [PING * 3][PATCH v3] Add new warning Wmissing-designated-initializers [PR39589]

2025-06-05 Thread Peter Frost
Thanks for the review, much appreciated. Agreed on all those points, I'll remove it from -Wextra and just leave it as a standalone warning, and I'll add those tests you suggested. On 02/06/2025 19:08, Joseph Myers wrote: On Sun, 1 Jun 2025, Peter Frost wrote: Ping https://g

[PING * 3][PATCH v3] Add new warning Wmissing-designated-initializers [PR39589]

2025-06-01 Thread Peter Frost
Ping https://gcc.gnu.org/pipermail/gcc-patches/2025-January/672568.html

Re: [EXT] Re: [PATCH v3] rs6000: Adding missed ISA 3.0 atomic memory operation instructions.

2025-05-29 Thread Peter Bergner
On 5/29/25 5:35 AM, Segher Boessenkool wrote: > > Add yourself to suthors as well? Agreed. Just add your name/email address directly under mine, like so: 2025-05-29 Peter Bergner Jeevitha Pala

[PATCH] Fix makeinfo error from recently-added nodes missing in menu

2025-05-23 Thread Hans-Peter Nilsson
The 6.7 version is what's in Debian 11. I'll commit this as obvious in a few hours. -- >8 -- Commit r16-833-gfbb7f1cb5d3c8b appears to have broken builds with makeinfo from texinfo 6.7 (Debian: 6.7.0.dfsg.2-6) - but not 6.8 (6.8-6+b1). With 6.7, I see (linebreaks manually added): if [ xinfo = x

[PATCH, COMMITTED] MAINTAINERS: Update my email address

2025-05-09 Thread Peter Bergner
MAINTAINERS: Update my email address 2025-05-09  Peter Bergner  /     * MAINTAINERS: Update my email address and add myself to DCO. Signed-off-by: Peter Bergner ---  MAINTAINERS | 5 +++--  1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index

Re: [PATCH] strlen: Handle empty constructor as memset for combining with malloc to calloc [PR87900]

2025-04-29 Thread Hans-Peter Nilsson
Random-typo-spotting-mode activated: On Sat, 19 Apr 2025, Andrew Pinski wrote: > +++ b/gcc/testsuite/gcc.dg/tree-ssa/calloc-10.c > +/* zeroing out via a CONSTRUCTOR should be treated similarly as a msmet and "memset" > diff --git a/gcc/testsuite/gcc.dg/tree-ssa/calloc-11.c > b/gcc/testsuite/gc

[PING][PATCH v3] Add new warning Wmissing-designated-initializers [PR39589]

2025-04-25 Thread Peter Frost
Ping https://gcc.gnu.org/pipermail/gcc-patches/2025-January/672568.html Missed the version 15 freeze with the last ping, I believe the project is open for general development again now?

[PATCH v2] [PR119765] testsuite: adjust amd64-abi-9.c to check both ms and sysv ABIs

2025-04-21 Thread Peter Damianov
attribute function Add test checking parameter is placed in correct register Co-Authored-By: NightStrike Signed-off-by: Peter Damianov --- v2: Remove superflous \[ in regex gcc/testsuite/gcc.target/i386/amd64-abi-9.c | 38 ++--- 1 file changed, 33 insertions(+), 5 deletions

[COMMITTED v2] combine: Correct comments about combine_validate_cost

2025-04-16 Thread Hans-Peter Nilsson
> From: Richard Sandiford > Date: Tue, 15 Apr 2025 09:23:21 +0100 > > Ok to commit? > > OK, thanks. Thanks! Though, I noticed another "cheaper" in the function header. Fixing that one was a more obvious correction (thus committed as such), as per the commit message: what the function determine

Re: [PATCH] [testsuite] [ppc] require ifunc for target_clones test

2025-04-16 Thread Peter Bergner
rly didn't hit this ourselves. I know we have other test cases that use target_clones that should probably get this update too. Not for you to worry about, I'll add that to my teams TODO once stage1 reopens. Peter

Re: [PATCH] [testsuite] [ppc] block-cmp-8 should require powerpc64

2025-04-16 Thread Peter Bergner
st case and the "has_arch_ppc64" test we're using is clearly a compile time only test and the "powerpc64" is the correct hw test to check for 64-bit instruction support on the test system. If it were me, I'd give Segher and the others a couple of days to disagree and not hearing any objections, I'd push it under the "obvious" rule. Peter

Re: [PATCH] [testsuite] [ppc] compile [PR112822] with -mvsx

2025-04-16 Thread Peter Bergner
On 4/15/25 11:44 PM, Alexandre Oliva wrote: > On Apr 15, 2025, Peter Bergner wrote: >> I have verified the modified test case ICEs with the exact same >> error as the original test case using the commit immediately >> before the commit the fixed the ICE. > > Awesome,

Re: [PATCH] testsuite: Add support for GCOV_UNDER_TEST

2025-04-16 Thread Hans-Peter Nilsson
> From: Christophe Lyon > Date: Wed, 16 Apr 2025 14:41:17 +0200 > ping? Since you directed it at me and CC:ed the list; in case that was deliberate: I can only repeat "still ok", but I don't have approval rights to the testsuite parts. > > On Thu, 10 Apr 202

Re: [PATCH] libstdc++: Fix constraint recursion in basic_const_iterator operator- [PR115046]

2025-04-15 Thread Hans-Peter Nilsson
On Tue, 8 Apr 2025, Patrick Palka wrote: > Tested on x86_64-pc-linux-gnu, does this look OK for trunk/14? It's not mentioned very often, but is a general rule: Pretty please, add new files for new tests, don't just edit existing files. (For one: if they start failing, they look like regressio

Re: [PATCH] [testsuite] [ppc] compile [PR112822] with -mvsx

2025-04-15 Thread Peter Bergner
On 4/14/25 11:30 PM, Alexandre Oliva wrote: > On Apr 14, 2025, Peter Bergner wrote: > >> This is an architecture independent test case, so I'm surprised this >> doesn't FAIL on non-powerpc targets since they don't know anything >> about altivec. > &

Re: [PATCH] [testsuite] [ppc] disable -mpowerpc64 for various ilp32 asm-out checks

2025-04-15 Thread Peter Bergner
On 4/15/25 9:36 AM, Peter Bergner wrote: > On 4/15/25 12:01 AM, Alexandre Oliva wrote: >> On Apr 14, 2025, Peter Bergner wrote: >> >>> But -mcpu= should not enable -mpowerpc64 by default for -m32 compiles. >> >> Oh, is that so? It seems to have been the

Re: [PATCH] [testsuite] [ppc] disable -mpowerpc64 for various ilp32 asm-out checks

2025-04-15 Thread Peter Bergner
On 4/15/25 12:01 AM, Alexandre Oliva wrote: > On Apr 14, 2025, Peter Bergner wrote: > >> But -mcpu= should not enable -mpowerpc64 by default for -m32 compiles. > > Oh, is that so? It seems to have been the case for quite a long time. > I can trivially see that GCC 9 alr

Re: [PATCH] [testsuite] [ppc] block-cmp-8 should require powerpc64

2025-04-15 Thread Peter Bergner
ewhat involved change, since the string powerpc64 appears > all over gcc/testsuite/, with various meanings other than a dejagnu > effective target. Sorry. I meant to say I'll have someone from my team do this follow-on patch. Yes, it will probably hit quite a few test cases. No need for you to worry about that. Peter

[PATCH] combine: Correct comment about combine_validate_cost

2025-04-14 Thread Hans-Peter Nilsson
Noticed while investigating a regression for cris-elf with r15-9239-g4d7a634f6d4102 "combine: Allow 2->2 combinations, but with a tweak [PR116398]" (to-be-reported). The comment was introduced when breaking out the combine_validate_cost function, in r0-59417-g64b8935d4809f3. I thought about words

Re: [PATCH] [testsuite] [ppc] disable -mpowerpc64 for various ilp32 asm-out checks

2025-04-14 Thread Peter Bergner
rep ARCH_PPC64 bergner@perch:~/$ ...but here we can see that is does, when the -mcpu=CPU has OPTION_MASK_POWERPC64 as one of its masks. That looks like a bug to me. I'm not sure why atm we don't see that happening on Linux when compiling with -m32. I think if we fix this bug, then we won't need to modify the test cases as you're doing here. Peter

Re: [PATCH] [testsuite] [ppc] block-cmp-8 should require powerpc64

2025-04-14 Thread Peter Bergner
hate the name "powerpc64" and it should probably be renamed to "powerpc64_hw" to be more clear about what it's testing. That said, that should be done in a separate patch. Peter

Re: [PATCH] [testsuite] [ppc] pr87600, pr89313: test for __PPC__ as well

2025-04-14 Thread Peter Bergner
__powerpc__ or __POWERPC__ like we do for other powerpc* targets? That said, I think this probably falls under the "obvious" rule too. Peter

Re: [PATCH] [testsuite] [ppc] ipa-sra-19.c: pass -Wno-psabi on powerpc-*-elf as well

2025-04-14 Thread Peter Bergner
inux-x-powerpc-elf. Ok to install? > > > for gcc/testsuite/ChangeLog > > * gcc.dg/ipa/ipa-sra-19.c: Add -Wno-psabi on ppc-elf too. If you really see a warning with powerpc-*-elf, then I'd consider this falls under the obvious rule. Peter

Re: [PATCH] [testsuite] [ppc] compile [PR112822] with -mvsx

2025-04-14 Thread Peter Bergner
This is an architecture independent test case, so I'm surprised this doesn't FAIL on non-powerpc targets since they don't know anything about altivec. I'd think the following fix should help them too. Peter diff --git a/gcc/testsuite/g++.dg/pr112822.C b/gcc/testsui

[PATCH] [PR119765] testsuite: adjust amd64-abi-9.c to check both ms and sysv ABIs

2025-04-13 Thread Peter Damianov
This test was failing because it was checking that eax was being cleared. For sysv abi, eax contains the number of XMM registers used in the call, but msabi just passes the float arguments twice, both in xmm and general purpose registers. This patch adds tests for both sysv and msabi functions be

Re: [PATCH] testsuite: Add support for GCOV_UNDER_TEST

2025-04-10 Thread Hans-Peter Nilsson
> From: Christophe Lyon > Date: Thu, 10 Apr 2025 15:38:48 +0200 > On Thu, 10 Apr 2025 at 15:29, Hans-Peter Nilsson wrote: > > > > > From: Christophe Lyon > > > Date: Thu, 10 Apr 2025 15:21:23 +0200 > > > > Not sure why I'm CC:ed on this o

Re: [PATCH] testsuite: Add support for GCOV_UNDER_TEST

2025-04-10 Thread Hans-Peter Nilsson
> From: Christophe Lyon > Date: Thu, 10 Apr 2025 15:21:23 +0200 Not sure why I'm CC:ed on this one, not being a maintainer of the testsuite or targets where gcov tests are exercised, but FWIW: LGTM except for the two nits: > ping? > > On Tue, 1 Apr 2025 at 22:37, Christophe Lyon > wrote: > >

[PATCH] rs6000: Disable __builtin_scalar_byte_in_set when using -m32 [PR119629]

2025-04-09 Thread Peter Bergner
-in time? Peter gcc/ PR target/119629 * config/rs6000/rs6000-logue.cc (__builtin_scalar_byte_in_set): Use the no32bit attribute. gcc/testsuite/ PR target/119629 * gcc.target/powerpc/byte-in-set-2.c (dg-error): Update acceptable error messages

Re: [PATCH] [testsuite] [riscv] xfail update-threading on riscv [PR110628]

2025-04-04 Thread Hans-Peter Nilsson
> From: Alexandre Oliva > Date: Mon, 31 Mar 2025 20:59:23 -0300 > On Mar 31, 2025, Jeff Law wrote: > > >> PR tree-optimization/110628 > >> * gcc.dg/tree-ssa/update-threading.c: XFAIL on riscv. > > ?!? This is passing on my tester: > > Indeed, despite the lack of any activity in the PR that cou

Re: [PATCH, OBVIOUS] rs6000: Add Cobol support to traceback table [PR119308]

2025-04-03 Thread Peter Bergner
On 4/2/25 2:57 PM, Peter Bergner wrote: > The AIX traceback table documentation states the tbtab "lang" field for > Cobol should be set to 7. > > Tested on powerpc64le-linux. There are "new" FAILs with the patch (see below) > on the Cobol test cases, but that i

[PATCH, OBVIOUS] rs6000: Add Cobol support to traceback table [PR119308]

2025-04-02 Thread Peter Bergner
ill push it tomorrow unless someone has an objection. Peter gcc/ PR target/119308 * config/rs6000/rs6000-logue.cc (rs6000_output_function_epilogue): Handle GCC COBOL for the tbtab lang field. diff --git a/gcc/config/rs6000/rs6000-logue.cc b/gcc/config/rs6000/rs6000-logu

Re: [PATCH 10/12] testsuite, powerpc: fix broken dg directives

2025-03-26 Thread Peter Bergner
dg-do compile */ > +/* { dg-do compile } */ > /* { dg-options "-mdejagnu-cpu=power8 -mvsx" } */ > /* { dg-require-effective-target powerpc_vsx } */ > I consider these obvious, so you should just push them. Peter

Re: [PATCH] rs6000: Ignore OPTION_MASK_SAVE_TOC_INDIRECT differences in inlining decisions [PR119327]

2025-03-26 Thread Peter Bergner
ignore OPTION_MASK_P{8,10}_FUSION which are also more > like tuning flags. I agree this is more a tuning decision and not an ISA requirement, so we should treat -m{no-,}save-toc-indirect similarly to the fusion options. LGTM, but I cannot approve it. Peter

Re: [PATCH] testsuite: Fix gcc.target/powerpc/vsx-builtin-7.c test [PR119382]

2025-03-25 Thread Peter Bergner
here, they're pretty fragile to changes in the compiler. That said, I'm not sure it's really worth splitting this older Power7 test case up, so I guess adding -fno-ipa-icf is probably the best/easiest of all of the bad options. Segher, any reason you can give on why we shouldn't go the easy route to "fix" (yes, these are air-quotes) this by using -fno-ipa-icf? Peter

Re: [PATCH] testsuite: Fix gcc.target/powerpc/vsx-builtin-7.c test [PR119382]

2025-03-25 Thread Peter Bergner
On 3/25/25 5:17 PM, Segher Boessenkool wrote: > On Tue, Mar 25, 2025 at 03:33:59PM -0500, Peter Bergner wrote: >> Segher, any reason you can give on why we shouldn't go the easy route to >> "fix" (yes, these are air-quotes) this by using -fno-ipa-icf? > > One r

Re: [patch] make vhdl known to the PPC backend

2025-03-23 Thread Peter Bergner
estion of reworking this to just default to i = 0 for C and all unknown languages is probably the best solution. Segher, do you agree? Peter

[COMMITTED] libgfortran/intrinsics: Fix build for targets with int32_t=long int

2025-03-22 Thread Hans-Peter Nilsson
Not many newlib targets (AFAIK the only targets where GFC_INTEGER_4 alias int32_t is a typedef of long int) build libgfortran. These breaks happen from time to time. I wish there was a method to stop int32_t (and its typedef-alias GFC_INTEGER_4) being type-compatible with int. The commit message

Re: [PATCH v2] reassoc: Optimize CMP/XOR expressions [PR116860]

2025-03-16 Thread Hans-Peter Nilsson
On Thu, 13 Mar 2025, Konstantinos Eleftheriou wrote: > Testcases for match.pd patterns > `((a ^ b) & c) cmp d | a != b -> (0 cmp d | a != b)` and > `(a ^ b) cmp c | a != b -> (0 cmp c | a != b)` were failing on some targets, > like PowerPC. > > This patch adds an implemenetation for the optimizati

Re: [PATCH][v3] Simple cobol.dg testsuite

2025-03-13 Thread Hans-Peter Nilsson
On Wed, 12 Mar 2025, Jakub Jelinek wrote: > On Tue, Mar 11, 2025 at 10:06:27PM -0500, Robert Dubner wrote: > On Linux at least when not cross-compiling, exit(1) (or this > STOP RUN ERROR 1) will work as well, I believe the reason is for some > bare metal targets which just don't propagate return

Re: [PATCH] Fortran: fix check for non-optional arrays passed to elemental

2025-02-28 Thread Peter Hill
No problem, created PR119054 with a reproducer and some details. Cheers, Peter On Thu, 27 Feb 2025 at 20:45, Jerry D wrote: > > On 2/27/25 12:33 PM, Peter Hill wrote: > > On Thu, 27 Feb 2025 at 18:09, Jerry D wrote: > >> > >> On 2/27/25 7:38 AM, Pe

Re: [PATCH] Fortran: fix check for non-optional arrays passed to elemental

2025-02-27 Thread Peter Hill
On Thu, 27 Feb 2025 at 18:09, Jerry D wrote: > > On 2/27/25 7:38 AM, Peter Hill wrote: > > Dear all, > > > > The attached patch fixes an ICE in gfc_resolve_code when passing an > > optional array to an elemental procedure with `-pedantic` enabled. > > PR95446

[PATCH] Fortran: fix check for non-optional arrays passed to elemental

2025-02-27 Thread Peter Hill
). The ICE is present since 11.1, so this could be backported? Cheers, Peter gcc/fortran/Changelog * resolve.cc (resolve_elemental_actual): When checking other actual arguments to elemental procedures, don't check attributes of literals and function calls gcc/test

Re: [PATCH v2] rs6000: Adding missed ISA 3.0 atomic memory operation instructions.

2025-02-21 Thread Peter Bergner
new functions." line, rather than 8 consecutive spaces. > * gcc.target/powerpc/amo6.c: Likewise. > * gcc.target/powerpc/amo7.c: Likewise. Both of these test cases have multiple 8 consecutive spaces that should be converted to tabs too. Otherwise, LGTM. We just need Segher's approval now. Peter

[PATCH v2] builtins: Ensure sin and cos properly set errno when INFINITY is passed [PR80042]

2025-02-17 Thread Peter Damianov
POSIX says that sin and cos should set errno to EDOM when infinity is passed to them. Make sure this is accounted for in builtins.def, and add tests. gcc/ PR middle-end/80042 * builtins.def: (sin|cos)(f|l) can set errno. gcc/testsuite/ * gcc.dg/pr80042.c: New testcase. ---

[PATCH] builtins: Ensure sin and cos properly set errno when INFINITY is passed [PR80042]

2025-02-17 Thread Peter Damianov
POSIX says that sin and cos should set errno to EDOM when infinity is passed to them. Make sure this is accounted for in builtins.def, and add tests. gcc/ PR middle-end/80042 * builtins.def: (sin|cos)(f|l) can set errno. gcc/testsuite/ * gcc.dg/pr80042.c: New testcase. ---

Re: [PATCH v2] ira: Add a target hook for callee-saved register cost scale

2025-02-14 Thread Peter Bergner
ix the failures. Note that H.J. pushed the other target hook, so we'll need to revert that before pushing this change. Peter

Re: [PATCH, V2] Fix PR 118541, do not generate unordered fp cmoves for IEEE compares.

2025-02-10 Thread Peter Bergner
On 2/7/25 11:48 PM, Michael Meissner wrote: > On Fri, Feb 07, 2025 at 05:51:19PM -0600, Peter Bergner wrote: >> On 2/7/25 4:02 PM, Michael Meissner wrote: >>> (define_predicate "invert_fpmask_comparison_operator" >>> - (match_code "ne,unlt,unle"))

Re: [PATCH, V2] Fix PR 118541, do not generate unordered fp cmoves for IEEE compares.

2025-02-07 Thread Peter Bergner
udp\M|\mfcmpu\M} 1 } } */ I think this would be safer if we split this into two test cases, one with each of the functions. I'm worried that if we were to somehow accidentally swap the results of your new code, we'd still produce one each of the instructions above and we wouldn't notice. I think it's safer to have one test case for each function here (ordered and normal) and explicitly look for the insns you want, while at the same time using scan-assembler-not for the insns you don't want to see. Peter

[PATCH, COMMITTED] rs6000: Add cast to avoid pointer to integer comparison warning [PR117674]

2025-02-07 Thread Peter Bergner
I pushed the following fix as obvious after testing the build and verifying the warning was silenced. Peter rs6000: Add cast to avoid pointer to integer comparison warning [PR117674] libgcc/ PR target/117674 * config/rs6000/linux-unwind.h (ppc_backchain_fallback): Add cast to

[PING][PATCH v3] Add new warning Wmissing-designated-initializers [PR39589]

2025-02-05 Thread Peter Frost
Ping https://gcc.gnu.org/pipermail/gcc-patches/2025-January/672568.html

Re: [PATCH v2] ira: Add a target hook for callee-saved register cost scale

2025-02-03 Thread Peter Bergner
a strong explanation of why it was > wrong. In my opinion, the patch is not wrong, but rather has exposed latent issues that need to be worked on and fixed. Ive asked Surya to continue working on the fallout (see her other patches), but help from others is always appreciated. Peter

Re: [PATCH v2] ira: Add a target hook for callee-saved register cost scale

2025-02-03 Thread Peter Bergner
; address any of the fallout. Maybe he's gone? Peter? Surya (she) is working on the fallout. In fact, one patch earlier this year was committed and reverted due to some aarch64 fallout. That said, Andrew mentioned on IRC that he was interested in getting that patch back in for aarch6

Re: [PATCH v5] testsuite/118127: Pass fortran tests on ppc64le for IEEE128 long doubles

2025-01-29 Thread Peter Bergner
; * gfortran.dg/large_real_kind_form_io_2.f90: Likewise. LGTM, although I cannot approve it. Peter

Re: [PATCH v3] testsuite/118127: Pass fortran tests on ppc64le for IEEE128 long doubles

2025-01-28 Thread Peter Bergner
On 1/28/25 8:04 PM, Siddhesh Poyarekar wrote: > ...do you think this would be better off being called > ppc_not_well_defined_denormals > or something like that? It's better than ppc_default_long_double_not_ieee! :-) Peter

Re: [PATCH v3] testsuite/118127: Pass fortran tests on ppc64le for IEEE128 long doubles

2025-01-28 Thread Peter Bergner
t_ieee or some such. Maybe the following would work??? #if defined(__LONG_DOUBLE_IEEE128__) #error "__LONG_DOUBLE_IEEE128__ is defined" #endif If not that, then we could test for either __LONG_DOUBLE_IBM128__ or __SIZEOF_LONG_DOUBLE__ == 8. Peter

Re: [PATCH v3] testsuite/118127: Pass fortran tests on ppc64le for IEEE128 long doubles

2025-01-28 Thread Peter Bergner
s would also return true for a long double == double build (ie, -mlong-double-64). Maybe we should instead have a positive test ppc_default_long_double_ieee and xfail using ! ppc_default_long_double_ieee? If we go the ppc_default_long_double_ieee route, you can check for the existence of __LONG_DOUBLE_IEEE128__. Peter

Re: [PATCH] lra: initialize allocated_hard_reg_p[] for hard regs referenced in RTL [PR118533]

2025-01-28 Thread Peter Bergner
he countdown loop. How about the following instead? for (int j = 0; j < hard_regno_nregs (hard_regno, mode); j++) Peter

[PATCH V2] rs6000: Disassemble opaque modes using subregs to allow optimizations [PR109116]

2025-01-16 Thread Peter Bergner
raries team has confirmed that performance of their tests improved when using this patch. This passed bootstrap and regtesting with no regressions on powerpc64le-linux and powerpc64-linux. Ok for trunk? Peter gcc/ PR target/109116 * config/rs6000/mma.md (unspec): Delete UNS

Re: [PATCH] rs6000: Fix loop limit for built-in constant checking

2025-01-16 Thread Peter Bergner
On 1/10/25 11:18 AM, Peter Bergner wrote: > The loop checking for built-in constant operand restrictions was missing > some operands due to the loop limit being too small. Fixing that exposed > a testsuite failure which is caused by a typo in the pmxvi4ger8pp definition > where we

Re: [PATCH] rs6000: Fix ICE for invalid constants in built-in functions

2025-01-16 Thread Peter Bergner
On 1/13/25 3:59 PM, Peter Bergner wrote: > rs6000: Fix ICE for invalid constants in built-in functions > > For invalid constant operand values used in built-in functions, return > const0_rtx to signify an error occurred during expansion. > > Bootstrapped and retested on powerlc

[PATCH] rs6000: Fix ICE for invalid constants in built-in functions

2025-01-13 Thread Peter Bergner
gnify an error occurred during expansion. Bootstrapped and retested on powerlc64le-linux with no regressions. Ok for trunk and backports after some trunk burn-in time? Peter gcc/ * config/rs6000/rs6000-builtin.cc (rs6000_expand_builtin): Return const0_rtx when there is an error.

[PATCH] rs6000: Fix loop limit for built-in constant checking

2025-01-10 Thread Peter Bergner
ition where we had made the PMASK field too small. Bootstrapped and retested on powerpc64le-linux with no regressions. Ok for trunk and backports after some trunk burn-in time? Peter gcc/ * config/rs6000/rs6000-builtin.cc (rs6000_expand_builtin): Use correct array size for the

[PATCH] c-pretty-print.cc (pp_c_tree_decl_identifier): Strip private name encoding, PR118303

2025-01-06 Thread Hans-Peter Nilsson
Regtested native x86_64-linux. Also tested mmix-knuth-mmixware, where it fixes ONE testcase, but one which is a regression on master. The PR component is currently ipa, changed from the original middle-end. IIUC this bug-fix doesn't fit the ipa category IMHO, but rather more general tree-opt

[COMMITTED] testsuite: Replace MMIX-specific adjustments with TARGET_CALLEE_COPIES-adjustments

2025-01-03 Thread Hans-Peter Nilsson
Also tested that the pattern also matches a TARGET_CALLEE_COPIES-false target. -- >8 -- With the dump now emitting "privatized symbols" in the default "%s.%lu" format also for MMIX, there's still a difference for MMIX. This time it's because numbers have changed (copies introduced before this poin

[COMMITTED] MMIX: Replace format for private symbol output by output-time adjustment

2025-01-03 Thread Hans-Peter Nilsson
All this started with belated MMIX regression patrol in observance of the holidays, looking at gcc.dg/Wstringop-overflow-27.c as a regression for target mmix. That's because of a single message not matched, where there is "note: destination object 'vla::22'" instead of the expected "note: destinat

[PATCH v3] Add new warning Wmissing-designated-initializers [PR39589]

2025-01-03 Thread Peter Frost
v3 Patch: * adds documentation * fixes formatting * minor code cleanup Currently the behaviour of Wmissing-field-initializers is inconsistent between C and C++. The C warning assumes that missing designated initializers are deliberate, and does not warn. The C++ warning doe

Re: [patch 1/2] Add new target hook to assemble a variable

2024-12-29 Thread Hans-Peter Nilsson
On Thu, 19 Dec 2024, Georg-Johann Lay wrote: > This patch adds a new target hook that allows the backend to asm output > a variable definition in its own way. This hook is needed because > varasm.cc imposes a very restrictive layout for all variable definitions > which will be basically ELF style

[COMMITTED] MMIX: Correct handling of C23 (...) functions, PR117618

2024-12-29 Thread Hans-Peter Nilsson
This commit fixes a MMIX C23 (...)-handling bug; failing gcc.dg/c23-stdarg-[46789].c execution tests. But, this isn't about a missing "|| arg.type != NULL_TREE" in the PORT_setup_incoming_varargs function like most other PR114175 port bugs exposed by the gcc.dg/c23-stdarg-6.c .. -9.c tests; the M

[COMMITTED, v2] libstdc++-v3/testsuite/.../year_month_day/3.cc, 4.cc: Cut down forsimulators

2024-12-28 Thread Hans-Peter Nilsson
v2: With Jonathan Wakely's feedback, centering the simulator range on days(0). Different changes than v1, but supposedly minimally intrusive. Committed after testing native x86_64-linux and cross to mmix. -- >8 -- These two long-running tests happened to fail for me when run in parallel (nprocs

Re: [PATCH] libstdc++-v3/testsuite/.../year_month_day/3.cc, 4.cc: Cut down for simulators

2024-12-27 Thread Hans-Peter Nilsson
On Sat, 28 Dec 2024, Hans-Peter Nilsson wrote: > Hopefully exiting the loop after a million runs ... Correction, FAOD: that'd be "a hundred thousand" for the value in the patch. brgds, H-P

[PATCH] libstdc++-v3/testsuite/.../year_month_day/3.cc, 4.cc: Cut down for simulators

2024-12-27 Thread Hans-Peter Nilsson
I can't think of a straightforward way to prune these two similar tests to a more meaningful subset: there's no easy pruning to each Nth iteration instead of every iteration. Hopefully exiting the loop after a million runs at the beginning of the tested range of dates, will catch the gist of the te

[COMMITTED] libgfortran: Fix build for targets with int32_t=long int

2024-12-23 Thread Hans-Peter Nilsson
Not many newlib targets (IIRC the only targets where int32_t is a typedef of long int) build libgfortran. Building and testing fortran testsuite is usually a cheap way to get additional coverage for a port, except that a couple of times a year, there are these silly type-related breakages. Maybe

[PATCH] testsuite/gcc.dg/memcmp-1.c: Cut down a factor of 7 for simulators

2024-12-22 Thread Hans-Peter Nilsson
I could do it just for target mmix, but that wouldn't help other simulator targets. Using different primes is deliberate. Ok to commit? -- >8 -- Running tests in parallel on my 4.5y+ old laptop made this test time out: the test itself runs in 9m20s, the timeout being 10 minutes with the 2x facto

[Committed] testsuite: Force max-completely-peeled-insns=300 for CRIS, PR118055

2024-12-16 Thread Hans-Peter Nilsson
Committed. An alternative would have been to restrict the scan-tree-dump-times lines in the tests to a list of known targets, but that's more of a testsuite maintainer-level change (not actually a valid excuse). CC to m68k maintainers, who might want to check that 300 fits and add m68k to the lis

[PATCH] testsuite/gcc.dg/tree-ssa/pr117973-1.c: New test

2024-12-09 Thread Hans-Peter Nilsson
I could probably assume that this is what you had in mind, but anyway: Ok to commit? -- >8 -- PR117973 covers the aspect of non-LOGICAL_OP_NON_SHORT_CIRCUIT targets for PR111456, for which the test-case gcc.dg/tree-ssa/pr111456-1.c started failing as described in PR117954. * gcc.dg/tree-s

[PATCH v3] testsuite/gcc.dg/tree-ssa/pr111456-1.c: Handle fallout

2024-12-09 Thread Hans-Peter Nilsson
> From: Richard Biener > Date: Mon, 9 Dec 2024 10:06:49 +0100 > As Andrew said the fix the testcase was written for was targeting > --param logical-op-non-short-circuit=1 it makes more sense to force > that so we continue to check it works. 'k, that's a valid argument. > We should simply track

Re: [PATCH v2] testsuite/gcc.dg/tree-ssa/pr111456-1.c: Handle fallout

2024-12-08 Thread Hans-Peter Nilsson
> From: Sam James > Date: Sun, 08 Dec 2024 19:06:12 + > Hans-Peter Nilsson writes: > > > v2: oops, typo: component is tree-optimization, not tree-ssa. > > Resent for the benefit of autotesters that don't yet > > understand natural language. > > &

[PATCH v2] testsuite/gcc.dg/tree-ssa/pr111456-1.c: Handle fallout

2024-12-08 Thread Hans-Peter Nilsson
v2: oops, typo: component is tree-optimization, not tree-ssa. Resent for the benefit of autotesters that don't yet understand natural language. Forcing a fail and marking as xfail is IMHO better than passing --param=logical-op-non-short-circuit=0 or #pragma GCC unroll, making the test pass. To wi

[PATCH] testsuite/gcc.dg/tree-ssa/pr111456-1.c: Handle fallout

2024-12-08 Thread Hans-Peter Nilsson
Forcing a fail and marking as xfail is IMHO better than passing --param=logical-op-non-short-circuit=0 or #pragma GCC unroll, making the test pass. To wit, this makes it observable when it's fixed. Ok to commit? -- >8 -- This is expected fallout from r15-5646-gd1cf0d7a0f27fd as described by that

Re: [PATCH v3] zero_extend(not) -> xor optimization [PR112398]

2024-12-07 Thread Hans-Peter Nilsson
On Sat, 30 Nov 2024, Jeff Law wrote: > > > On 11/28/24 5:26 AM, Alexey Merzlyakov wrote: > > This patch adds optimization of the following patterns: > > > >(zero_extend:M (subreg:N (not:O==M (X:Q==M -> > >(xor:M (zero_extend:M (subreg:N (X:M)), mask)) > >... where the mask is GE

Re: [PATCH] PR target/117669 - RISC-V:The 'VEEWTRUNC4' iterator 'RVVMF2BF' type condition error

2024-11-29 Thread Hans-Peter Nilsson
On Wed, 20 Nov 2024, Feng Wang wrote: > This patch fix the wrong condition for RVVMF2BF. It should be > TARGET_VECTOR_ELEN_BF_16. > gcc/ChangeLog: > > PR target/117669 > * config/riscv/vector-iterators.md: > > Signed-off-by: Feng Wang There's missing text after the ":", where one w

Re: [PATCH v2 10/14] Support for 64-bit location_t: gimple parts

2024-11-24 Thread Hans-Peter Nilsson
On Sat, 16 Nov 2024, Lewis Hyatt wrote: > The size of struct gimple increases by 8 bytes with the change in size of > location_t from 32- to 64-bit Half-way scrolling through the patches, this seems a good time for a possibly disruptive comment from the side-line: ;-) For the size-critical types

Re: [PATCH] rs6000: Inefficient vector splat of small V2DI constants [PR107757]

2024-11-20 Thread Peter Bergner
ption is implied by -mcpu=power8, so it not needed. Please remove it. > +++ b/gcc/testsuite/gcc.target/powerpc/pr107757-2.c > @@ -0,0 +1,13 @@ > +/* { dg-do compile } */ > +/* { dg-options "-mdejagnu-cpu=power8 -mvsx -O2" } */ Likewise. The rest LGTM. Peter

Re: [PATCH V2 3/11] Do not allow -mvsx to boost processor to power7.

2024-11-14 Thread Peter Bergner
patch. I'll refrain from reviewing the rest of the patch, as it will obviously change by moving it to a preparatory patch. Peter

Re: [PATCH V2 10/11] Add support for -mcpu=future

2024-11-14 Thread Peter Bergner
ding a useless isa flag which would require a user visible -m, correct? I'd prefer this go in before the arch flags patch too, but I also don't want to add another -m patch to do it, so I'm undecided on this. Segher, do you have a preference on before or after? Peter

Re: [PATCH V2 11/11] Add -mcpu=future tuning support.

2024-11-14 Thread Peter Bergner
e to power10 and power11. Obviously, this patch will just follow whatever we decide to do for the other -mcpu=future patch. Peter

Re: [PATCH V2 9/11] Update tests to work with architecture flags changes.

2024-11-14 Thread Peter Bergner
c.target/powerpc/pr115688.c > b/gcc/testsuite/gcc.target/powerpc/pr115688.c > index 5222e66ef17..00c7c301436 100644 > --- a/gcc/testsuite/gcc.target/powerpc/pr115688.c > +++ b/gcc/testsuite/gcc.target/powerpc/pr115688.c > @@ -7,7 +7,8 @@ > > /* Verify there is no ICE under 32 bit env. */ > > -__attribute__((target("vsx"))) > +/* cpu=power7 must be used to enable VSX. */ > +__attribute__((target("cpu=power7,vsx"))) > int test (void) > { >return 0; Same question as above. Why the need for adding -mvsx here? Peter

Re: [PATCH V2 4/11] Change TARGET_POPCNTB to TARGET_POWER5

2024-11-14 Thread Peter Bergner
x27;m speaking of patches 4/11, 5/11. 7/11 and 8/11. I don't see a 6/11. Did you forget to email that? Was that for changing TARGET_FOO to TARGET_POWER6? If so, then that should be handled like patches 4 thru 8. Peter

[PING #3][PATCH v2] Add new warning Wmissing-designated-initializers [PR39589]

2024-11-14 Thread Peter Frost
Hi all, Pinginghttps://gcc.gnu.org/pipermail/gcc-patches/2024-September/662590.html for a review if anyone has a moment. Many thanks, Peter

Re: [PATCH V2 1/11] Add rs6000 architecture masks.

2024-11-09 Thread Peter Bergner
On 11/8/24 5:12 PM, Segher Boessenkool wrote: > On Fri, Nov 08, 2024 at 02:28:11PM -0600, Peter Bergner wrote: >> On 11/8/24 1:44 PM, Michael Meissner wrote: >>> diff --git a/gcc/config/rs6000/rs6000-arch.def >>> b/gcc/config/rs6000/rs6000-arch.def >>> new fi

Re: [PATCH V2 1/11] Add rs6000 architecture masks.

2024-11-08 Thread Peter Bergner
y the Contributed by Richard Kenner line? Cut/paste error? Peter

Re: [PATCH] middle-end: Use rtx_equal_p in notice_stack_pointer_modification_1 [PR117359]

2024-11-06 Thread H. Peter Anvin
On November 6, 2024 10:15:13 AM PST, Jakub Jelinek wrote: >On Wed, Nov 06, 2024 at 10:03:25AM -0800, H. Peter Anvin wrote: >> The issue is that we want the frame pointer chain to be maintained, even >> across alternatives. > >If the current function doesn't have frame po

Re: [PATCH] middle-end: Use rtx_equal_p in notice_stack_pointer_modification_1 [PR117359]

2024-11-06 Thread H. Peter Anvin
On November 6, 2024 8:31:53 AM PST, Uros Bizjak wrote: >On Wed, Nov 6, 2024 at 5:23 PM Jakub Jelinek wrote: >> >> On Wed, Nov 06, 2024 at 05:05:54PM +0100, Uros Bizjak wrote: >> > Please see [1]: >> > >> > /* >> > * This output constraint should be used for any inline asm which has a >> > "call

Re: [PATCH] middle-end: Use rtx_equal_p in notice_stack_pointer_modification_1 [PR117359]

2024-11-06 Thread H. Peter Anvin
On November 6, 2024 7:27:51 AM PST, Uros Bizjak wrote: >On Wed, Nov 6, 2024 at 11:57 AM Jakub Jelinek wrote: >> >> On Wed, Nov 06, 2024 at 10:44:54AM +0100, Uros Bizjak wrote: >> > After some more thinking and considering all recent discussion >> > (thanks!), I am convinced that a slightly simpli

Re: [PATCH, OBVIOUS] testsuite: Fix up gcc.target/powerpc/safe-indirect-jump-3.c test [PR117444]

2024-11-05 Thread Peter Bergner
and failed the asm scan. It worked with -O1, but that just points to the test case being a little fragile wrt optimization, so I deemed it safer to go with the -fjump-tables option, which mimics the old behavior exactly. Peter

[PATCH, OBVIOUS] testsuite: Fix up gcc.target/powerpc/safe-indirect-jump-3.c test [PR117444]

2024-11-05 Thread Peter Bergner
back. Tested on powerpc64le-linux and verified it's fixed. I pushed this as obvious, since it gives us back the old behavior the test case was expecting and the test case is now immune from any future changes in jump table generation behavior. Peter 2024-11-05 Peter Bergner gcc/test

Re: [PATCH v2] Add new warning Wmissing-designated-initializers [PR39589]

2024-10-06 Thread Peter Frost
Ping https://gcc.gnu.org/pipermail/gcc-patches/2024-September/662590.html

Re: [PATCH v2] rs6000: Fix issue in specifying PTImode as an attribute [PR106895]

2024-10-03 Thread Peter Bergner
Please use {} quoting, and no backslashes. Also use \m and \M. > > Or something like > scan-assembler { \mstq .*[02468], } > (you do not have to match the things you don't care about, and you only > need to look at the last digit to see if a number is even). I think a better idea is to change this to a { dg-do assemble } test case, since the assembler will verify that the register number is even and will also verify the offset is valid too. Then the dg-final can be just: /* { dg-final { scan-assembler {\mstq\M} } } */ Peter

[PATCH] libstdc++-v3: Fix signed-overflow warning for newlib/ctype_base.h, PR116895

2024-09-29 Thread Hans-Peter Nilsson
FWIW, I see "typedef char mask;" also for bionic and openbsd. Tested for cris-elf. Ok to commit? -- >8 -- There are 100+ regressions when running the g++ testsuite for newlib targets (probably excepting ARM-based ones) e.g cris-elf after commit r15-3859-g63a598deb0c9fc "libstdc++: #ifdef out #pr

[committed] testsuite/gfortran.dg/open_errors_2.f90: Remove now-redundant file deletion

2024-09-26 Thread Hans-Peter Nilsson
Only because I wrote earlier that I'd do this patch. Committed as obvious. Sanity-checked by running the test in a native tree as "make check-gcc-fortran RUNTESTFLAGS=dg.exp=open_errors_2.f90" -- >8 -- Now that fort.N files are removed by the testsuite framework, remove this single "manual" file

  1   2   3   4   5   6   7   8   9   10   >