[Bug libstdc++/100982] wrong constraint in std::optional::operator=

2021-06-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100982 --- Comment #2 from CVS Commits --- The releases/gcc-11 branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:e198d93d49f89a3b69f9b4e4c305f9f8b511027a commit r11-8560-ge198d93d49f89a3b69f9b4e4c305f9f8b511027a Author: Jonathan

[Bug libstdc++/98842] optional's spaceship operations generates wrong code when operator== is not present

2021-06-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98842 --- Comment #4 from CVS Commits --- The releases/gcc-11 branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:4f11586945fffd0ff808c16f2f341f9e85d83749 commit r11-8559-g4f11586945fffd0ff808c16f2f341f9e85d83749 Author: Jonathan

[Bug libstdc++/100824] ranges::size should treat the subexpression as an lvalue

2021-06-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100824 --- Comment #12 from CVS Commits --- The releases/gcc-11 branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:2ba1680d3e9f3bb99783519a08eed6435f131045 commit r11-8558-g2ba1680d3e9f3bb99783519a08eed6435f131045 Author: Jonathan

[Bug libstdc++/100824] ranges::size should treat the subexpression as an lvalue

2021-06-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100824 --- Comment #11 from CVS Commits --- The releases/gcc-11 branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:950535915868cd0b7f3dbad4321de913f01bddfc commit r11-8556-g950535915868cd0b7f3dbad4321de913f01bddfc Author: Jonathan

[Bug libstdc++/100824] ranges::size should treat the subexpression as an lvalue

2021-06-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100824 --- Comment #10 from CVS Commits --- The releases/gcc-11 branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:a842cb9c255f66f38ddd36b10c60920ed5f189de commit r11-8555-ga842cb9c255f66f38ddd36b10c60920ed5f189de Author: Jonathan

[Bug middle-end/100944] missing -Warray-bounds accessing a flexible array member of a nested struct

2021-06-11 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100944 Segher Boessenkool changed: What|Removed |Added CC||segher at gcc dot gnu.org ---

[Bug c++/101029] [10/11/12 regression] unexpected error: non-constant condition for static assertion in gcc 10/11, but not 9 (clang also fine)

2021-06-11 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101029 Jason Merrill changed: What|Removed |Added Priority|P3 |P2 Summary|unexpected

[Bug d/100999] d: foreach over a tuple doesn't work on 16-bit targets

2021-06-11 Thread ibuclaw at gdcproject dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100999 Iain Buclaw changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug d/100999] d: foreach over a tuple doesn't work on 16-bit targets

2021-06-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100999 --- Comment #3 from CVS Commits --- The releases/gcc-10 branch has been updated by Iain Buclaw : https://gcc.gnu.org/g:ecbe8af2c38e22d3db99a57e21531fd523700492 commit r10-9910-gecbe8af2c38e22d3db99a57e21531fd523700492 Author: Iain Buclaw

[Bug c++/101038] ice in vect_optimize_slp

2021-06-11 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101038 --- Comment #1 from David Binderman --- Reduced C++ code is: typedef char quint8; typedef struct { quint8 green, blue; } CharPixel; CharPixel *equalize_equalize_map; int equalize_i; void equalize() { unsigned low_0, high_0, low_1, high_1;

[Bug testsuite/101002] Some powerpc tests fail with -mlong-double-64

2021-06-11 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101002 --- Comment #3 from Segher Boessenkool --- (In reply to Segher Boessenkool from comment #2) > The first test is for _Float128. What goes wrong there? > > For all these tests yo ..u have to figure out what is going wrong. After that it will

[Bug testsuite/101002] Some powerpc tests fail with -mlong-double-64

2021-06-11 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101002 --- Comment #2 from Segher Boessenkool --- The first test is for _Float128. What goes wrong there? For all these tests yo

[Bug target/101023] [11/12 Regression] wrong code with -mstackrealign

2021-06-11 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101023 H.J. Lu changed: What|Removed |Added Keywords||patch --- Comment #7 from H.J. Lu --- A

[Bug c++/101029] unexpected error: non-constant condition for static assertion in gcc 10/11, but not 9 (clang also fine)

2021-06-11 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101029 Jason Merrill changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org

