[Bug sanitizer/103978] AddressSanitizer CHECK failed with threads and thread canceling with glibc 2.28+

2022-01-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103978 --- Comment #8 from Andrew Pinski --- Hmm, works with GCC 8.3.1 from redhat with glibc 2.28.

[Bug sanitizer/103978] AddressSanitizer CHECK failed with threads and thread canceling with glibc 2.28+

2022-01-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103978 --- Comment #9 from Andrew Pinski --- here is the more interesting part, If I do -fexceptions with the C front-end, it works. But with the C++ front-end, neither -fno-exceptions nor -fexceptions work.

[Bug tree-optimization/103986] [9/10 Regression] Miscompilation with -O2 -funswitch-loops and __builtin_unreachable

2022-01-12 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103986 --- Comment #9 from Richard Biener --- There's nothing wrong with the unswitching I think. The exit test is optimized out in VRP2 where the preceeding DOM pass ended up putting some more SSA ranges in, specifically those derived from the unreac

[Bug tree-optimization/103986] [9/10 Regression] Miscompilation with -O2 -funswitch-loops and __builtin_unreachable

2022-01-12 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103986 Richard Biener changed: What|Removed |Added Resolution|--- |DUPLICATE Status|NEW

[Bug tree-optimization/97953] [9/10 Regression] ICE (segfault) during GIMPLE pass: loopdone compiling libgcc/config/libbid/bid128_fma.c:190:1

2022-01-12 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97953 Richard Biener changed: What|Removed |Added CC||daniel at constexpr dot org --- Comment

[Bug tree-optimization/97953] [9/10 Regression] ICE (segfault) during GIMPLE pass: loopdone compiling libgcc/config/libbid/bid128_fma.c:190:1

2022-01-12 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97953 Richard Biener changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug c++/103984] [12 regression] Possible maybe-uninitialized false positive on shaderc-2021.0

2022-01-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103984 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug middle-end/101530] ICE: 'verify_gimple' failed: non-top-level 'bit_field_ref' with __builtin_shufflevector()[0]

2022-01-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101530 --- Comment #6 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:2c4dccb605d485293291878397b42927dc050481 commit r12-6514-g2c4dccb605d485293291878397b42927dc050481 Author: Jakub Jelinek Date: W

[Bug c++/103480] [10/11/12 Regression] -Werror=useless-cast with constexpr destructor

2022-01-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103480 --- Comment #5 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:6bba184ccbf47368eaea27ee2c1e7b850526640b commit r12-6516-g6bba184ccbf47368eaea27ee2c1e7b850526640b Author: Jakub Jelinek Date: W

[Bug c++/103480] [10/11 Regression] -Werror=useless-cast with constexpr destructor

2022-01-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103480 Jakub Jelinek changed: What|Removed |Added Summary|[10/11/12 Regression] |[10/11 Regression] |-

[Bug tree-optimization/97953] [9/10 Regression] ICE (segfault) during GIMPLE pass: loopdone compiling libgcc/config/libbid/bid128_fma.c:190:1

2022-01-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97953 --- Comment #26 from CVS Commits --- The releases/gcc-10 branch has been updated by Richard Biener : https://gcc.gnu.org/g:d4e5ca668498a41af6417721be2ec69b2eac062e commit r10-10391-gd4e5ca668498a41af6417721be2ec69b2eac062e Author: Richard Biene

[Bug tree-optimization/97953] [9/10 Regression] ICE (segfault) during GIMPLE pass: loopdone compiling libgcc/config/libbid/bid128_fma.c:190:1

2022-01-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97953 --- Comment #27 from CVS Commits --- The releases/gcc-9 branch has been updated by Richard Biener : https://gcc.gnu.org/g:c018cf9d12c5909a852c33a200cf816204c219b3 commit r9-9908-gc018cf9d12c5909a852c33a200cf816204c219b3 Author: Richard Biener

[Bug tree-optimization/97953] [9/10 Regression] ICE (segfault) during GIMPLE pass: loopdone compiling libgcc/config/libbid/bid128_fma.c:190:1

