[RFC] Support for nonzero attribute

2022-06-03 Thread Miika via Gcc
Hello, I would like to add support for new attribute: nonzero. Nonzero attribute works the same way as nonnull but instead of checking for NULL, it checks for integer or enum with value 0. Nonzero attribute would issue warnings with new compiler flag -Wnonzero and -Wnonzero-compare. Nonzero

Re: [RFC] Support for nonzero attribute

2022-06-03 Thread Jakub Jelinek via Gcc
On Fri, Jun 03, 2022 at 04:34:48PM +, Miika via Gcc wrote: > Hello, > > I would like to add support for new attribute: nonzero. > Nonzero attribute works the same way as nonnull but instead of checking for > NULL, it checks for integer or enum with value 0. NULL/nullptr is very special

gcc-11-20220603 is now available

2022-06-03 Thread GCC Administrator via Gcc
Snapshot gcc-11-20220603 is now available on https://gcc.gnu.org/pub/gcc/snapshots/11-20220603/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 11 git branch with the following options: git://gcc.gnu.org/git/gcc.git branch

.eh_frame augmentation character for MTE stack tagging

2022-06-03 Thread Florian Mayer via Gcc
Hey! We are in the process of implementing MTE (Memory Tagging Extension) stack tagging in LLVM. To support stack tagging in combination with exceptions, we need to make sure that the unwinder will untag stack frames, to avoid leaving behind stale tags. As such, we need some way to communicate to

Re: [PATCH v3] RISC-V: Implement C[LT]Z_DEFINED_VALUE_AT_ZERO

2022-06-03 Thread Philipp Tomsich
Thank you for catching this one. I'll provide a fix. On Fri, 3 Jun 2022 at 16:56, H.J. Lu wrote: > > On Fri, May 13, 2022 at 1:17 PM Philipp Tomsich > wrote: > > > > The Zbb support has introduced ctz and clz to the backend, but some > > transformations in GCC need to know what the value of

[Bug testsuite/105837] New: New test c-c++-common/diagnostic-format-sarif-file-4.c in r13-967-g6cf276ddf22066 fails

2022-06-03 Thread seurer at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105837 Bug ID: 105837 Summary: New test c-c++-common/diagnostic-format-sarif-file-4.c in r13-967-g6cf276ddf22066 fails Product: gcc Version: 13.0 Status: UNCONFIRMED

Re: [PATCH] c++: cv-quals of dummy obj for non-dep memfn call [PR105637]

2022-06-03 Thread Patrick Palka via Gcc-patches
On Fri, 3 Jun 2022, Marek Polacek wrote: > On Fri, Jun 03, 2022 at 11:16:26AM -0400, Jason Merrill via Gcc-patches wrote: > > On 6/3/22 11:04, Patrick Palka wrote: > > > > > @@ -4319,15 +4319,32 @@ maybe_dummy_object (tree type, tree* binfop) > > > > > if (binfop) > > > > >*binfop =

[Bug c++/100374] Type-constraints of member function templates should not be substituted into during implicit instantiation

2022-06-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100374 --- Comment #2 from CVS Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:43c013df02fdb07f9b7a5e7e6669e6d69769d451 commit r13-981-g43c013df02fdb07f9b7a5e7e6669e6d69769d451 Author: Patrick Palka Date:

Re: [Patch] OpenMP/Fortran: Add support for firstprivate and allocate clauses on scope construct

2022-06-03 Thread Jakub Jelinek via Gcc-patches
On Fri, Jun 03, 2022 at 03:37:56PM +0200, Tobias Burnus wrote: > Simple patch. Testcases based on the C/C++ commit. > For allocate, I found an unrelated bug which prevented me from adding > the associated testcase: https://gcc.gnu.org/PR105836 > > Tested on x86-64 (w/o offloading). > OK for

Re: [PATCH v3] RISC-V: Implement C[LT]Z_DEFINED_VALUE_AT_ZERO

2022-06-03 Thread H.J. Lu via Gcc-patches
On Fri, May 13, 2022 at 1:17 PM Philipp Tomsich wrote: > > The Zbb support has introduced ctz and clz to the backend, but some > transformations in GCC need to know what the value of c[lt]z at zero > is. This affects how the optab is generated and may suppress use of > CLZ/CTZ in tree passes. > >

Re: [PATCH] c++: cv-quals of dummy obj for non-dep memfn call [PR105637]