[Bug c++/101038] New: ice in vect_optimize_slp

2021-06-11 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101038 Bug ID: 101038 Summary: ice in vect_optimize_slp Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug target/100085] Bad code for union transfer from __float128 to vector types

2021-06-11 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100085 --- Comment #14 from Segher Boessenkool --- We *have* TImode already, but most 128-bit scalars currently use V1TImode. This often leads to reduced performance because that is not a scalar mode, does not get all optimisations we have generically

[Bug c++/94404] [meta-bug] C++ core issues

2021-06-11 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94404 Bug 94404 depends on bug 96560, which changed state. Bug 96560 Summary: Substitution triggers compile-time error when it shouldn't https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96560 What|Removed |Added

[Bug c++/96560] Substitution triggers compile-time error when it shouldn't

2021-06-11 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96560 Patrick Palka changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/96560] Substitution triggers compile-time error when it shouldn't

2021-06-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96560 --- Comment #2 from CVS Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:b0d73a66ae3962fa83309527d85613d72a6aa43d commit r12-1398-gb0d73a66ae3962fa83309527d85613d72a6aa43d Author: Patrick Palka Date:

[Bug target/92469] ICE: output_operand: invalid use of register 'frame' in 7/8/9/10

2021-06-11 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92469 --- Comment #15 from H.J. Lu --- This isn't completely fixed: [hjl@gnu-clx-1 gcc]$ ./xgcc -B./ /export/gnu/import/git/sources/gcc/gcc/testsuite/gcc.target/i386/pr97032.c -m32 -fdiagnostics-plain-output -O2 -mincoming-stack-boundary=2

[Bug libstdc++/101037] std::atomic_flag deadlock on Windows

2021-06-11 Thread bjornsundin02 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101037 --- Comment #2 from Björn Sundin --- Created attachment 50987 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50987=edit A short ping-pong example program. The preprocessed file was too large so I attached the original C++ source instead.

[Bug libstdc++/101037] std::atomic_flag deadlock on Windows

2021-06-11 Thread bjornsundin02 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101037 --- Comment #1 from Björn Sundin --- The preprocessed file was too big. Should I attach the original C++ source or a compressed version of the preprocessed file instead?

[Bug fortran/100950] ICE in output_constructor_regular_field, at varasm.c:5514

2021-06-11 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100950 --- Comment #11 from anlauf at gcc dot gnu.org --- The variant with typespec and non-constant length is incorrectly rejected: program p integer :: n = 2 print *, [character(n) :: 'a', 'b'] end All versions since at least gcc-7 give:

[Bug libstdc++/101037] New: std::atomic_flag deadlock on Windows

2021-06-11 Thread bjornsundin02 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101037 Bug ID: 101037 Summary: std::atomic_flag deadlock on Windows Product: gcc Version: 11.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug d/100999] d: foreach over a tuple doesn't work on 16-bit targets

2021-06-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100999 --- Comment #2 from CVS Commits --- The releases/gcc-11 branch has been updated by Iain Buclaw : https://gcc.gnu.org/g:a30552af7073aba16af6798a1e6cd0a345b06586 commit r11-8553-ga30552af7073aba16af6798a1e6cd0a345b06586 Author: Iain Buclaw

[Bug c/101036] New: ICE: in fold_convert_loc, at fold-const.c:2430

2021-06-11 Thread cnsun at uwaterloo dot ca via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101036 Bug ID: 101036 Summary: ICE: in fold_convert_loc, at fold-const.c:2430 Product: gcc Version: tree-ssa Status: UNCONFIRMED Severity: normal Priority: P3

[Bug d/100999] d: foreach over a tuple doesn't work on 16-bit targets

2021-06-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100999 --- Comment #1 from CVS Commits --- The master branch has been updated by Iain Buclaw : https://gcc.gnu.org/g:68f46862d33707450bdf70cfddd91ae2a12527a8 commit r12-1396-g68f46862d33707450bdf70cfddd91ae2a12527a8 Author: Iain Buclaw Date: Fri

[Bug c/101035] New: ICE: in wide_int_to_tree_1, at tree.c:1751