2022-01-12 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97953 Richard Biener changed: What|Removed |Added Status|ASSIGNED|RESOLVED Known to fail|

[Bug fortran/103987] New: ice in ao_ref_init_from_ptr_and_range, at tree-ssa-alias.c:840

2022-01-12 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103987 Bug ID: 103987 Summary: ice in ao_ref_init_from_ptr_and_range, at tree-ssa-alias.c:840 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/86465] [9/10/11/12 Regression] C++17 triggers: ‘’ may be used uninitialized in this function

2022-01-12 Thread geoff3jones at googlemail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86465 --- Comment #15 from Geoff --- This appears to still be an issue in gcc 11.2 minimal reproduced example using std::optional https://godbolt.org/z/ebbMe3Wva std::optional empty_optional(int x){ return {}; } std::optional empty_optional_or_t

[Bug middle-end/103987] [12 Regression] ice in ao_ref_init_from_ptr_and_range, at tree-ssa-alias.c:840 since r12-5236-g5aa91072e24c1e16

2022-01-12 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103987 Martin Liška changed: What|Removed |Added Summary|ice in |[12 Regression] ice in

[Bug middle-end/103987] [12 Regression] ice in ao_ref_init_from_ptr_and_range, at tree-ssa-alias.c:840 since r12-5236-g5aa91072e24c1e16

2022-01-12 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103987 Richard Biener changed: What|Removed |Added Target Milestone|--- |12.0 Priority|P3

[Bug middle-end/103987] [12 Regression] ice in ao_ref_init_from_ptr_and_range, at tree-ssa-alias.c:840 since r12-5236-g5aa91072e24c1e16

2022-01-12 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103987 --- Comment #2 from Martin Liška --- Reduced test-case: $ cat pr103987.f CHARACTER*(*) LTYPE, PTYPE, DEFNAM PARAMETER (LTYPE= 1'GIF (Graphics Interchange Format file, landscape orientation)', 2 PTYPE= 3'VGIF (Graph

[Bug tree-optimization/86465] [9/10/11/12 Regression] C++17 triggers: ‘’ may be used uninitialized in this function

2022-01-12 Thread geoff3jones at googlemail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86465 --- Comment #16 from Geoff --- This appears to still be an issue in gcc 11.2 minimal reproduced example using std::optional https://godbolt.org/z/ebbMe3Wva. -std=c++17 -O3 -fsanitize=address -Wall -Werror -Wno-unused std::optional empty_optiona

[Bug middle-end/103987] [12 Regression] ice in ao_ref_init_from_ptr_and_range, at tree-ssa-alias.c:840 since r12-5236-g5aa91072e24c1e16

2022-01-12 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103987 --- Comment #3 from Richard Biener --- # .MEM_261 = VDEF <.MEM_195> grgi03 (&C.4661, &C.4662, &bx, &by, &C.4663, &bx, &by, pixmap.86_80); and the param we're asking for is pixmap.86_80, nothing checks for a POINTER_TYPE here before using ao_ref

[Bug tree-optimization/103977] [12 Regression] ice in try_vectorize_loop_1 since r12-6420-gd3ff7420e941931d32ce2e332e7968fe67ba20af

2022-01-12 Thread avieira at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103977 --- Comment #5 from avieira at gcc dot gnu.org --- Posted a fix on ML: https://gcc.gnu.org/pipermail/gcc-patches/2022-January/588237.html Sorry for the breakage, wrong assumption by my part :(

[Bug tree-optimization/103971] [12 regression] build fails after r12-6420, ICE at libgfortran/generated/matmul_i1.c:2450

2022-01-12 Thread avieira at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103971 --- Comment #1 from avieira at gcc dot gnu.org --- seurer could you check whether https://gcc.gnu.org/pipermail/gcc-patches/2022-January/588237.html fixes this? I don't have easy access to a powerpc target for bootstrap.

[Bug tree-optimization/86465] [9/10/11/12 Regression] C++17 triggers: ‘’ may be used uninitialized in this function