2022-06-03 Thread Marek Polacek via Gcc-patches
On Fri, Jun 03, 2022 at 11:16:26AM -0400, Jason Merrill via Gcc-patches wrote: > On 6/3/22 11:04, Patrick Palka wrote: > > > > @@ -4319,15 +4319,32 @@ maybe_dummy_object (tree type, tree* binfop) > > > > if (binfop) > > > >*binfop = binfo; > > > >- if (current_class_ref > > > > -

[Bug tree-optimization/105835] Dead Code Elimination Regression at -O1 (trunk vs. 12.1.0)

2022-06-03 Thread roger at nextmovesoftware dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105835 Roger Sayle changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug tree-optimization/105834] New: Dead Code Elimination Regression at -O2 (trunk vs. 12.1.0)

2022-06-03 Thread theodort at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105834 Bug ID: 105834 Summary: Dead Code Elimination Regression at -O2 (trunk vs. 12.1.0) Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/105835] New: Dead Code Elimination Regression at -O1 (trunk vs. 12.1.0)

2022-06-03 Thread theodort at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105835 Bug ID: 105835 Summary: Dead Code Elimination Regression at -O1 (trunk vs. 12.1.0) Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal

[Bug c++/105797] [11/12 Regression] Internal compiler error: Segmentation fault ( fn_type_unification -> satisfaction_cache::satisfaction_cache -> iterative_hash_template_arg )

2022-06-03 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105797 Patrick Palka changed: What|Removed |Added Summary|[11/12/13 Regression] |[11/12 Regression] Internal

[Bug fortran/105836] New: [OpenMP] segfault when assigning after firstprivate + allocate

2022-06-03 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105836 Bug ID: 105836 Summary: [OpenMP] segfault when assigning after firstprivate + allocate Product: gcc Version: 13.0 Status: UNCONFIRMED Keywords: openmp,

[Patch] OpenMP/Fortran: Add support for firstprivate and allocate clauses on scope construct

2022-06-03 Thread Tobias Burnus
Simple patch. Testcases based on the C/C++ commit. For allocate, I found an unrelated bug which prevented me from adding the associated testcase: https://gcc.gnu.org/PR105836 Tested on x86-64 (w/o offloading). OK for mainline? Tobias - Siemens Electronic Design Automation GmbH;

Re: [PATCH] c++: cv-quals of dummy obj for non-dep memfn call [PR105637]

2022-06-03 Thread Patrick Palka via Gcc-patches
On Thu, 2 Jun 2022, Jason Merrill wrote: > On 6/2/22 15:57, Patrick Palka wrote: > > On Thu, 2 Jun 2022, Jason Merrill wrote: > > > > > On 5/27/22 09:57, Patrick Palka wrote: > > > > On Thu, 26 May 2022, Patrick Palka wrote: > > > > > > > > > On Thu, 26 May 2022, Jason Merrill wrote: > > > > >

[Bug c++/105637] [12/13 Regression] Wrong overload selected in base class

2022-06-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105637 --- Comment #3 from CVS Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:44a5bd6d933d86ed988fc4695aa00f122cf83eb4 commit r13-984-g44a5bd6d933d86ed988fc4695aa00f122cf83eb4 Author: Patrick Palka Date:

[Bug tree-optimization/105833] New: Dead Code Elimination Regression at -O2 (trunk vs. 12.1.0)

2022-06-03 Thread theodort at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105833 Bug ID: 105833 Summary: Dead Code Elimination Regression at -O2 (trunk vs. 12.1.0) Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal

Re: [PATCH] c++: cv-quals of dummy obj for non-dep memfn call [PR105637]

2022-06-03 Thread Patrick Palka via Gcc-patches
On Fri, 3 Jun 2022, Jason Merrill wrote: > On 6/3/22 10:46, Patrick Palka wrote: > > On Thu, 2 Jun 2022, Jason Merrill wrote: > > > > > On 6/2/22 15:57, Patrick Palka wrote: > > > > On Thu, 2 Jun 2022, Jason Merrill wrote: > > > > > > > > > On 5/27/22 09:57, Patrick Palka wrote: > > > > > > On

[Bug c++/105637] [12 Regression] Wrong overload selected in base class

2022-06-03 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105637 Patrick Palka changed: What|Removed |Added Summary|[12/13 Regression] Wrong|[12 Regression] Wrong