2021-06-11 Thread cnsun at uwaterloo dot ca via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101035 Bug ID: 101035 Summary: ICE: in wide_int_to_tree_1, at tree.c:1751 Product: gcc Version: tree-ssa Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug target/101016] Arm: vld1q polymorphic variants failing with undefined reference to `__ARM_undef` error.

2021-06-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101016 --- Comment #1 from CVS Commits --- The master branch has been updated by SRINATH PARVATHANENI : https://gcc.gnu.org/g:b13f297f01c943aa167f7c6eb94bed40dce0d553 commit r12-1395-gb13f297f01c943aa167f7c6eb94bed40dce0d553 Author: Srinath

[Bug c++/101033] Error message for spelling error in copy assignment operator could be improved

2021-06-11 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101033 Jonathan Wakely changed: What|Removed |Added Severity|normal |enhancement

[Bug c++/101033] Error message for spelling error in copy assignment operator could be improved

2021-06-11 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101033 Jonathan Wakely changed: What|Removed |Added Keywords||diagnostic Ever confirmed|0

[Bug c++/97202] GCC reports an error: expected unqualified-id before ‘short’

2021-06-11 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97202 --- Comment #6 from Jonathan Wakely --- If the invalid special member is defined out of the class body, you get another error: template struct F { F(); }; template inline F::F() { } 101032.C:4:8: error: expected unqualified-id before ‘)’

[Bug c++/97202] GCC reports an error: expected unqualified-id before ‘short’

2021-06-11 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97202 Jonathan Wakely changed: What|Removed |Added CC||kevin.c.eady at gmail dot com ---

[Bug c++/101032] Regression on parser with g++11 using experimental c++20 (compiles under c++17)

2021-06-11 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101032 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug libstdc++/101034] wrong constraint in std::any's constructor

2021-06-11 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101034 Jonathan Wakely changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug tree-optimization/96392] Optimize x+0.0 if x is an integer

2021-06-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96392 --- Comment #2 from CVS Commits --- The master branch has been updated by Roger Sayle : https://gcc.gnu.org/g:a761829ae06a754f72ff957cbedb21f4d98fab70 commit r12-1394-ga761829ae06a754f72ff957cbedb21f4d98fab70 Author: Roger Sayle Date: Fri

[Bug libstdc++/101034] wrong constraint in std::any's constructor

2021-06-11 Thread hewillk at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101034 --- Comment #1 from 康桓瑋 --- any#L272 has the same typo: template __emplace_t, initializer_list<_Up>, _Args&&...> emplace(initializer_list<_Up> __il, _Args&&... __args)

[Bug tree-optimization/101025] [11 Regression] wrong code at -O3 on x86_64-linux-gnu

2021-06-11 Thread qrzhang at gatech dot edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101025 --- Comment #8 from Qirun Zhang --- (In reply to Richard Biener from comment #7) > Fixed on trunk sofar. Keep more testcases coming ;) (I have a hunch this > code has more issues...) Thanks, Richard. Will do.

[Bug target/100530] [9/10/11/12 Regression] ICE with -g: in add_dwarf_attr with __seg_gs (Alternative address-space) global variable since r8-4385-ga297ccb52e0c894e

2021-06-11 Thread dcb314 at hotmail dot com via Gcc-bugs
--- Comment #4 from David Binderman --- I see this also with the source code for ./gcc.target/i386/pr100936.c and flag -g: $ /home/dcb/gcc/results.20210611.asan.ubsan/bin/gcc -c -g ./gcc.target/i386/pr100936.c ./gcc.target/i386/pr100936.c:5:1: internal compiler error: in add_dwarf_attr, at dwarf2out.c:4493

[Bug libstdc++/101034] New: wrong constraint in std::any's constructor

2021-06-11 Thread hewillk at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101034 Bug ID: 101034 Summary: wrong constraint in std::any's constructor Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug tree-optimization/96392] Optimize x+0.0 if x is an integer

2021-06-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96392 --- Comment #1 from CVS Commits --- The master branch has been updated by Roger Sayle : https://gcc.gnu.org/g:5b02ed4b87685c0f7c5da9b46cde3ce56fcfd457 commit r12-1393-g5b02ed4b87685c0f7c5da9b46cde3ce56fcfd457 Author: Roger Sayle Date: Fri