2022-01-12 Thread marc--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86465 --- Comment #17 from Marc Nieper-Wißkirchen --- Does a viable workaround exist that doesn't amount to disabling the warning option altogether? In my case, the actual warning is triggered inside the standard library, which is used by my code that

[Bug middle-end/103987] [12 Regression] ice in ao_ref_init_from_ptr_and_range, at tree-ssa-alias.c:840 since r12-5236-g5aa91072e24c1e16

2022-01-12 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103987 --- Comment #4 from Richard Biener --- C testcase: void foo(); void bar(int i) { foo (i); } void foo(int *p) { *p = 0; }

[Bug libfortran/103985] segfault in finalize_transfer (fbuf_destroy) on (parallel) writing into character / string function argument

2022-01-12 Thread thomas.orgis--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103985 --- Comment #2 from Dr. Thomas Orgis --- You mean every call to a write(), even to a buffer variable, should be a thread synchronization point? That would mean that I swiftly should get rid of those in the performance-critical paths. I hoped it'

[Bug libfortran/103985] segfault in finalize_transfer (fbuf_destroy) on (parallel) writing into character / string function argument

2022-01-12 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103985 --- Comment #3 from anlauf at gcc dot gnu.org --- Can you try gcc-11 or gcc-12? There were some fixes for asynchronous I/O (pr100352) touching the locking mechanism.

[Bug middle-end/103988] New: [OpenACC][2.7] Support array vars in reductions

2022-01-12 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103988 Bug ID: 103988 Summary: [OpenACC][2.7] Support array vars in reductions Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: openacc Severity: normal Prior

[Bug target/103804] ICE: 'global_options' are modified in local context

2022-01-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103804 --- Comment #5 from CVS Commits --- The master branch has been updated by Martin Liska : https://gcc.gnu.org/g:4960516df2f90e6ae16aa03c63c8bf2c702e6bc4 commit r12-6519-g4960516df2f90e6ae16aa03c63c8bf2c702e6bc4 Author: Martin Liska Date: Wed

[Bug target/103804] ICE: 'global_options' are modified in local context

2022-01-12 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103804 Martin Liška changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|---

[Bug tree-optimization/103989] New: [12 regression] std::optional and bogus -Wmaybe-unitialized at -Og

2022-01-12 Thread marc--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103989 Bug ID: 103989 Summary: [12 regression] std::optional and bogus -Wmaybe-unitialized at -Og Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/86465] [9/10/11/12 Regression] C++17 triggers: ‘’ may be used uninitialized in this function

2022-01-12 Thread marc--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86465 Marc Nieper-Wißkirchen changed: What|Removed |Added CC||m...@nieper-wisskirchen.de ---

[Bug tree-optimization/103989] [12 regression] std::optional and bogus -Wmaybe-unitialized at -Og since r12-1992-g6feb628a706e86eb

2022-01-12 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103989 Martin Liška changed: What|Removed |Added Last reconfirmed||2022-01-12 Summary|[12 regres

[Bug tree-optimization/103989] [12 regression] std::optional and bogus -Wmaybe-unitialized at -Og since r12-1992-g6feb628a706e86eb

2022-01-12 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103989 Richard Biener changed: What|Removed |Added Target Milestone|--- |12.0 --- Comment #2 from Richard Biene

[Bug tree-optimization/103990] New: 541.leela_r slower by 4.5-6% with PGO+LTO -Ofast -march=native in the first week of January 2022

2022-01-12 Thread jamborm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103990 Bug ID: 103990 Summary: 541.leela_r slower by 4.5-6% with PGO+LTO -Ofast -march=native in the first week of January 2022 Product: gcc Version: 12.0 Status: UNCONFIRMED

[Bug tree-optimization/103990] 541.leela_r slower by 4.5-6% with PGO+LTO -Ofast -march=native in the first week of January 2022

2022-01-12 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103990 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

[Bug c++/103991] New: Bogus -Wreturn-type with constexpr if and local var with destructor

2022-01-12 Thread sbergman at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103991 Bug ID: 103991 Summary: Bogus -Wreturn-type with constexpr if and local var with destructor Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/103990] 541.leela_r slower by 4.5-6% with PGO+LTO -Ofast -march=native in the first week of January 2022