[Bug c++/105797] [11/12/13 Regression] Internal compiler error: Segmentation fault ( fn_type_unification -> satisfaction_cache::satisfaction_cache -> iterative_hash_template_arg )

2022-06-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105797 --- Comment #3 from CVS Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:df4f95dbd4764ffc1e8270e5b3c0fd71b6724562 commit r13-980-gdf4f95dbd4764ffc1e8270e5b3c0fd71b6724562 Author: Patrick Palka Date:

Re: [PATCH] c++: cv-quals of dummy obj for non-dep memfn call [PR105637]

2022-06-03 Thread Jason Merrill via Gcc-patches
On 6/3/22 10:46, Patrick Palka wrote: On Thu, 2 Jun 2022, Jason Merrill wrote: On 6/2/22 15:57, Patrick Palka wrote: On Thu, 2 Jun 2022, Jason Merrill wrote: On 5/27/22 09:57, Patrick Palka wrote: On Thu, 26 May 2022, Patrick Palka wrote: On Thu, 26 May 2022, Jason Merrill wrote: On

Re: [PATCH] c++: cv-quals of dummy obj for non-dep memfn call [PR105637]

2022-06-03 Thread Jason Merrill via Gcc-patches
On 6/3/22 11:04, Patrick Palka wrote: On Fri, 3 Jun 2022, Jason Merrill wrote: On 6/3/22 10:46, Patrick Palka wrote: On Thu, 2 Jun 2022, Jason Merrill wrote: On 6/2/22 15:57, Patrick Palka wrote: On Thu, 2 Jun 2022, Jason Merrill wrote: On 5/27/22 09:57, Patrick Palka wrote: On Thu, 26

[Bug c++/105637] [12 Regression] Wrong overload selected in base class

2022-06-03 Thread ted at lyncon dot se via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105637 --- Comment #5 from Ted Lyngmo --- Excellent and thanks!

[Bug c++/105637] [12 Regression] Wrong overload selected in base class

2022-06-03 Thread john.robert.lefebvre at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105637 --- Comment #6 from Rob Lefebvre --- Thank you!

[Bug c++/105838] New: g++ 12.1.0 runs out of memory or time when building const std::vector of std::strings

2022-06-03 Thread eisjmbjdfcukqlaely at nthrl dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105838 Bug ID: 105838 Summary: g++ 12.1.0 runs out of memory or time when building const std::vector of std::strings Product: gcc Version: 12.1.0 Status: UNCONFIRMED

[Bug target/105825] [13 Regression] ICE: in extract_insn, at recog.cc:2791 (unrecognizable insn) with -mavx

2022-06-03 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105825 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org

[Bug middle-end/100810] [12 Regression] wrong code at -O1 and above on x86_64-linux-gnu since r12-397-gda9e6e63d1ae22e530ec7baf59f6ed028bf05776

2022-06-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100810 --- Comment #16 from CVS Commits --- The master branch has been updated by Alexandre Oliva : https://gcc.gnu.org/g:be2861fe8c527a5952257462ceca899bb43b1452 commit r13-972-gbe2861fe8c527a5952257462ceca899bb43b1452 Author: Alexandre Oliva

Re: [PATCH] Support multilib-aware target lib flags self-specs overriding

2022-06-03 Thread Alexandre Oliva via Gcc-patches
On Jun 1, 2022, Hans-Peter Nilsson wrote: > On Fri, 20 May 2022, Alexandre Oliva via Gcc-patches wrote: >> >> This patch introduces -multiflags, short for multilib TFLAGS, as an >> option that does nothing by default, but that can be added to TFLAGS >> and mapped to useful options by driver

[COMMITTED] Flesh out unsupported_range.

2022-06-03 Thread Aldy Hernandez via Gcc-patches
It's cleaner to have the unsupported_range fully fleshed out, instead of trapping on every operation. It can also serve as the basis for the default vrange methods that frange and prange will inherit. This patch implements most methods, including union and intersect, to handle an UNDEFINED and a

[COMMITTED] Remove unneeded vrange_traits.

2022-06-03 Thread Aldy Hernandez via Gcc-patches
The traits struct is no longer needed. Tested on x86-64 Linux. gcc/ChangeLog: * value-range.h (struct vrange_traits): Remove. (is_a): Rewrite without vrange_traits. (as_a): Same. --- gcc/value-range.h | 28 +++- 1 file changed, 7 insertions(+),