[Bug tree-optimization/101025] [11 Regression] wrong code at -O3 on x86_64-linux-gnu

2021-06-11 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101025 Richard Biener changed: What|Removed |Added Known to work||12.0 Summary|[11/12

[Bug tree-optimization/101025] [11/12 Regression] wrong code at -O3 on x86_64-linux-gnu

2021-06-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101025 --- Comment #6 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:b8b80b8aa3d9a7abbcb59b651ea5e84c2ea12d0b commit r12-1392-gb8b80b8aa3d9a7abbcb59b651ea5e84c2ea12d0b Author: Richard Biener Date:

[Bug c++/101032] Regression on parser with g++11 using experimental c++20 (compiles under c++17)

2021-06-11 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101032 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org ---

[Bug c++/101033] New: Error message for spelling error in copy assignment operator could be improved

2021-06-11 Thread hewillk at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101033 Bug ID: 101033 Summary: Error message for spelling error in copy assignment operator could be improved Product: gcc Version: 12.0 Status: UNCONFIRMED

[Bug c++/101032] New: Regression on parser with g++11 using experimental c++20 (compiles under c++17)

2021-06-11 Thread kevin.c.eady at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101032 Bug ID: 101032 Summary: Regression on parser with g++11 using experimental c++20 (compiles under c++17) Product: gcc Version: 11.1.0 Status: UNCONFIRMED

[Bug c++/101015] Poor diagnostic for deprecated alias-declaration

2021-06-11 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101015 --- Comment #2 from Marek Polacek --- This is because dump_decl does the decoration for TYPE_DECL_ALIAS_P: 1228 if (TYPE_DECL_ALIAS_P (t) 1229 && (flags & TFF_DECL_SPECIFIERS 1230 || flags &

[Bug fortran/100948] [12 Regression] ICE in gfc_conv_expr_val, at fortran/trans-expr.c:9069

2021-06-11 Thread jrfsousa at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100948 --- Comment #4 from José Rui Faustino de Sousa --- I am looking into this. I think I already have a patch for the ICE, but there are further problems which I am trying to solve. Best regards, José Rui

[Bug target/99939] CMSE: -march=armv8.1-m.main+mve does not support CMSE correctly.

2021-06-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99939 --- Comment #1 from CVS Commits --- The master branch has been updated by SRINATH PARVATHANENI : https://gcc.gnu.org/g:c5ed0148347beea1bd34795de146a2454c36 commit r12-1391-gc5ed0148347beea1bd34795de146a2454c36 Author: Srinath

[Bug target/101023] [11/12 Regression] wrong code with -mstackrealign

2021-06-11 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101023 H.J. Lu changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |hjl.tools at gmail dot com ---

[Bug target/101022] rs6000: __builtin_altivec_vcmpequt expands to wrong pattern

2021-06-11 Thread wschmidt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101022 --- Comment #4 from Bill Schmidt --- Hi Carl -- while you're in there, can you please remove these? +BU_P10_OVERLOAD_2 (VRLQ, "vrlq") +BU_P10_OVERLOAD_2 (VSLQ, "vslq")

[Bug c++/98940] Implement C++23 language features

2021-06-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98940 Bug 98940 depends on bug 100974, which changed state. Bug 100974 Summary: [C++23] Implement if consteval https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100974 What|Removed |Added

[Bug c++/100974] [C++23] Implement if consteval

2021-06-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100974 Jakub Jelinek changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/100974] [C++23] Implement if consteval

2021-06-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100974 --- Comment #3 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:117c64266405e244da4dae3ae7b60905af63b955 commit r12-1390-g117c64266405e244da4dae3ae7b60905af63b955 Author: Jakub Jelinek Date:

[Bug tree-optimization/101031] [12 Regression] wrong code at -O2 on x86_64-linux-gnu

2021-06-11 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101031 --- Comment #3 from Richard Biener --- Simpler IL: int a; char b, e; static char *c = static long d; void f(void); void __attribute__((noipa)) h() { int g = 0; for (; g < 2; ++g) { d = *c; *c = 1; b = 0; } f(); } void

