[Bug target/115409] avx512 intrinsics trigger -Wshift-overflow

2024-06-22 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115409 --- Comment #5 from GCC Commits --- The master branch has been updated by hongtao Liu : https://gcc.gnu.org/g:4c957d7ba84d8bbce6e778048f38e92ef71806c8 commit r15-1563-g4c957d7ba84d8bbce6e778048f38e92ef71806c8 Author: Collin Funk Date: Mon J

[Bug target/115485] CASEServer.cpp:203:1: internal compiler error: in require_pic_register, at config/arm/arm.c:7855

2024-06-22 Thread gang.peng at aclsemi dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115485 --- Comment #12 from Gang Peng --- Created attachment 58495 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58495&action=edit build_save_temp_log.tar.gz

[Bug target/115485] CASEServer.cpp:203:1: internal compiler error: in require_pic_register, at config/arm/arm.c:7855

2024-06-22 Thread gang.peng at aclsemi dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115485 --- Comment #11 from Gang Peng --- (In reply to Andrew Pinski from comment #10) > Can you provide the preprocessed source (which you can get via -save-temps)? > This is mentioned in https://gcc.gnu.org/bugs/ on what we require. Dear Andrew, Th

[Bug target/114139] ICE: RTL check: expected code 'const_int', have 'reg' in riscv_macro_fusion_pair_p, at config/riscv/riscv.cc:8438 with -O2 -fpic -mexplicit-relocs -mcpu=sifive-p450

2024-06-22 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114139 Jeffrey A. Law changed: What|Removed |Added Last reconfirmed||2024-06-23 CC|

[Bug c/115587] [14/15 Regression] Possible uninitialized variable (decl) in c_parser_omp_loop_nest since r14-3489-g143151ac2013c2

2024-06-22 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115587 Sam James changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

[Bug c/115587] [14/15 Regression] Possible uninitialized variable (decl) in c_parser_omp_loop_nest

2024-06-22 Thread sandra at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115587 --- Comment #2 from sandra at gcc dot gnu.org --- I'll take care of this.

[Bug rtl-optimization/951] Documentation of compiler passes and sources very out of date

2024-06-22 Thread egallager at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=951 --- Comment #15 from Eric Gallager --- (In reply to Richard Biener from comment #14) > (In reply to Andrew Pinski from comment #13) > > (In reply to Eric Gallager from comment #12) > > > Patch posted that might help with this a little bit: > > > ht

[Bug ipa/115135] [12/13/14/15 regression] [C++] GCC produces wrong code at certain inlining levels on Aarch64 with -fno-exceptions, related to lambdas and variants since r12-5113-gd70ef65692fced

2024-06-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115135 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug tree-optimization/115033] [12/13/14/15 Regression] Incorrect optimization of by-reference closure fields by fre1 pass

2024-06-22 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115033 Sam James changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug tree-optimization/115033] [12/13/14/15 Regression] Incorrect optimization of by-reference closure fields by fre1 pass

2024-06-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115033 --- Comment #15 from Andrew Pinski --- Created attachment 58494 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58494&action=edit Removing the lamdba and making it C This is an alternative which removes the lamdba and makes it a GNU C test

[Bug tree-optimization/115033] [12/13/14/15 Regression] Incorrect optimization of by-reference closure fields by fre1 pass

2024-06-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115033 --- Comment #14 from Andrew Pinski --- Created attachment 58493 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58493&action=edit Reduced all the way, removing std::forward/std::move This now fails at -O2 (since I marked the functions that

[Bug ipa/115533] [12/13/14/15 regression] flac miscompiled with -O3 -march=znver2 -fipa-pta -fno-vect-cost-model since r12-3893-g6390c5047adb75

2024-06-22 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115533 Sam James changed: What|Removed |Added Attachment #58484|0 |1 is obsolete|

[Bug tree-optimization/115033] [12/13/14/15 Regression] Incorrect optimization of by-reference closure fields by fre1 pass

2024-06-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115033 Andrew Pinski changed: What|Removed |Added Last reconfirmed|2024-05-10 00:00:00 |2024-06-23 Status|UNCONFIRM