[Bug tree-optimization/105830] call to memcpy when -nostdlib -nodefaultlibs flags provided

2022-06-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105830 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE

[Bug middle-end/56888] memcpy implementation optimized as a call to memcpy

2022-06-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56888 Andrew Pinski changed: What|Removed |Added CC||hiraditya at msn dot com --- Comment

Re: [PATCH] configure: arrange to use appropriate objcopy

2022-06-03 Thread Alexandre Oliva via Gcc-patches
On Jun 2, 2022, Jan Beulich via Gcc-patches wrote: > * Makefile.in (ORIGINAL_OBJCOPY_FOR_TARGET): New. > * configure.ac: Check for objcopy, producing > ORIGINAL_OBJCOPY_FOR_TARGET. > * configure: Update accordingly. > * exec-tool.in (ORIGINAL_OBJCOPY_FOR_TARGET):

[Bug tree-optimization/105665] [12/13 Regression] wrong code at -Os and above on x86_64-linux-gnu since r12-397-gda9e6e63d1ae22

2022-06-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105665 --- Comment #6 from CVS Commits --- The master branch has been updated by Alexandre Oliva : https://gcc.gnu.org/g:be2861fe8c527a5952257462ceca899bb43b1452 commit r13-972-gbe2861fe8c527a5952257462ceca899bb43b1452 Author: Alexandre Oliva Date:

[COMMITTED] Implement vrange::supports_type_p.

2022-06-03 Thread Aldy Hernandez via Gcc-patches
[I have conservatively assumed that both the loop-ch and loop-unswitch passes, which also use the ranger, only support integers and pointers. If the goal is to handle other types as well, irange::supports_p() should be Value_Range::supports_type_p(), and any uses of int_range_max should be

Re: [PATCH] [PR105665] ivopts: check defs of names in base for undefs

2022-06-03 Thread Alexandre Oliva via Gcc-patches
On Jun 2, 2022, Richard Biener wrote: >> + if (is_a (USE_STMT (use_p))) > I think you also want to skip debug stmts here? Indeed, thanks! (live by the sword, die by the sword ;-) >> + if (dump_file) > && (dump_flags & TDF_DETAILS) please ack >> + if (dump_file) >

[Bug tree-optimization/105830] New: call to memcpy when -nostdlib -nodefaultlibs flags provided

2022-06-03 Thread hiraditya at msn dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105830 Bug ID: 105830 Summary: call to memcpy when -nostdlib -nodefaultlibs flags provided Product: gcc Version: 12.1.1 Status: UNCONFIRMED Severity: normal

[PATCH, FYI] libcody: fix nonportable shell code in revision.stamp build rule

2022-06-03 Thread Alexandre Oliva via Gcc-patches
Two non-portable shell constructs have been long present in libcody's build rule for revision.stamp: $() instead of ``, and += to append to a shell variable. The former seems to work even when bash is operating as /bin/sh, but += doesn't, and it ends up trying to run revision+=M as a command

[COMMITTED] Misc range temporary fixes.

2022-06-03 Thread Aldy Hernandez via Gcc-patches
This fixes a couples places that were using int_range_max, but needed a generic temporary. Found while merging the frange work. Also, copying between range temporaries is actually useful :). Tested on x86-64 Linux. gcc/ChangeLog: * gimple-range-cache.cc (ranger_cache::range_from_dom):

Re: [PATCH] match.pd: Optimize __builtin_mul_overflow_p (x, cst, (stype)0) [PR105777]

2022-06-03 Thread Jakub Jelinek via Gcc-patches
On Thu, Jun 02, 2022 at 01:46:25PM +, Richard Biener wrote: > > Starting x86_64-linux and i686-linux bootstrap/regtest, ok for trunk if > > it passes them? > > OK. Testing found one special case that wasn't handled correctly in the patch, when @1 is -1, INT_MIN / -1 during the lo computation

[Bug tree-optimization/105832] New: Dead Code Elimination Regression at -O3 (trunk vs. 12.1.0)

2022-06-03 Thread theodort at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105832 Bug ID: 105832 Summary: Dead Code Elimination Regression at -O3 (trunk vs. 12.1.0) Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal

[Bug middle-end/30314] optimize multiply-by-constant overflow (wrap) test

2022-06-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=30314 --- Comment #5 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:1982fe2692b6c3b7f969ffc4edac59f9d4359e91 commit r13-979-g1982fe2692b6c3b7f969ffc4edac59f9d4359e91 Author: Jakub Jelinek Date:

Re: [x86 PATCH] PR target/91681: zero_extendditi2 pattern for more optimizations.

2022-06-03 Thread Uros Bizjak via Gcc-patches
On Fri, Jun 3, 2022 at 11:49 AM Roger Sayle wrote: > > > Technically, PR target/91681 has already been resolved; we now recognize the > highpart multiplication at the tree-level, we no longer use the stack, and > we currently generate the same number of instructions as LLVM. However, it > is

Re: [PATCH] x86-64: make "length_vex" also account for VEX.B use by register operand

2022-06-03 Thread Uros Bizjak via Gcc-patches
On Thu, Jun 2, 2022 at 5:11 PM Jan Beulich wrote: > > The length attribute ought to be "the (bounding maximum) length of an > instruction" according to the comment next to its definition. A register > operand encoded using the ModR/M.rm field will additionally use VEX.B > for encoding the highest

Re: [PATCH] i386: Fix up *_doubleword_mask [PR105825]

2022-06-03 Thread Uros Bizjak via Gcc-patches
On Fri, Jun 3, 2022 at 12:17 PM Jakub Jelinek wrote: > > Hi! > > My PR105778 patch apparently broke the following testcase. > If the mask has the top relevant bit clear (i.e. we know we are shifting > by 0 to wordsize bits - 1) but doesn't have all the bits below it set, > we emit andsi3 before

[Bug fortran/105473] semicolon allowed when list-directed read integer with decimal='point'

2022-06-03 Thread harper at msor dot vuw.ac.nz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105473 --- Comment #21 from harper at msor dot vuw.ac.nz --- I have only one problem here, and it's with the f2018 standard seeming to contradict itself in two places that both apply to this program. 12.11.1 begins "The set of input/output error

[Bug middle-end/105777] Failure to optimize __builtin_mul_overflow with constant operand to add+cmp check

2022-06-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105777 --- Comment #3 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:1982fe2692b6c3b7f969ffc4edac59f9d4359e91 commit r13-979-g1982fe2692b6c3b7f969ffc4edac59f9d4359e91 Author: Jakub Jelinek Date:

[Bug middle-end/105777] Failure to optimize __builtin_mul_overflow with constant operand to add+cmp check

2022-06-03 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105777 Jakub Jelinek changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug target/105825] [13 Regression] ICE: in extract_insn, at recog.cc:2791 (unrecognizable insn) with -mavx

2022-06-03 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105825 --- Comment #1 from Jakub Jelinek --- Started with r13-927-gdcfdd2851b297e0005a8490b7f867ca45d1ad340

[PATCH] i386: Fix up *_doubleword_mask [PR105825]

2022-06-03 Thread Jakub Jelinek via Gcc-patches
Hi! My PR105778 patch apparently broke the following testcase. If the mask has the top relevant bit clear (i.e. we know we are shifting by 0 to wordsize bits - 1) but doesn't have all the bits below it set, we emit andsi3 before the shift sequence. When the pattern had :SI for that operand, that

[x86 PATCH] PR target/91681: zero_extendditi2 pattern for more optimizations.

2022-06-03 Thread Roger Sayle
Technically, PR target/91681 has already been resolved; we now recognize the highpart multiplication at the tree-level, we no longer use the stack, and we currently generate the same number of instructions as LLVM. However, it is still possible to do better, the current x86_64 code to generate a

[Bug bootstrap/105831] New: Nonportable syntax in "test" and "[" commands.

2022-06-03 Thread micha at NetBSD dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105831 Bug ID: 105831 Summary: Nonportable syntax in "test" and "[" commands. Product: gcc Version: 12.1.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug c++/87656] Useful flags to enable with -Wall or -Wextra

2022-06-03 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87656 --- Comment #17 from Segher Boessenkool --- (In reply to Jakub Jelinek from comment #16) > Note, what is most important with this are configure scripts, if we start > warning on something still widely used in configure snippets, we'll get >

Re: [x86 PATCH] PR target/91681: zero_extendditi2 pattern for more optimizations.

2022-06-03 Thread Uros Bizjak via Gcc-patches
On Fri, Jun 3, 2022 at 12:08 PM Uros Bizjak wrote: > > On Fri, Jun 3, 2022 at 11:49 AM Roger Sayle > wrote: > > > > > > Technically, PR target/91681 has already been resolved; we now recognize the > > highpart multiplication at the tree-level, we no longer use the stack, and > > we currently