[Bug tree-optimization/101031] [12 Regression] wrong code at -O2 on x86_64-linux-gnu

2021-06-11 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101031 Richard Biener changed: What|Removed |Added Status|NEW |ASSIGNED

[Bug target/100217] [11/12 Regression] ICE when building valgrind testsuite with -march=z14 since r11-7552

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

[Bug c++/101029] unexpected error: non-constant condition for static assertion in gcc 10/11, but not 9 (clang also fine)

2021-06-11 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101029 Martin Liška changed: What|Removed |Added CC||jason at gcc dot gnu.org --- Comment #5

[Bug c++/101029] unexpected error: non-constant condition for static assertion in gcc 10/11, but not 9 (clang also fine)

2021-06-11 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101029 --- Comment #4 from Martin Liška --- Created attachment 50985 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50985=edit test-case I see the following issue when not using an optimization level: $ g++ gcc_issue.cc -c gcc_issue.cc: In

[Bug tree-optimization/101031] [12 Regression] wrong code at -O2 on x86_64-linux-gnu

2021-06-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101031 Jakub Jelinek changed: What|Removed |Added Ever confirmed|0 |1 Summary|wrong code at -O2

[Bug tree-optimization/101031] wrong code at -O2 on x86_64-linux-gnu

2021-06-11 Thread qrzhang at gatech dot edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101031 Qirun Zhang changed: What|Removed |Added CC||rguenther at suse dot de --- Comment #1

[Bug tree-optimization/101031] New: wrong code at -O2 on x86_64-linux-gnu

2021-06-11 Thread qrzhang at gatech dot edu via Gcc-bugs
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: qrzhang at gatech dot edu Target Milestone: --- It appears to be a recent regression. $ gcc-trunk -v Supported LTO compression algorithms: zlib gcc version 12.0.0 20210611 (experimental) [master revision

[Bug testsuite/101020] [12 regression] Several test case failures after r12-1316

2021-06-11 Thread dje at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101020 David Edelsohn changed: What|Removed |Added Last reconfirmed||2021-06-11 CC|

[Bug target/101023] [11/12 Regression] wrong code with -mstackrealign

2021-06-11 Thread zsojka at seznam dot cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101023 --- Comment #5 from Zdenek Sojka --- (In reply to Jakub Jelinek from comment #3) > Here it is: > Thank you, I probably wouldn't be able to get back to this until next week.

[Bug target/101023] [11/12 Regression] wrong code with -mstackrealign

2021-06-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101023 --- Comment #4 from Jakub Jelinek --- // { dg-do run { target lp64 } } (or ! ia32 if you want).

[Bug target/101023] [11/12 Regression] wrong code with -mstackrealign

2021-06-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101023 Jakub Jelinek changed: What|Removed |Added Status|WAITING |NEW CC|

[Bug fortran/100948] [12 Regression] ICE in gfc_conv_expr_val, at fortran/trans-expr.c:9069

2021-06-11 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100948 Martin Liška changed: What|Removed |Added CC||marxin at gcc dot gnu.org,

[Bug tree-optimization/101026] [12 Regression] ICE Segmentation fault since r12-1329-gce670e4faafb296d

2021-06-11 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101026 Richard Biener changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug fortran/100949] [9/10/11/12 Regression] ICE in gfc_conv_expr_present, at fortran/trans-expr.c:1975

2021-06-11 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100949 Martin Liška changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

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

2021-06-11 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 101028, which changed state. Bug 101028 Summary: [12 Regression] SLP compile-time hog since r12-1329-gce670e4faafb296d https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101028 What|Removed

[Bug tree-optimization/101028] [12 Regression] SLP compile-time hog since r12-1329-gce670e4faafb296d

2021-06-11 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101028 Richard Biener changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug tree-optimization/101028] [12 Regression] SLP compile-time hog since r12-1329-gce670e4faafb296d

2021-06-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101028 --- Comment #1 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:b9ec5ebb605936684e95b8dcc12e43ba7d8f2cb4 commit r12-1388-gb9ec5ebb605936684e95b8dcc12e43ba7d8f2cb4 Author: Richard Biener Date:

[Bug target/101023] [11/12 Regression] wrong code with -mstackrealign