[Bug tree-optimization/115033] [12/13/14/15 Regression] Incorrect optimization of by-reference closure fields by fre1 pass

2024-06-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115033 Andrew Pinski changed: What|Removed |Added Attachment #58178|0 |1 is obsolete|

[Bug tree-optimization/115033] [12/13/14/15 Regression] Incorrect optimization of by-reference closure fields by fre1 pass

2024-06-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115033 Andrew Pinski changed: What|Removed |Added Attachment #58489|0 |1 is obsolete|

[Bug tree-optimization/115033] [12/13/14/15 Regression] Incorrect optimization of by-reference closure fields by fre1 pass

2024-06-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115033 --- Comment #10 from Andrew Pinski --- (In reply to Andrew Pinski from comment #9) > If I manually inline map_range into map_to_vector, it works ... I take that back, it still fails. I must have been testing something else.

[Bug tree-optimization/115033] [12/13/14/15 Regression] Incorrect optimization of by-reference closure fields by fre1 pass

2024-06-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115033 --- Comment #9 from Andrew Pinski --- If I manually inline map_range into map_to_vector, it works ...

[Bug tree-optimization/115033] [12/13/14/15 Regression] Incorrect optimization of by-reference closure fields by fre1 pass

2024-06-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115033 --- Comment #8 from Andrew Pinski --- Created attachment 58489 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58489&action=edit First step at reducing Keeps map_to_vector the same, changes the lamdba just to set resultIsStatic to false an

[Bug tree-optimization/115033] [12/13/14/15 Regression] Incorrect optimization of by-reference closure fields by fre1 pass

2024-06-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115033 --- Comment #7 from Andrew Pinski --- Trying to reduce it ...

[Bug target/115485] CASEServer.cpp:203:1: internal compiler error: in require_pic_register, at config/arm/arm.c:7855

2024-06-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115485 --- Comment #10 from Andrew Pinski --- Can you provide the preprocessed source (which you can get via -save-temps)? This is mentioned in https://gcc.gnu.org/bugs/ on what we require.

[Bug c/115566] Arrays of character type initialized with parenthesized string literals shouldn't be diagnosed with -pedantic (at least in C23)

2024-06-22 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115566 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl --- Comment

[Bug c++/115594] requires expression permits arrays of voids

2024-06-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115594 --- Comment #2 from Andrew Pinski --- I think this is a dup of bug 24664.

[Bug c++/115594] requires expression permits arrays of voids

2024-06-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115594 --- Comment #1 from Andrew Pinski --- The interesting thing is the reason why clang outputs: :2:25: note: because 't' would be invalid: array has incomplete element type 'void' Is not exactly correct as if you change void to being a incomplete

[Bug c++/115594] New: requires expression permits arrays of voids

2024-06-22 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115594 Bug ID: 115594 Summary: requires expression permits arrays of voids Product: gcc Version: 14.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c+

[Bug libstdc++/115585] --disable-libstdcxx-verbose causes undefined symbol: _ZSt21__glibcxx_assert_failPKciS0_S0_, version GLIBCXX_3.4.30

2024-06-22 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115585 --- Comment #10 from cqwrteur --- https://gcc.gnu.org/pipermail/gcc-patches/2024-June/655462.html

[Bug c/115566] Arrays of character type initialized with parenthesized string literals shouldn't be diagnosed with -pedantic (at least in C23)

2024-06-22 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115566 --- Comment #7 from Joseph S. Myers --- The initializer with _Generic should not be accepted; that should be reported as a bug.

[Bug libstdc++/115585] --disable-libstdcxx-verbose causes undefined symbol: _ZSt21__glibcxx_assert_failPKciS0_S0_, version GLIBCXX_3.4.30

2024-06-22 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115585 --- Comment #9 from cqwrteur --- (In reply to Andrew Pinski from comment #8) > (In reply to cqwrteur from comment #7) > > The patch has passed the CI. It is time to review and merge my patch. Thank > > you. > > Before we can review it, can you

[Bug c/115593] New: invalid optimize attribute accepted without warning

2024-06-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115593 Bug ID: 115593 Summary: invalid optimize attribute accepted without warning Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: accepts-invalid, diagnostic Severity