Re: [PATCH] i386: Fix up *_doubleword_mask [PR105825]

2022-06-03 Thread Jakub Jelinek via Gcc-patches
On Fri, Jun 03, 2022 at 12:23:36PM +0200, Uros Bizjak wrote: > I think it is better to leave the operation in its natural mode and > leave the peephole pass to do its magic, depending on the target. So like this? 2022-06-03 Jakub Jelinek PR target/105825 * config/i386/i386.md

[Bug target/105792] SPARC GCC 12.1.0 fails with internal compiler error: in expand_expr_real_2, at expr.cc:10160

2022-06-03 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105792 Eric Botcazou changed: What|Removed |Added Target Milestone|--- |12.2 CC|

[Bug target/105292] [10/11/12/13 regression] ICE in expand_expr_real_2 when compiling with -mvis2

2022-06-03 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105292 Eric Botcazou changed: What|Removed |Added CC||sumbera at volny dot cz --- Comment

Re: [PATCH] i386: Fix up *_doubleword_mask [PR105825]

2022-06-03 Thread Uros Bizjak via Gcc-patches
On Fri, Jun 3, 2022 at 12:38 PM Jakub Jelinek wrote: > > On Fri, Jun 03, 2022 at 12:23:36PM +0200, Uros Bizjak wrote: > > I think it is better to leave the operation in its natural mode and > > leave the peephole pass to do its magic, depending on the target. > > So like this? You can use

[Bug c++/105839] internal compiler error: in tsubst_omp_for_iterator, at cp/pt.cc:18122 (instantiate_pending_templates -> instantiate_decl -> tsubst_lambda_expr)

2022-06-03 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105839 --- Comment #1 from Jakub Jelinek --- Adjusted testcase, so that it is already valid C++17: template void foo (const T ) { [&] (auto&& y) { #pragma omp parallel for for (auto&& [v1, v2] : x) ; } ([]{}); } void bar () {

[pushed] c++: redeclared hidden friend [PR105761]

2022-06-03 Thread Jason Merrill via Gcc-patches
Here, when we see the second declaration of f we match it with the first one, copy over DECL_TEMPLATE_INFO, and then try to use it when parsing the definition, leading to confusion. Tested x86_64-pc-linux-gnu, applying to trunk. PR c++/105761 gcc/cp/ChangeLog: * decl.cc

Re: Ping: [PATCH] Optimize vec_splats of constant V2DI/V2DF vec_extract, PR target/99293

2022-06-03 Thread Michael Meissner via Gcc-patches
On Thu, Jun 02, 2022 at 04:30:19PM -0500, Segher Boessenkool wrote: > On Thu, Jun 02, 2022 at 03:06:52PM -0400, Michael Meissner wrote: > > Ping patch posted on May 13th: > > Are you not going to apply any of Will's suggestions? They looked solid > to me. Sure, I will clean up the comments.

Re: [PATCH] c++: value-dep but not type-dep decltype operand [PR105756]

2022-06-03 Thread Patrick Palka via Gcc-patches
On Thu, 2 Jun 2022, Patrick Palka wrote: > On Thu, 2 Jun 2022, Jason Merrill wrote: > > > On 6/1/22 14:20, Patrick Palka wrote: > > > r12-7564-gec0f53a3a542e7 made us instantiate non-constant non-dependent > > > decltype operands by relaxing instantiate_non_dependent_expr to check > > >

[Bug c++/105761] [11/12/13 Regression] ICE on hidden friend definition defined in base type since r11-388-gc4bff4c230c8d341

2022-06-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105761 --- Comment #4 from CVS Commits --- The releases/gcc-12 branch has been updated by Jason Merrill : https://gcc.gnu.org/g:2843bfa21073dd1ac222540e189e8bcf40afc2c0 commit r12-8456-g2843bfa21073dd1ac222540e189e8bcf40afc2c0 Author: Jason Merrill

[Bug c++/105840] confusing diagnostic when naming the wrong class in a constructor

2022-06-03 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105840 --- Comment #3 from Marek Polacek --- Ah, that sounds great to me.

[Bug c++/105840] New: confusing diagnostic when naming the wrong class in a constructor