2021-06-11 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101023 H.J. Lu changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug c++/101030] New: gcc internal error with Wconversion

2021-06-11 Thread chrishair85 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101030 Bug ID: 101030 Summary: gcc internal error with Wconversion Product: gcc Version: 11.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug c++/101029] unexpected error: non-constant condition for static assertion in gcc 10/11, but not 9 (clang also fine)

2021-06-11 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101029 --- Comment #3 from Jonathan Wakely --- (In reply to Jim Walker from comment #0) > /opt/gcc-10.2.0/include/c++/10.2.0/type_traits:918:52: error: non-constant > condition for static assertion > 918 | >

[Bug c++/101029] unexpected error: non-constant condition for static assertion in gcc 10/11, but not 9 (clang also fine)

2021-06-11 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101029 Martin Liška changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug rtl-optimization/101008] ICE: in native_encode_rtx, at simplify-rtx.c:6594 with -O -g

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

[Bug target/101007] [12 Regression] ICE: in extract_insn, at recog.c:2770 (unrecognizable insn) with -mno-sse2

2021-06-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101007 Jakub Jelinek changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/101029] unexpected error: non-constant condition for static assertion in gcc 10/11, but not 9 (clang also fine)

2021-06-11 Thread jim.w.walker at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101029 --- Comment #1 from Jim Walker --- Adding version output: /opt/gcc-10.2.0/bin/g++ --version g++ (GCC) 10.2.0 Copyright (C) 2020 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty;

[Bug c++/101029] New: unexpected error: non-constant condition for static assertion in gcc 10/11, but not 9 (clang also fine)

2021-06-11 Thread jim.w.walker at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101029 Bug ID: 101029 Summary: unexpected error: non-constant condition for static assertion in gcc 10/11, but not 9 (clang also fine) Product: gcc Version: unknown Status:

[Bug tree-optimization/101024] Missed min expression at phiopt1

2021-06-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101024 --- Comment #2 from Andrew Pinski --- I have a start but there are a few patterns that need to be moved. An example is from gcc.dg/tree-ssa/pr66726-4.c: #define SAT(x) (x < 0 ? 0 : (x > 255 ? 255 : x)) void foo (unsigned char *p, int i) { *p

[Bug target/101017] ICE: Segmentation fault, convert_memory_address_addr_space_1 with vector_size(32) and target_clone arch=core-avx2/default

2021-06-11 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101017 Martin Liška changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug tree-optimization/101026] [12 Regression] ICE Segmentation fault since r12-1329-gce670e4faafb296d

2021-06-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101026 --- Comment #2 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:fbd8a8041292f2ec2c22be43c8d3e74b37b2bc88 commit r12-1387-gfbd8a8041292f2ec2c22be43c8d3e74b37b2bc88 Author: Richard Biener Date:

[Bug c++/100897] Symmetric transfer does not prevent stack-overflow for C++20 coroutines

2021-06-11 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100897 --- Comment #3 from Iain Sandoe --- (In reply to Leonard von Merzljak from comment #2) > (In reply to Iain Sandoe from comment #1) > Thank you for your comment. I tried it out and can confirm that I don't get > a stack-overflow anymore if I

[Bug rtl-optimization/101008] ICE: in native_encode_rtx, at simplify-rtx.c:6594 with -O -g

2021-06-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101008 --- Comment #4 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:4bdcdd8fa8d7659e5a19a930cf2f0332127f8a46 commit r12-1386-g4bdcdd8fa8d7659e5a19a930cf2f0332127f8a46 Author: Jakub Jelinek Date:

[Bug target/101007] [12 Regression] ICE: in extract_insn, at recog.c:2770 (unrecognizable insn) with -mno-sse2

2021-06-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101007 --- Comment #5 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:a984da88a35b42f444d1f9eeba77aa520b950d35 commit r12-1385-ga984da88a35b42f444d1f9eeba77aa520b950d35 Author: Jakub Jelinek Date:

[Bug tree-optimization/101028] [12 Regression] SLP compile-time hog since r12-1329-gce670e4faafb296d

2021-06-11 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101028 Martin Liška changed: What|Removed |Added Target Milestone|--- |12.0 Status|UNCONFIRMED