2022-01-12 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103990 --- Comment #2 from Richard Biener --- diff --git a/gcc/tree-ssa-pre.c b/gcc/tree-ssa-pre.c index ab24fa98a1f..2bdfae5482f 100644 --- a/gcc/tree-ssa-pre.c +++ b/gcc/tree-ssa-pre.c @@ -4442,7 +4442,6 @@ pass_pre::execute (function *fun) if (to

[Bug c++/103991] [12 Regression] Bogus -Wreturn-type with constexpr if and local var with destructor

2022-01-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103991 Jakub Jelinek changed: What|Removed |Added Ever confirmed|0 |1 Target Milestone|---

[Bug libstdc++/103955] std::to_chars(char*, char*, double, std::chars_format, int precision) crashes for the two maximal int precision values

2022-01-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103955 --- Comment #3 from CVS Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:c0e355c77972d96fcec2ff7da047ad03e10e51d9 commit r12-6522-gc0e355c77972d96fcec2ff7da047ad03e10e51d9 Author: Patrick Palka Date: W

[Bug ipa/101941] [12 Regression] Linux kernel build failure due to retaining fnsplit fragment with __attribute__((__error__))

2022-01-12 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101941 David Malcolm changed: What|Removed |Added Priority|P3 |P1 --- Comment #25 from David Malcolm

[Bug target/82028] Windows x86_64 should not pass float aggregates in xmm

2022-01-12 Thread lh_mouse at 126 dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82028 LIU Hao changed: What|Removed |Added CC||lh_mouse at 126 dot com --- Comment #2 from LI

[Bug tree-optimization/103990] 541.leela_r slower by 4.5-6% with PGO+LTO -Ofast -march=native in the first week of January 2022

2022-01-12 Thread jamborm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103990 --- Comment #3 from Martin Jambor --- (In reply to Richard Biener from comment #2) > > should fix that I can confirm that it does.

[Bug analyzer/103533] Enable "taint" state machine with -fanalyzer without requiring -fanalyzer-checker=taint

2022-01-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103533 --- Comment #3 from CVS Commits --- The master branch has been updated by David Malcolm : https://gcc.gnu.org/g:2c16dfe6268eeeb4b7924ff423e274fa00894a4d commit r12-6526-g2c16dfe6268eeeb4b7924ff423e274fa00894a4d Author: David Malcolm Date: T

[Bug analyzer/103940] RFE: check -Wanalyzer-tainted-size on external fns with attribute ((access)) with a size-index

2022-01-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103940 --- Comment #3 from CVS Commits --- The master branch has been updated by David Malcolm : https://gcc.gnu.org/g:2c16dfe6268eeeb4b7924ff423e274fa00894a4d commit r12-6526-g2c16dfe6268eeeb4b7924ff423e274fa00894a4d Author: David Malcolm Date: T

[Bug analyzer/103940] RFE: check -Wanalyzer-tainted-size on external fns with attribute ((access)) with a size-index

2022-01-12 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103940 David Malcolm changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[Bug target/82028] Windows x86_64 should not pass float aggregates in xmm

2022-01-12 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82028 Richard Biener changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug analyzer/103225] gcc/analyzer/sm-taint.cc:400:25: warning: private field 'm_dir' is not used [-Wunused-private-field]

2022-01-12 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103225 David Malcolm changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug tree-optimization/103990] 541.leela_r slower by 4.5-6% with PGO+LTO -Ofast -march=native in the first week of January 2022

2022-01-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103990 --- Comment #4 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:2f62294dec1f3af59dd7505c058b0af38c2d1524 commit r12-6527-g2f62294dec1f3af59dd7505c058b0af38c2d1524 Author: Richard Biener Date:

[Bug tree-optimization/103990] 541.leela_r slower by 4.5-6% with PGO+LTO -Ofast -march=native in the first week of January 2022

2022-01-12 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103990 Richard Biener changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug middle-end/26163] [meta-bug] missed optimization in SPEC (2k17, 2k and 2k6 and 95)

2022-01-12 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=26163 Bug 26163 depends on bug 103990, which changed state. Bug 103990 Summary: 541.leela_r slower by 4.5-6% with PGO+LTO -Ofast -march=native in the first week of January 2022 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103990 What|Re

[Bug target/97444] [nvptx] stack atomics

2022-01-12 Thread vries at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97444 --- Comment #1 from Tom de Vries --- Created attachment 52169 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52169&action=edit Tentative patch, __atomic_exchange only Code generated for the generic case: ... { // Atomic exchange -

[Bug tree-optimization/103551] [12 Regression] wrong code with -O1 -fno-tree-dominator-opts -ftree-vectorize -ftree-vrp since r12-5014-g6b8b959675a3e14c

2022-01-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103551 --- Comment #5 from CVS Commits --- The master branch has been updated by Andrew Macleod : https://gcc.gnu.org/g:77184b7446196eae1a70452939ccd3e99e0d2e3b commit r12-6528-g77184b7446196eae1a70452939ccd3e99e0d2e3b Author: Andrew MacLeod Date:

[Bug tree-optimization/83541] Missed optimization with int overflow

2022-01-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83541 --- Comment #7 from CVS Commits --- The master branch has been updated by Andrew Macleod : https://gcc.gnu.org/g:75845d584f490c294d40908168e5721adc38145d commit r12-6529-g75845d584f490c294d40908168e5721adc38145d Author: Andrew MacLeod Date:

[Bug tree-optimization/83541] Missed optimization with int overflow

2022-01-12 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83541 Andrew Macleod changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug tree-optimization/103551] [12 Regression] wrong code with -O1 -fno-tree-dominator-opts -ftree-vectorize -ftree-vrp since r12-5014-g6b8b959675a3e14c

2022-01-12 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103551 Andrew Macleod changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug sanitizer/103978] AddressSanitizer CHECK failed with threads and thread canceling with glibc 2.28+

2022-01-12 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103978 H.J. Lu changed: What|Removed |Added CC||hjl.tools at gmail dot com --- Comment #10 fr

[Bug target/98737] Atomic operation on x86 no optimized to use flags

2022-01-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98737 --- Comment #11 from Jakub Jelinek --- Created attachment 52170 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52170&action=edit gcc12-pr98737-canon.patch Untested patch to fix up if users misuse the fetch_op or op_fetch atomic when they s

[Bug tree-optimization/103720] bogus warning from -Wuninitialized + -ftrivial-auto-var-init + O2

2022-01-12 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103720 --- Comment #3 from qinzhao at gcc dot gnu.org --- this is fixed with the following commit in gcc12. https://gcc.gnu.org/pipermail/gcc-cvs/2022-January/359118.html

[Bug tree-optimization/103720] bogus warning from -Wuninitialized + -ftrivial-auto-var-init + O2

2022-01-12 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103720 qinzhao at gcc dot gnu.org changed: What|Removed |Added Resolution|--- |FIXED Status|NE

[Bug c++/103991] [12 Regression] Bogus -Wreturn-type with constexpr if and local var with destructor

2022-01-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103991 --- Comment #2 from Jakub Jelinek --- Slightly bigger testcase that shows that also consteval if is affected: struct S { ~S(); }; int foo () { S s; if constexpr (true) return 0; else return 1; } #if __cpp_if_consteval >= 202106L i

[Bug tree-optimization/103977] [12 Regression] ice in try_vectorize_loop_1 since r12-6420-gd3ff7420e941931d32ce2e332e7968fe67ba20af

2022-01-12 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103977 --- Comment #6 from Jeffrey A. Law --- And just to follow-up. With the patch that was committed to the trunk, the 30+ targets that were previously failing are now working. A few are still building, but I expect them to succeed. mips* is faili

