[Bug target/115255] sibcall at -O0 causes ICE in df_refs_verify on arm

2024-06-01 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115255 --- Comment #7 from Andi Kleen --- The patch can be even more minimized. The thumb2_reorg change is not needed because nothing does df_verify() after it (I just noticed it because I added some extra for debugging). So even though thumb2_reorg

[Bug target/115255] sibcall at -O0 causes ICE in df_refs_verify on arm

2024-06-01 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115255 --- Comment #6 from Andi Kleen --- Created attachment 58324 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58324=edit patch to fix arm sibcalls with -O0 Better patch that uses the existing cfun flag for tail calls.

[Bug target/115255] sibcall at -O0 causes ICE in df_refs_verify on arm

2024-06-01 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115255 --- Comment #5 from Andrew Pinski --- The question comes is musttail going to always work at -O0 or should it just fail at -O0 with an error message. Or rather is musttail is just a hack in itself and should never be implemented.

[Bug target/115255] sibcall at -O0 causes ICE in df_refs_verify on arm

2024-06-01 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115255 --- Comment #4 from Andi Kleen --- Created attachment 58323 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58323=edit hack patch to fix arm sibcalls at -O0 The attached patch makes the test case pass on arm. - Some of the sibcall

[Bug c/114493] [11/12/13/14/15 Regression] internal compiler error: in fld_incomplete_type_of with may_alias

2024-06-01 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114493 Sam James changed: What|Removed |Added CC||fw at gcc dot gnu.org --- Comment #7 from

[Bug sanitizer/115273] [12 Regression] passing zero to ctz() check missing

2024-06-01 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115273 --- Comment #4 from Andrew Pinski --- Note ubsan can detect (correctly) a different undefined behavior since GCC 13 (since r13-4988-g8692b15ae7c05e; aka PR108256) but the undefinedness of passing 0 to ctz is still not detected and that is a dup

[Bug sanitizer/115127] [12/13/14/15 Regression] passing zero to __builtin_ctz() check missing since r12-151

2024-06-01 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115127 Andrew Pinski changed: What|Removed |Added Last reconfirmed|2024-05-18 00:00:00 |2024-06-02

[Bug sanitizer/115127] [12/13/14/15 Regression] passing zero to __builtin_ctz() check missing

2024-06-01 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115127 --- Comment #5 from Andrew Pinski --- *** Bug 115273 has been marked as a duplicate of this bug. ***

[Bug sanitizer/115273] [12 Regression] passing zero to ctz() check missing

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

[Bug sanitizer/115273] [12 Regression] passing zero to ctz() check missing

2024-06-01 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115273 --- Comment #2 from Andrew Pinski --- Reduced testcase: ``` int f(int a) { return __builtin_ctz(a) == 0; } int main(void) { __builtin_printf("%d\n", f(0)); } ```

[Bug tree-optimization/115060] Probable an issue around usage of vect_look_through_possible_promotion in tree-vect-patterns.cc

2024-06-01 Thread fxue at os dot amperecomputing.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115060 --- Comment #3 from Feng Xue --- Linaro reported a regression: https://linaro.atlassian.net/browse/GNU-1226 Actually, this is not, but exposes a new bug in vect_look_through_possible_promotion. The function fails to figure out root definition

[Bug pch/115312] [14/15 Regression] ICE when including a PCH via compiler option -include

2024-06-01 Thread lhyatt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115312 Lewis Hyatt changed: What|Removed |Added CC||lhyatt at gcc dot gnu.org --- Comment #1

[Bug c++/115319] New: ICE when mutating a captured parameter in an explicit-this lambda if a capture is not trivially copyable

2024-06-01 Thread blubban at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115319 Bug ID: 115319 Summary: ICE when mutating a captured parameter in an explicit-this lambda if a capture is not trivially copyable Product: gcc Version: unknown

[Bug c/114493] [11/12/13/14/15 Regression] internal compiler error: in fld_incomplete_type_of, at ipa-free-lang-data.cc:257

2024-06-01 Thread matoro_gcc_bugzilla at matoro dot tk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114493 matoro changed: What|Removed |Added CC||matoro_gcc_bugzilla@matoro.

[Bug analyzer/105888] RFE: -fanalyzer should complain when an on-stack address escapes/outlives the function

2024-06-01 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105888 Bug 105888 depends on bug 106203, which changed state. Bug 106203 Summary: Allow to emit diagnostics at return edges for the exit point as well as the call site https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106203 What|Removed

[Bug analyzer/106203] Allow to emit diagnostics at return edges for the exit point as well as the call site

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

[Bug c++/115314] auto template parameter has const qualifier on it even though the original does not

2024-06-01 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115314 Andrew Pinski changed: What|Removed |Added Summary|Type of the `auto` template |auto template parameter has

[Bug analyzer/106203] Allow to emit diagnostics at return edges for the exit point as well as the call site

2024-06-01 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106203 --- Comment #2 from GCC Commits --- The master branch has been updated by David Malcolm : https://gcc.gnu.org/g:2b0a7fe3abfbd47081f714a0a1263afe00c5cfd9 commit r15-969-g2b0a7fe3abfbd47081f714a0a1263afe00c5cfd9 Author: David Malcolm Date:

[Bug jit/103562] Jitted code produces incorrect result when returning 3-member struct from internal function

2024-06-01 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103562 Andrew Pinski changed: What|Removed |Added Status|ASSIGNED|RESOLVED Target Milestone|---

[Bug debug/91507] wrong debug for completed array with previous incomplete declaration

2024-06-01 Thread mark at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91507 Mark Wielaard changed: What|Removed |Added Status|ASSIGNED|RESOLVED CC|

[Bug c++/115318] decltype(lambda) from an template function inside a templated lambda causes ICE

2024-06-01 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115318 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug fortran/115315] [PDT] valgrind error in gfc_simplify_expr

2024-06-01 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115315 anlauf at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug c/115310] Option -Werror=return-type is too aggressive with -std=gnu89

2024-06-01 Thread fw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115310 --- Comment #5 from Florian Weimer --- (In reply to Martin Jambor from comment #4) > No. Specifically in openSUSE, -Werror=return-type is part of the > default compiler flags. We would like to silence the new errors such > as implicit-int in

[Bug c/115310] Option -Werror=return-type is too aggressive with -std=gnu89

2024-06-01 Thread jamborm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115310 --- Comment #4 from Martin Jambor --- (In reply to Sam James from comment #2) > In such environments, you don't need an explicit > -Werror=return-type. I agree I don't need it but it is there. > So, you're asking presumably about testing with

[Bug tree-optimization/115307] [avr] Don't expand isinf() like a built-in

2024-06-01 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115307 Georg-Johann Lay changed: What|Removed |Added Priority|P4 |P3

[Bug debug/78100] DWARF symbols for an array sometimes missing the array length

2024-06-01 Thread puetzk at puetzk dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78100 --- Comment #10 from Kevin Puetz --- The godbolt recipe also nails down the other end of the version range - 5.4 produced something weirder still (a single DW_TAG_variable with DW_AT_external=true, but also with DW_AT_location and

[Bug c++/115318] New: decltype(lambda) with some templates causes ICE

2024-06-01 Thread blubban at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115318 Bug ID: 115318 Summary: decltype(lambda) with some templates causes ICE Product: gcc Version: 14.1.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug libstdc++/111641] FAIL: 19_diagnostics/stacktrace/current.cc -std=gnu++23 execution test

2024-06-01 Thread dave.anglin at bell dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111641 --- Comment #14 from dave.anglin at bell dot net --- On 2024-05-29 8:17 a.m., ro at CeBiTec dot Uni-Bielefeld.DE wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111641 > > --- Comment #13 from ro at CeBiTec dot Uni-Bielefeld.DE

[Bug debug/78100] DWARF symbols for an array sometimes missing the array length

2024-06-01 Thread mark at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78100 Mark Wielaard changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug debug/91507] wrong debug for completed array with previous incomplete declaration

2024-06-01 Thread mark at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91507 Mark Wielaard changed: What|Removed |Added CC||gccbugs at dima dot secretsauce.ne

[Bug target/115317] [avr] isinf should return -1 for -Inf

2024-06-01 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115317 Georg-Johann Lay changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug tree-optimization/115307] [avr] Don't expand isinf() like a built-in

2024-06-01 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115307 --- Comment #6 from GCC Commits --- The releases/gcc-13 branch has been updated by Georg-Johann Lay : https://gcc.gnu.org/g:c57d73f4cd5ca61327406fc2521a2235dd49d12e commit r13-8817-gc57d73f4cd5ca61327406fc2521a2235dd49d12e Author:

[Bug target/115317] [avr] isinf should return -1 for -Inf

2024-06-01 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115317 --- Comment #3 from GCC Commits --- The releases/gcc-13 branch has been updated by Georg-Johann Lay : https://gcc.gnu.org/g:b45d7281c1b4eb2cf61280b9f7064229b7ca7581 commit r13-8816-gb45d7281c1b4eb2cf61280b9f7064229b7ca7581 Author:

[Bug target/115317] [avr] isinf should return -1 for -Inf

2024-06-01 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115317 --- Comment #2 from GCC Commits --- The releases/gcc-14 branch has been updated by Georg-Johann Lay : https://gcc.gnu.org/g:d7f42794d94e5a26f396253b1698ea1930337df3 commit r14-10268-gd7f42794d94e5a26f396253b1698ea1930337df3 Author:

[Bug target/115317] [avr] isinf should return -1 for -Inf

2024-06-01 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115317 --- Comment #1 from GCC Commits --- The master branch has been updated by Georg-Johann Lay : https://gcc.gnu.org/g:f12454278dc725fec3520a5d870e967d79292ee6 commit r15-968-gf12454278dc725fec3520a5d870e967d79292ee6 Author: Georg-Johann Lay

[Bug target/115317] New: [avr] isinf should return -1 for -Inf

2024-06-01 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115317 Bug ID: 115317 Summary: [avr] isinf should return -1 for -Inf Product: gcc Version: 14.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target