[Bug c/115549] ICE: tree check: expected tree that contains ‘decl common’ structure, have ‘error_mark’ in common_handle_aligned_attribute, at c-family/c-attribs.cc:2665 with invalid aligned attribute

2024-06-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115549 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug libstdc++/115585] --disable-libstdcxx-verbose causes undefined symbol: _ZSt21__glibcxx_assert_failPKciS0_S0_, version GLIBCXX_3.4.30

2024-06-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115585 --- Comment #8 from Andrew Pinski --- (In reply to cqwrteur from comment #7) > The patch has passed the CI. It is time to review and merge my patch. Thank > you. Before we can review it, can you make sure you follow https://gcc.gnu.org/contribu

[Bug libstdc++/115585] --disable-libstdcxx-verbose causes undefined symbol: _ZSt21__glibcxx_assert_failPKciS0_S0_, version GLIBCXX_3.4.30

2024-06-22 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115585 --- Comment #7 from cqwrteur --- The patch has passed the CI. It is time to review and merge my patch. Thank you. https://gcc.gnu.org/pipermail/gcc-patches/2024-June/655430.html https://patchwork.sourceware.org/project/gcc/patch/sa1pr11mb713044

[Bug c++/115567] Internal Compiler Error: Segmentation Fault during build

2024-06-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115567 --- Comment #5 from Andrew Pinski --- Works for me on the trunk.

[Bug modula2/115536] Expression is evaluated incorrectly when encountering relops and indirection

2024-06-22 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115536 --- Comment #2 from Gaius Mulley --- Created attachment 58488 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58488&action=edit Proposed fix Here is a proposed fix. When in a const expression the fix creates marked boolean constvars whic

[Bug fortran/55978] class_optional_2.f90 -Os fails

2024-06-22 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55978 --- Comment #33 from anlauf at gcc dot gnu.org --- I've been repeatedly struggling with the testcase in comment#19. Since the dump-tree did not reveal anything, I ran a reduced version under gdb to see why the code crashes at -O0 and -Og but not

[Bug c++/115592] New: CWG DR 2823 seems incompletely implemented

2024-06-22 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115592 Bug ID: 115592 Summary: CWG DR 2823 seems incompletely implemented Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: accepts-invalid Severity: normal Pr

[Bug target/115589] (aarch64) clobbered register variables

2024-06-22 Thread pietro.braione at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115589 --- Comment #4 from Pietro Braione --- I see. Sorry for the noise.

[Bug sanitizer/115590] Bad dereferences through -> operator not detected by sanitizers

2024-06-22 Thread nrk at disroot dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115590 --- Comment #3 from nrk at disroot dot org --- > I am not 100% sure want to keep these around even at -O0 since they don't > have any behavior effect. I'd strongly argue that if you're using sanitizers, you'd want these to be caught :) Also wo

[Bug sanitizer/115590] Bad dereferences through -> operator not detected by sanitizers

2024-06-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115590 --- Comment #2 from Andrew Pinski --- Note if you assign it to a temporary, GCC will catch it at -O0.

[Bug sanitizer/115590] Bad dereferences through -> operator not detected by sanitizers

2024-06-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115590 --- Comment #1 from Andrew Pinski --- In this case we remove the load early on even at -O0. Way before address santiizer annotates the load. I am not 100% sure want to keep these around even at -O0 since they don't have any behavior effect.

[Bug target/115589] (aarch64) clobbered register variables

2024-06-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115589 --- Comment #3 from Andrew Pinski --- Some developers use Local Register Variables in an attempt to improve gcc’s allocation of registers, especially in large functions. In this case the register name is essentially a hint to the register alloca

[Bug target/115589] (aarch64) clobbered register variables

2024-06-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115589 Andrew Pinski changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED

[Bug target/115589] (aarch64) clobbered register variables

2024-06-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115589 Andrew Pinski changed: What|Removed |Added Keywords||inline-asm --- Comment #1 from Andrew P

[Bug middle-end/115528] [15 regression] segmentation fault in legacy F77 code since r15-1238-g1fe55a1794863b