2022-06-03 Thread barry.revzin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105840 Bug ID: 105840 Summary: confusing diagnostic when naming the wrong class in a constructor Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug c++/105756] [12/13 Regression] ICE in cxx_eval_constant_expression at cp/constexpr.cc:7586: unexpected expression ‘ElemSize’ of kind template_parm_index

2022-06-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105756 --- Comment #3 from CVS Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:0ecb6b906f215ec56df1a555139abe9ad95414fb commit r13-986-g0ecb6b906f215ec56df1a555139abe9ad95414fb Author: Patrick Palka Date:

[PATCH/RFC take #2] cprop_hardreg... Third time's a charm.

2022-06-03 Thread Roger Sayle
Hi Richard, Here's a revised version of my patch incorporating both your suggestions. The algorithm now uses two worklist vectors, and pointers to them, alternating between them on each iteration, which allows the code to handle an arbitrary number of passes without the previous code duplication.

[Bug c++/105761] [11/12/13 Regression] ICE on hidden friend definition defined in base type since r11-388-gc4bff4c230c8d341

2022-06-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105761 --- Comment #3 from CVS Commits --- The master branch has been updated by Jason Merrill : https://gcc.gnu.org/g:284ae8b46f5eef74c0b660a87a7169497f559e73 commit r13-985-g284ae8b46f5eef74c0b660a87a7169497f559e73 Author: Jason Merrill Date:

[Bug c++/105840] confusing diagnostic when naming the wrong class in a constructor

2022-06-03 Thread barry.revzin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105840 --- Comment #2 from Barry Revzin --- I think something to this effect maybe? :9:7: error: attempting to declare constructor for unrelated class 'A'; did you mean to use 'B'? 9 | A(int i); | ^~ | B

[Bug c++/105841] New: Change in behavior of CTAD for alias templates

2022-06-03 Thread avemilia at protonmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105841 Bug ID: 105841 Summary: Change in behavior of CTAD for alias templates Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

Re: Ping: [PATCH] Optimize vec_splats of constant V2DI/V2DF vec_extract, PR target/99293

2022-06-03 Thread Segher Boessenkool
On Fri, Jun 03, 2022 at 01:44:30PM -0400, Michael Meissner wrote: > On Thu, Jun 02, 2022 at 04:30:19PM -0500, Segher Boessenkool wrote: > > On Thu, Jun 02, 2022 at 03:06:52PM -0400, Michael Meissner wrote: > > > Ping patch posted on May 13th: > > > > Are you not going to apply any of Will's

[Bug c++/105761] [11/12/13 Regression] ICE on hidden friend definition defined in base type since r11-388-gc4bff4c230c8d341

2022-06-03 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105761 Jason Merrill changed: What|Removed |Added CC||jason at gcc dot gnu.org

[Bug libgomp/105839] New: internal compiler error: in tsubst_omp_for_iterator, at cp/pt.cc:18122 (instantiate_pending_templates -> instantiate_decl -> tsubst_lambda_expr)

2022-06-03 Thread northon_patrick3 at yahoo dot ca via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105839 Bug ID: 105839 Summary: internal compiler error: in tsubst_omp_for_iterator, at cp/pt.cc:18122 (instantiate_pending_templates -> instantiate_decl -> tsubst_lambda_expr)

[Bug c++/105840] confusing diagnostic when naming the wrong class in a constructor

2022-06-03 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105840 Marek Polacek changed: What|Removed |Added Ever confirmed|0 |1 Keywords|

Re: [PATCH] c++: value-dep but not type-dep decltype operand [PR105756]

2022-06-03 Thread Jason Merrill via Gcc-patches
On 6/3/22 14:13, Patrick Palka wrote: On Thu, 2 Jun 2022, Patrick Palka wrote: On Thu, 2 Jun 2022, Jason Merrill wrote: On 6/1/22 14:20, Patrick Palka wrote: r12-7564-gec0f53a3a542e7 made us instantiate non-constant non-dependent decltype operands by relaxing instantiate_non_dependent_expr

[Bug c++/105761] [11/12/13 Regression] ICE on hidden friend definition defined in base type since r11-388-gc4bff4c230c8d341

2022-06-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105761 --- Comment #5 from CVS Commits --- The releases/gcc-11 branch has been updated by Jason Merrill : https://gcc.gnu.org/g:c27cbeb985f7b6e1759399971b4fe2773e91ca71 commit r11-10047-gc27cbeb985f7b6e1759399971b4fe2773e91ca71 Author: Jason Merrill

[Bug c++/105761] [11/12/13 Regression] ICE on hidden friend definition defined in base type since r11-388-gc4bff4c230c8d341

2022-06-03 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105761 Jason Merrill changed: What|Removed |Added Known to work||11.3.1, 12.1.1, 13.0 Target

[Bug c++/105842] New: rejects-valid: static member function overload set constrained by concepts for class template results in ambiguous call

2022-06-03 Thread joeloser at fastmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105842 Bug ID: 105842 Summary: rejects-valid: static member function overload set constrained by concepts for class template results in ambiguous call Product: gcc

[Bug fortran/105473] semicolon allowed when list-directed read integer with decimal='point'

2022-06-03 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105473 --- Comment #22 from Jerry DeLisle --- 12.11.2 (6) says "if the statement is a READ statement or the error condition occurs in a wait operation for a transfer initiated by a READ statement, all input items or namelist group objects in the

[Bug c/105843] New: pt_BR: wrong translation for "integer constant is so large that it is unsigned"

2022-06-03 Thread hugo_musso_gualandi at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105843 Bug ID: 105843 Summary: pt_BR: wrong translation for "integer constant is so large that it is unsigned" Product: gcc Version: unknown Status: UNCONFIRMED

[Bug translation/105843] pt_BR: wrong translation for "integer constant is so large that it is unsigned"

2022-06-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105843 --- Comment #1 from Andrew Pinski --- The translation project is the upstream for the translations really. https://translationproject.org/team/index.html has the list of emails for the translation team and you should send an email to them.

Salutations --TOFIRSTNA

2022-06-03 Thread GregoryJohnCasamento
gccpatches https://www.google.com/search?q=gcc-patches@gcc.gnu.org GregoryJohnCasamento

[Bug libstdc++/105844] New: std::lcm(50000, 49999) is UB but accepted in a constexpr due to cast to unsigned

2022-06-03 Thread goswin-v-b at web dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105844 Bug ID: 105844 Summary: std::lcm(5, 4) is UB but accepted in a constexpr due to cast to unsigned Product: gcc Version: 12.1.0 Status: UNCONFIRMED

[Bug libstdc++/105844] std::lcm(50000, 49999) is UB but accepted in a constexpr due to cast to unsigned

2022-06-03 Thread goswin-v-b at web dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105844 Goswin von Brederlow changed: What|Removed |Added CC||goswin-v-b at web dot de ---

[Bug fortran/105473] semicolon allowed when list-directed read integer with decimal='point'

2022-06-03 Thread harper at msor dot vuw.ac.nz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105473 --- Comment #23 from harper at msor dot vuw.ac.nz --- Given what "undefined" means in Fortran, I see no bug now. On Fri, 3 Jun 2022, jvdelisle at gcc dot gnu.org wrote: > Date: Fri, 3 Jun 2022 21:04:22 + > From: jvdelisle at gcc dot

[PATCH] c++: Allow mixing GNU/std-style attributes [PR69585]

2022-06-03 Thread Marek Polacek via Gcc-patches
cp_parser_attributes_opt doesn't accept GNU attributes followed by [[]] attributes and vice versa; only a sequence of attributes of the same kind. That causes grief for code like: struct __attribute__ ((may_alias)) alignas (2) struct S { }; or #define EXPORT

[Bug libstdc++/105844] std::lcm(50000, 49999) is UB but accepted in a constexpr due to cast to unsigned

2022-06-03 Thread goswin-v-b at web dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105844 --- Comment #2 from Goswin von Brederlow --- I know the patch doesn't work yet, the static_asserts aren't constexpr. But hopefully it gives someone enough of an idea to fix it.

Re: [PATCH] c++: Allow mixing GNU/std-style attributes [PR69585]

2022-06-03 Thread Jason Merrill via Gcc-patches
On 6/3/22 20:05, Marek Polacek wrote: cp_parser_attributes_opt doesn't accept GNU attributes followed by [[]] attributes and vice versa; only a sequence of attributes of the same kind. That causes grief for code like: struct __attribute__ ((may_alias)) alignas (2) struct S { }; or

[Bug bootstrap/105831] Nonportable syntax in "test" and "[" commands.

2022-06-03 Thread egallager at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105831 Eric Gallager changed: What|Removed |Added CC||egallager at gcc dot gnu.org ---