[Bug c++/103991] [12 Regression] Bogus -Wreturn-type with constexpr if and local var with destructor

2022-01-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103991 --- Comment #3 from Jakub Jelinek --- Maybe better: struct S { ~S(); }; int foo () { S s; if constexpr (true) return 0; else return 1; } #if __cpp_if_consteval >= 202106L constexpr int bar () { S s; if consteval { re

[Bug tree-optimization/103977] [12 Regression] ice in try_vectorize_loop_1 since r12-6420-gd3ff7420e941931d32ce2e332e7968fe67ba20af

2022-01-12 Thread avieira at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103977 --- Comment #7 from avieira at gcc dot gnu.org --- Thanks for confirming that Jeff :)

[Bug tree-optimization/42436] VRP should mark non-trapping integer divisions

2022-01-12 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42436 --- Comment #3 from Andrew Macleod --- What needs to be done here? anything? Looking at VRP1, there is only a single divide left at that point: countm1.6_54 = _12 / _13; and VRP1 is setting the global range of _13 to: _13: unsigned int [2,

[Bug tree-optimization/103971] [12 regression] build fails after r12-6420, ICE at libgfortran/generated/matmul_i1.c:2450

2022-01-12 Thread avieira at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103971 avieira at gcc dot gnu.org changed: What|Removed |Added Resolution|--- |FIXED Status|NE

[Bug tree-optimization/103977] [12 Regression] ice in try_vectorize_loop_1 since r12-6420-gd3ff7420e941931d32ce2e332e7968fe67ba20af

2022-01-12 Thread avieira at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103977 --- Comment #8 from avieira at gcc dot gnu.org --- The patch Jeff mentioned is this: [vect] PR103971, PR103977: Fix epilogue mode selection for autodetect only gcc/ChangeLog: * tree-vect-loop.c (vect-analyze-loop): Handle scenario where target

[Bug libstdc++/103992] New: common_iterator(const common_iterator<_It2, _Sent2>& __x) uses new instead of construct_at

2022-01-12 Thread hewillk at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103992 Bug ID: 103992 Summary: common_iterator(const common_iterator<_It2, _Sent2>& __x) uses new instead of construct_at Product: gcc Version: 12.0 Status: UNCONFIRMED

[Bug c++/103991] [12 Regression] Bogus -Wreturn-type with constexpr if and local var with destructor

2022-01-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103991 Jakub Jelinek changed: What|Removed |Added CC||rguenth at gcc dot gnu.org --- Comment

[Bug c++/78655] gcc doesn't exploit the fact that the result of pointer addition can not be nullptr

2022-01-12 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78655 --- Comment #10 from Andrew Macleod --- We currently get everything except the last tidbit. a_1(D) int * VARYING : x_2 = a_1(D) == 0B; a_3 = a_1(D) + 40; return x_2; When we see a_3 = a_1(D) + 40; Are we allowed to assume

[Bug c++/103993] New: Incorrect error generated by mismatched-new-delete

2022-01-12 Thread jjlindal at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103993 Bug ID: 103993 Summary: Incorrect error generated by mismatched-new-delete Product: gcc Version: 11.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Compon

[Bug c++/103993] Incorrect error generated by mismatched-new-delete

2022-01-12 Thread jjlindal at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103993 --- Comment #1 from JohnJiming Lindal --- Created attachment 52171 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52171&action=edit preprocessed output

[Bug c++/103991] [12 Regression] Bogus -Wreturn-type with constexpr if and local var with destructor

2022-01-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103991 --- Comment #5 from Jakub Jelinek --- For the more permanent solution, perhaps making the other branch __builtin_unreachable() if it doesn't fall through is too expensive and we should just arrange for the pre- r12-5638 behavior where we in GENE

[Bug libstdc++/103992] common_iterator(const common_iterator<_It2, _Sent2>& __x) uses new instead of construct_at

2022-01-12 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103992 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug c++/103994] New: Module ICE in mark_by_value, at cp/module.cc:4772