[Bug tree-optimization/101028] New: [12 Regression] SLP compile-time hog since r12-1329-gce670e4faafb296d

2021-06-11 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101028 Bug ID: 101028 Summary: [12 Regression] SLP compile-time hog since r12-1329-gce670e4faafb296d Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords:

[Bug target/101021] PSHUFB is emitted instead of PSHUFD, PSHUFLW and PSHUFHW with -msse4

2021-06-11 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101021 Uroš Bizjak changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/100897] Symmetric transfer does not prevent stack-overflow for C++20 coroutines

2021-06-11 Thread l.v.merzljak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100897 --- Comment #2 from Leonard von Merzljak --- (In reply to Iain Sandoe from comment #1) > for symmetric transfer to work without stack overflow, it relies on an > indirect tailcall. > > For some GCC targets indirect tail-calls are not available

[Bug target/101021] PSHUFB is emitted instead of PSHUFD, PSHUFLW and PSHUFHW with -msse4

2021-06-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101021 --- Comment #2 from CVS Commits --- The master branch has been updated by Uros Bizjak : https://gcc.gnu.org/g:1fa991d1d74cb1ce96c48ede70ae0be7a9683ce3 commit r12-1384-g1fa991d1d74cb1ce96c48ede70ae0be7a9683ce3 Author: Uros Bizjak Date: Fri

[Bug tree-optimization/101026] [12 Regression] ICE Segmentation fault since r12-1329-gce670e4faafb296d

2021-06-11 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101026 Richard Biener changed: What|Removed |Added Last reconfirmed||2021-06-11 Target Milestone|---

[Bug tree-optimization/79201] missed optimization: sinking doesn't handle calls, swap PRE and sinking

2021-06-11 Thread drraph at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79201 --- Comment #5 from Raphael C --- I can confirm you now get f: mov eax, 1 ret with gcc 8 onwards.

[Bug target/79185] [8 Regression] register allocation in the addition of two 128/9 bit ints

2021-06-11 Thread drraph at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79185 --- Comment #17 from Raphael C --- Tested in gcc 11.1 with -O2 ai(__int128, __int128): mov r9, rdi mov rax, rdx mov r8, rsi mov rdx, rcx add rax, r9 adc rdx, r8 ret

[Bug gcov-profile/100788] Internal compiler error related to #line macros(?)

2021-06-11 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100788 Martin Liška changed: What|Removed |Added Known to work||12.0 --- Comment #14 from Martin Liška

[Bug gcov-profile/100788] Internal compiler error related to #line macros(?)

2021-06-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100788 --- Comment #13 from CVS Commits --- The master branch has been updated by Martin Liska : https://gcc.gnu.org/g:8bf728aecc4fea46b4490e950b9ae229f90597b0 commit r12-1383-g8bf728aecc4fea46b4490e950b9ae229f90597b0 Author: Martin Liska Date:

[Bug tree-optimization/100934] [9/10/11/12 Regression] wrong code at -O3 during unrolling since r9-6299

2021-06-11 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100934 Richard Biener changed: What|Removed |Added Assignee|rguenth at gcc dot gnu.org |unassigned at gcc dot gnu.org

[Bug tree-optimization/101009] [10/11 Regression] wrong code with "-O3 -fno-tree-sra"

2021-06-11 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101009 Richard Biener changed: What|Removed |Added Known to work||12.0 Summary|[10/11/12

[Bug tree-optimization/101009] [10/11/12 Regression] wrong code with "-O3 -fno-tree-sra"

2021-06-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101009 --- Comment #11 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:336c41dbcb21740f8964021e157bc69ca547059b commit r12-1381-g336c41dbcb21740f8964021e157bc69ca547059b Author: Richard Biener Date:

[Bug tree-optimization/101009] [10/11/12 Regression] wrong code with "-O3 -fno-tree-sra"

2021-06-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101009 --- Comment #10 from Jakub Jelinek --- (In reply to Richard Biener from comment #8) > With -O2 -fno-tree-sra -fno-tree-pre -ftree-loop-distribution even GCC 10 > miscompiles the code. For dg-torture: That started with

  1   2   >