[Bug fortran/115316] New: valgrind error in insert_parameter_exprs

2024-06-01 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115316 Bug ID: 115316 Summary: valgrind error in insert_parameter_exprs Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug libstdc++/105258] std::get_temporary_buffer() does not respect alignment (affects std::stable_sort())

2024-06-01 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105258 Jonathan Wakely changed: What|Removed |Added Keywords||patch URL|

[Bug fortran/115315] New: valgrind error in gfc_simplify_expr

2024-06-01 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115315 Bug ID: 115315 Summary: valgrind error in gfc_simplify_expr Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran

[Bug fortran/107141] ICE: Segmentation fault (in contains_struct_check)

2024-06-01 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107141 --- Comment #5 from David Binderman --- Bit more detail from valgrind: /Lower/derived-type-finalization.f90 ==687074== Invalid read of size 8 ==687074==at 0x856D97: gfc_class_len_get(tree_node*) (trans-expr.cc:273) ==687074==by

[Bug libstdc++/115269] Hardcoded links in 14.1 docs to pages from release 4.3.2

2024-06-01 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115269 Jonathan Wakely changed: What|Removed |Added Target Milestone|--- |11.5 Status|NEW

[Bug libstdc++/115269] Hardcoded links in 14.1 docs to pages from release 4.3.2

2024-06-01 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115269 --- Comment #6 from GCC Commits --- The releases/gcc-11 branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:9b792e0159f7076e5901972be751333006e2ea83 commit r11-11460-g9b792e0159f7076e5901972be751333006e2ea83 Author: Jonathan

[Bug libstdc++/115269] Hardcoded links in 14.1 docs to pages from release 4.3.2

2024-06-01 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115269 --- Comment #5 from GCC Commits --- The releases/gcc-12 branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:26fa081ad4b7299a33b5ff4525bce8858a1b0dd2 commit r12-10483-g26fa081ad4b7299a33b5ff4525bce8858a1b0dd2 Author: Jonathan

[Bug libstdc++/115269] Hardcoded links in 14.1 docs to pages from release 4.3.2

2024-06-01 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115269 --- Comment #4 from GCC Commits --- The releases/gcc-13 branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:3687dcfabfaae566f4b42aa8a805869b809e6247 commit r13-8815-g3687dcfabfaae566f4b42aa8a805869b809e6247 Author: Jonathan

[Bug libstdc++/115269] Hardcoded links in 14.1 docs to pages from release 4.3.2

2024-06-01 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115269 --- Comment #3 from GCC Commits --- The releases/gcc-14 branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:2f097c0b3f76b50d96895158b2d80024252cfbd0 commit r14-10267-g2f097c0b3f76b50d96895158b2d80024252cfbd0 Author: Jonathan

[Bug libstdc++/115269] Hardcoded links in 14.1 docs to pages from release 4.3.2

2024-06-01 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115269 --- Comment #2 from GCC Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:b460ede64f9471589822831e04eecff4a3dbecf2 commit r15-967-gb460ede64f9471589822831e04eecff4a3dbecf2 Author: Jonathan Wakely Date:

[Bug tree-optimization/115307] [avr] Don't expand isinf() like a built-in

2024-06-01 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115307 --- Comment #5 from Georg-Johann Lay --- (In reply to Richard Biener from comment #1) > The issue is that we probably fold isinff early. On x86 I see already in > .original: > > return !(ABS_EXPR u<=

[Bug c/115311] -fno-builtin-xxx allowing anything for xxx

2024-06-01 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115311 Georg-Johann Lay changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug tree-optimization/115307] [avr] Don't expand isinf() like a built-in

2024-06-01 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115307 --- Comment #4 from Georg-Johann Lay --- The isinf part is fixied in v14.2+, but there is also isnan etc. which don't currently habe an optabs entry, so defining a failing expander won't work.

[Bug tree-optimization/115307] [avr] Don't expand isinf() like a built-in

2024-06-01 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115307 --- Comment #3 from GCC Commits --- The releases/gcc-14 branch has been updated by Georg-Johann Lay : https://gcc.gnu.org/g:9d08c55f7c99329f4289ad3a4157c2d8d8a78d8c commit r14-10266-g9d08c55f7c99329f4289ad3a4157c2d8d8a78d8c Author:

[Bug tree-optimization/115307] [avr] Don't expand isinf() like a built-in

2024-06-01 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115307 --- Comment #2 from GCC Commits --- The master branch has been updated by Georg-Johann Lay : https://gcc.gnu.org/g:fabb545026f714b7d1cbe586f4c5bbf6430bdde3 commit r15-966-gfabb545026f714b7d1cbe586f4c5bbf6430bdde3 Author: Georg-Johann Lay

[Bug c++/115314] New: Type of the `auto` template parameter in a concept is not decayed when called as dependent name

2024-06-01 Thread mateusz.pusz at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115314 Bug ID: 115314 Summary: Type of the `auto` template parameter in a concept is not decayed when called as dependent name Product: gcc Version: 15.0 Status: UNCONFIRMED