2022-01-12 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103994 Bug ID: 103994 Summary: Module ICE in mark_by_value, at cp/module.cc:4772 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component

[Bug testsuite/102935] [12 regression] new test case gcc.target/powerpc/pr101384-1.c fails

2022-01-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102935 --- Comment #4 from CVS Commits --- The master branch has been updated by Michael Meissner : https://gcc.gnu.org/g:18d88d11973c63bda4e586b979b71d48c1d9b78a commit r12-6532-g18d88d11973c63bda4e586b979b71d48c1d9b78a Author: Michael Meissner Dat

[Bug c++/103991] [12 Regression] Bogus -Wreturn-type with constexpr if and local var with destructor

2022-01-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103991 --- Comment #6 from Jakub Jelinek --- For consteval if I guess we could do: --- gcc/cp/cp-objcp-common.c.jj 2022-01-11 23:11:22.091294356 +0100 +++ gcc/cp/cp-objcp-common.c2022-01-12 17:57:18.232202275 +0100 @@ -313,6 +313,13 @@ cxx_block_ma

[Bug testsuite/102935] [12 regression] new test case gcc.target/powerpc/pr101384-1.c fails

2022-01-12 Thread meissner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102935 Michael Meissner changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/103831] non-dependent call to non-static member function not rejected ahead of time when there are dependent bases and no 'this'

2022-01-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103831 --- Comment #4 from CVS Commits --- The releases/gcc-11 branch has been updated by Patrick Palka : https://gcc.gnu.org/g:614a9580d4463c4aefd74c40ed46bfab2bef65c7 commit r11-9456-g614a9580d4463c4aefd74c40ed46bfab2bef65c7 Author: Patrick Palka

[Bug c++/103831] non-dependent call to non-static member function not rejected ahead of time when there are dependent bases and no 'this'

2022-01-12 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103831 --- Comment #5 from Patrick Palka --- (In reply to 康桓瑋 from comment #2) > Please let me add a digression, is the standard overconstrained the > definition of tiny_range? > In the current standard, it seems that only single_view and empty_view >

[Bug c++/103831] non-dependent call to non-static member function not rejected ahead of time when there are dependent bases and no 'this'

2022-01-12 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103831 Patrick Palka changed: What|Removed |Added Resolution|--- |FIXED Target Milestone|---

[Bug tree-optimization/103989] [12 regression] std::optional and bogus -Wmaybe-unitialized at -Og since r12-1992-g6feb628a706e86eb

2022-01-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103989 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #3

[Bug target/103980] -Wdouble-promotion triggers on s390x when it shouldn't.

2022-01-12 Thread rmaguire314 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103980 --- Comment #8 from Ryan --- (In reply to Andrew Pinski from comment #7) > It might be the case Wdouble-promotion is just useless on s390 if you > configure your compiler with --enable-s390-excess-float-precision which was > only added for GCC11

[Bug tree-optimization/103995] New: conj() ignored with tree loop vectorizer

2022-01-12 Thread michelemartone at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103995 Bug ID: 103995 Summary: conj() ignored with tree loop vectorizer Product: gcc Version: 11.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-

[Bug tree-optimization/103995] conj() ignored with tree loop vectorizer

2022-01-12 Thread michelemartone at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103995 --- Comment #1 from Michele Martone --- Small correction: the URL in the link above should have been just https://gcc.gnu.org/onlinedocs/gcc-11.2.0/gcc/Optimize-Options.html (top of the page).

[Bug target/103980] -Wdouble-promotion triggers on s390x when it shouldn't.

2022-01-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103980 --- Comment #9 from Andrew Pinski --- (In reply to Ryan from comment #8) > (In reply to Andrew Pinski from comment #7) > > It might be the case Wdouble-promotion is just useless on s390 if you > > configure your compiler with --enable-s390-exces

[Bug c/103996] New: Enhancement: Better diagnostic for invalid reuse of a function name

2022-01-12 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103996 Bug ID: 103996 Summary: Enhancement: Better diagnostic for invalid reuse of a function name Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug c/103996] Enhancement: Better diagnostic for invalid reuse of a function name