2024-06-22 Thread juergen.reuter at desy dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115528 --- Comment #27 from Jürgen Reuter --- (In reply to Jürgen Reuter from comment #26) > (In reply to Richard Biener from comment #24) > > (In reply to Jürgen Reuter from comment #23) > > > Created attachment 58486 [details] > > > Shorter reproduce

[Bug middle-end/115528] [15 regression] segmentation fault in legacy F77 code since r15-1238-g1fe55a1794863b

2024-06-22 Thread juergen.reuter at desy dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115528 --- Comment #26 from Jürgen Reuter --- (In reply to Richard Biener from comment #24) > (In reply to Jürgen Reuter from comment #23) > > Created attachment 58486 [details] > > Shorter reproducer > > > > This is a shorter reproducer, two files of

[Bug middle-end/115528] [15 regression] segmentation fault in legacy F77 code since r15-1238-g1fe55a1794863b

2024-06-22 Thread juergen.reuter at desy dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115528 --- Comment #25 from Jürgen Reuter --- (In reply to Richard Biener from comment #24) > (In reply to Jürgen Reuter from comment #23) > > Created attachment 58486 [details] > > Shorter reproducer > > > > This is a shorter reproducer, two files of

[Bug middle-end/115528] [15 regression] segmentation fault in legacy F77 code since r15-1238-g1fe55a1794863b

2024-06-22 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115528 --- Comment #24 from Richard Biener --- (In reply to Jürgen Reuter from comment #23) > Created attachment 58486 [details] > Shorter reproducer > > This is a shorter reproducer, two files of a few hundred lines each. It > seems that the problem

[Bug ada/115591] New: ICE in riscv64-elf cross compiler, handling imported addresses

2024-06-22 Thread simon at pushface dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115591 Bug ID: 115591 Summary: ICE in riscv64-elf cross compiler, handling imported addresses Product: gcc Version: 14.1.0 Status: UNCONFIRMED Severity: normal

[Bug middle-end/115528] [15 regression] segmentation fault in legacy F77 code since r15-1238-g1fe55a1794863b

2024-06-22 Thread juergen.reuter at desy dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115528 --- Comment #23 from Jürgen Reuter --- Created attachment 58486 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58486&action=edit Shorter reproducer This is a shorter reproducer, two files of a few hundred lines each. It seems that the pro

[Bug middle-end/114855] ICE: Segfault

2024-06-22 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114855 Richard Biener changed: What|Removed |Added CC||rguenth at gcc dot gnu.org --- Comment

[Bug tree-optimization/115579] [15 regression] wrong code at -Os with "-fno-tree-sra" on x86_64-linux-gnu since r15-1391-g4b75ed33fa5fd6

2024-06-22 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115579 --- Comment #8 from Richard Biener --- Ah, ok - the situation is new in that store-flag re-use is only considered for loops which have all stores in a single BB and of course there always_stored is always the same but now ref_can_have_store_data

[Bug sanitizer/115590] New: Bad dereferences through -> operator not detected by sanitizers

2024-06-22 Thread nrk at disroot dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115590 Bug ID: 115590 Summary: Bad dereferences through -> operator not detected by sanitizers Product: gcc Version: 14.1.0 Status: UNCONFIRMED Severity: normal

[Bug c/115589] New: (aarch64) clobbered register variables

2024-06-22 Thread pietro.braione at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115589 Bug ID: 115589 Summary: (aarch64) clobbered register variables Product: gcc Version: 11.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c

[Bug c/115587] [14/15 Regression] Possible uninitialized variable (decl) in c_parser_omp_loop_nest

2024-06-22 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115587 Richard Biener changed: What|Removed |Added Target Milestone|--- |14.2

[Bug tree-optimization/115579] [15 regression] wrong code at -Os with "-fno-tree-sra" on x86_64-linux-gnu since r15-1391-g4b75ed33fa5fd6

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

[Bug c++/115588] New: ICE: in tsubst_stmt, at cp/pt.cc:18527

2024-06-22 Thread iamanonymous.cs at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115588 Bug ID: 115588 Summary: ICE: in tsubst_stmt, at cp/pt.cc:18527 Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++