2022-01-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103996 --- Comment #1 from Andrew Pinski --- C++ front-end produces: : In function 'void f()': :4:10: error: invalid types '[int]' for array subscript 4 | index[0] = 0; | ^ Which seems better.

[Bug c/103996] Enhancement: Better diagnostic for invalid reuse of a function name

2022-01-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103996 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2022-01-12 Status|UNCONFIRM

[Bug middle-end/103993] -Wismatched-new-delete due to difference in inlining decisions

2022-01-12 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103993 Martin Sebor changed: What|Removed |Added Blocks||100406 CC|

[Bug c/103996] Provide Better diagnostic for invalid reuse of a function name

2022-01-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103996 Andrew Pinski changed: What|Removed |Added Summary|Enhancement: Better |Provide Better diagnostic

[Bug target/103861] [i386] vectorize v2qi vectors

2022-01-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103861 --- Comment #12 from CVS Commits --- The master branch has been updated by Uros Bizjak : https://gcc.gnu.org/g:b5193e352981fab8441c600b0a50efe1f30c1d30 commit r12-6533-gb5193e352981fab8441c600b0a50efe1f30c1d30 Author: Uros Bizjak Date: Wed

[Bug target/100637] [i386] Vectorize 4-byte vectors

2022-01-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100637 --- Comment #13 from CVS Commits --- The master branch has been updated by Uros Bizjak : https://gcc.gnu.org/g:b5193e352981fab8441c600b0a50efe1f30c1d30 commit r12-6533-gb5193e352981fab8441c600b0a50efe1f30c1d30 Author: Uros Bizjak Date: Wed

[Bug tree-optimization/103989] [12 regression] std::optional and bogus -Wmaybe-unitialized at -Og since r12-1992-g6feb628a706e86eb

2022-01-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103989 Andrew Pinski changed: What|Removed |Added Keywords||diagnostic --- Comment #4 from Andrew P

[Bug tree-optimization/103995] [11/12 Regression] conj() ignored with tree loop vectorizer

2022-01-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103995 Andrew Pinski changed: What|Removed |Added Summary|conj() ignored with tree|[11/12 Regression] conj()

[Bug c++/78655] gcc doesn't exploit the fact that the result of pointer addition can not be nullptr

2022-01-12 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78655 --- Comment #11 from Jeffrey A. Law --- We can assume that the result of a POINTER_PLUS is non-null if either argument is non-null. So X + constant is always non-null. X + Y would be non-null if either X or Y is known to be non-null. If we kno

[Bug c/83584] "ISO C forbids conversion of object pointer to function pointer type" -- no, not really

2022-01-12 Thread pavel.morozkin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83584 Pavel M changed: What|Removed |Added CC||pavel.morozkin at gmail dot com --- Comment #2

[Bug target/100637] [i386] Vectorize 4-byte vectors

2022-01-12 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100637 Uroš Bizjak changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug tree-optimization/98026] optimization dependant on condition order

2022-01-12 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98026 Andrew Macleod changed: What|Removed |Added CC||amacleod at redhat dot com --- Comment

[Bug testsuite/103935] [12 regression] g++.dg/vect/slp-pr98855.cc fails after r12-6273

2022-01-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103935 --- Comment #5 from CVS Commits --- The master branch has been updated by Uros Bizjak : https://gcc.gnu.org/g:e1503b9a3d2f480d3df42823cd47c3b6c12f5564 commit r12-6534-ge1503b9a3d2f480d3df42823cd47c3b6c12f5564 Author: Uros Bizjak Date: Wed J

[Bug c++/103991] [12 Regression] Bogus -Wreturn-type with constexpr if and local var with destructor

2022-01-12 Thread rguenther at suse dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103991 --- Comment #7 from rguenther at suse dot de --- > Am 12.01.2022 um 17:33 schrieb jakub at gcc dot gnu.org > : > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103991 > > Jakub Jelinek changed: > > What|Removed

  1   2   >