[Bug middle-end/101836] __builtin_object_size(P->M, 1) where M is an array and the last member of a struct fails

2022-06-14 Thread siddhesh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101836 --- Comment #26 from Siddhesh Poyarekar --- (In reply to qinzhao from comment #25) > So, based on all the discussion so far, how about the following: > > ** add the following gcc option: > > -fstrict-flex-arrays=[0|1|2|3] > > when -fstrict-fl

[Bug gcov-profile/101618] [GCOV] Wrong coverage caused by call site in a "for" statement

2022-06-14 Thread njuwy at smail dot nju.edu.cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101618 Yang Wang changed: What|Removed |Added Resolution|FIXED |--- Status|RESOLVED

[Bug gcov-profile/100980] [GCOV]The assignment statement in the “for” structure caused the wrong coverage

2022-06-14 Thread njuwy at smail dot nju.edu.cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100980 Yang Wang changed: What|Removed |Added Resolution|FIXED |--- Status|RESOLVED

[Bug rtl-optimization/104637] [10/11 Regression] ICE: maximum number of LRA assignment passes is achieved (30) with -Og -fno-forward-propagate -mavx since r9-5221-gd8fcab689435a29d

2022-06-14 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104637 --- Comment #10 from CVS Commits --- The releases/gcc-11 branch has been updated by Vladimir Makarov : https://gcc.gnu.org/g:776283dd1946f1563a59d8f527697e0206f5390e commit r11-10064-g776283dd1946f1563a59d8f527697e0206f5390e Author: Vladimir N

[Bug rtl-optimization/104637] [10/11 Regression] ICE: maximum number of LRA assignment passes is achieved (30) with -Og -fno-forward-propagate -mavx since r9-5221-gd8fcab689435a29d

2022-06-14 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104637 --- Comment #11 from CVS Commits --- The releases/gcc-11 branch has been updated by Vladimir Makarov : https://gcc.gnu.org/g:0b518d844a49b2ee48d07e17cce855a4eec59490 commit r11-10065-g0b518d844a49b2ee48d07e17cce855a4eec59490 Author: Jakub Jeli

[Bug rtl-optimization/104637] [10/11 Regression] ICE: maximum number of LRA assignment passes is achieved (30) with -Og -fno-forward-propagate -mavx since r9-5221-gd8fcab689435a29d

2022-06-14 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104637 --- Comment #12 from CVS Commits --- The releases/gcc-10 branch has been updated by Vladimir Makarov : https://gcc.gnu.org/g:688703569091edfd0400523d85cbb44d15aa61ea commit r10-10830-g688703569091edfd0400523d85cbb44d15aa61ea Author: Vladimir N

[Bug rtl-optimization/104637] [10/11 Regression] ICE: maximum number of LRA assignment passes is achieved (30) with -Og -fno-forward-propagate -mavx since r9-5221-gd8fcab689435a29d

2022-06-14 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104637 --- Comment #13 from CVS Commits --- The releases/gcc-10 branch has been updated by Vladimir Makarov : https://gcc.gnu.org/g:4c6e66a4dba5bbbcf343c1f6a58f355e270e79b9 commit r10-10831-g4c6e66a4dba5bbbcf343c1f6a58f355e270e79b9 Author: Jakub Jeli

[Bug rtl-optimization/104637] [10/11 Regression] ICE: maximum number of LRA assignment passes is achieved (30) with -Og -fno-forward-propagate -mavx since r9-5221-gd8fcab689435a29d

2022-06-14 Thread vmakarov at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104637 --- Comment #14 from Vladimir Makarov --- I've just ported the two patches to gcc-10 and gcc-11 release branches. gcc-10 required additional work besides just cherry-picking. The patches were successfully bootstrapped and tested on x86-64.

[Bug middle-end/101836] __builtin_object_size(P->M, 1) where M is an array and the last member of a struct fails

2022-06-14 Thread qing.zhao at oracle dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101836 --- Comment #27 from Qing Zhao --- > On Jun 14, 2022, at 11:39 AM, siddhesh at gcc dot gnu.org > wrote: > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101836 > > --- Comment #26 from Siddhesh Poyarekar --- > (In reply to qinzhao from comm

[Bug c++/105976] New: -Wuse-after-free warning with std::shared_ptr[]>::reset

2022-06-14 Thread anabelsmruggiero at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105976 Bug ID: 105976 Summary: -Wuse-after-free warning with std::shared_ptr[]>::reset Product: gcc Version: 12.1.0 Status: UNCONFIRMED Severity: normal Pri

[Bug middle-end/101836] __builtin_object_size(P->M, 1) where M is an array and the last member of a struct fails

2022-06-14 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101836 --- Comment #28 from Jakub Jelinek --- (In reply to Qing Zhao from comment #27) > > Wouldn't this be -fno-strict-flex-arrays, i.e. the current behaviour? > > Yes, it’s the same. =0 is aliased with -fno-strict-flex-arrays. That is indeed what

[Bug bootstrap/44425] configure should probe prefix for gmp/mpfr/mpc

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

[Bug c/105950] > O2 optimization causes runtime (SIGILL) during main initialization

2022-06-14 Thread jkanapes at yahoo dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105950 --- Comment #26 from John Kanapes --- On Tuesday, June 14, 2022 at 06:37:17 PM GMT+3, redi at gcc dot gnu.org wrote: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105950 --- Comment #25 from Jonathan Wakely --- (In reply to John Kanape

[Bug middle-end/105951] [12/13 Regression] ICE in emit_store_flag, at expmed.cc:6027

2022-06-14 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105951 Jakub Jelinek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug target/105960] [12/13 Regression] Crash in 32-bit mode

2022-06-14 Thread wwcsmail at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105960 Wolfgang Wander changed: What|Removed |Added CC||wwcsmail at gmail dot com --- Comment

[Bug tree-optimization/97185] inconsistent builtin elimination for impossible range

2022-06-14 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97185 --- Comment #2 from Martin Sebor --- There's a heuristic for ranges of allocation sizes to exclude zero (size_range_flags) that comes into play here. The actual range isn't "impossible" in the sense it's necessarily invalid. It just means the s

[Bug rtl-optimization/105041] '-fcompare-debug' failure w/ -mcpu=power6 -O2 -fharden-compares -frename-registers

2022-06-14 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105041 --- Comment #7 from CVS Commits --- The master branch has been updated by Segher Boessenkool : https://gcc.gnu.org/g:3e16b4359e86b36676ed01219e6deafa95f3c16b commit r13-1092-g3e16b4359e86b36676ed01219e6deafa95f3c16b Author: Surya Kumari Jangal

[Bug c/105977] New: [12/13 Regression] ICE in gimple_call_static_chain_flags, at gimple.cc:1636

2022-06-14 Thread gscfq--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105977 Bug ID: 105977 Summary: [12/13 Regression] ICE in gimple_call_static_chain_flags, at gimple.cc:1636 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: no

[Bug c++/105978] New: ICE: nodes with unreleased memory found

2022-06-14 Thread gscfq--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105978 Bug ID: 105978 Summary: ICE: nodes with unreleased memory found Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug c++/105979] New: ICE in change_stack, at reg-stack.cc:2660

2022-06-14 Thread gscfq--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105979 Bug ID: 105979 Summary: ICE in change_stack, at reg-stack.cc:2660 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug c++/105980] New: [11/12/13 Regression] ICE in final_scan_insn_1, at final.cc:2811

2022-06-14 Thread gscfq--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105980 Bug ID: 105980 Summary: [11/12/13 Regression] ICE in final_scan_insn_1, at final.cc:2811 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal

[Bug fortran/105954] ICE in gfc_element_size, at fortran/target-memory.cc:132

2022-06-14 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105954 anlauf at gcc dot gnu.org changed: What|Removed |Added CC||anlauf at gcc dot gnu.org

[Bug libstdc++/99290] std::filesystem::copy does not always report errors for recursion

2022-06-14 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99290 --- Comment #6 from CVS Commits --- The releases/gcc-10 branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:43cbff3da5a856d1b18a9ad33b337ab829af73ed commit r10-10833-g43cbff3da5a856d1b18a9ad33b337ab829af73ed Author: Jonathan Wake

[Bug libstdc++/99290] std::filesystem::copy does not always report errors for recursion

2022-06-14 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99290 Jonathan Wakely changed: What|Removed |Added Target Milestone|11.4|10.4 --- Comment #7 from Jonathan Wake

[Bug c/105981] New: Wrong code generated when compiling for arm cortex-a72 in AARCH32 with -mbig-endian

2022-06-14 Thread gjimenez at teldat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105981 Bug ID: 105981 Summary: Wrong code generated when compiling for arm cortex-a72 in AARCH32 with -mbig-endian Product: gcc Version: 12.1.0 Status: UNCONFIRMED Se

[Bug libstdc++/97944] 30_threads/jthread/95989.cc fails randomly

2022-06-14 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97944 --- Comment #9 from CVS Commits --- The releases/gcc-10 branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:29b676bcf10b0a6c04e8acdf91f18b28bf5b1501 commit r10-10835-g29b676bcf10b0a6c04e8acdf91f18b28bf5b1501 Author: Jonathan Wake

[Bug fortran/105954] ICE in gfc_element_size, at fortran/target-memory.cc:132

2022-06-14 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105954 --- Comment #3 from anlauf at gcc dot gnu.org --- (In reply to anlauf from comment #2) > Reduced testcase: > > integer, parameter :: m = sizeof(d) ! ICE for n < 1 In target-memory.cc we run into int_size_in_bytes(), which returns -12 for n=0,

[Bug target/34422] Bootstrap error with --enable-fixed-point (configure should reject --enable-fixed-point on platforms that don't support it)

2022-06-14 Thread egallager at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=34422 Eric Gallager changed: What|Removed |Added Keywords||patch URL|

[Bug fortran/105954] ICE in gfc_element_size, at fortran/target-memory.cc:132

2022-06-14 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105954 --- Comment #4 from anlauf at gcc dot gnu.org --- Anyway, there's likely an ordering issue looking at array bounds and using them. Moving the type decl to a module, the problem seems to disappear: module m implicit none integer, parameter :

[Bug target/105975] OpenMP/nvptx offloading: 'internal compiler error: in maybe_legitimize_operand, at optabs.cc:7785'

2022-06-14 Thread rsandifo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105975 --- Comment #1 from rsandifo at gcc dot gnu.org --- Could you point to a specific test and give command-line arguments? I'm not set up to do an nvptx test run.

[Bug libstdc++/105957] __n * sizeof(_Tp) might overflow under consteval context for std::allocator

2022-06-14 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105957 --- Comment #2 from CVS Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:0a9af7b4ef1b8aa85cc8820acf54d41d1569fc10 commit r13-1093-g0a9af7b4ef1b8aa85cc8820acf54d41d1569fc10 Author: Jonathan Wakely Date:

[Bug libstdc++/59048] operator== between std::string and const char* slower than strcmp

2022-06-14 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59048 --- Comment #19 from CVS Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:1b65779f46f16b4fffd0591f5e58722c1e7cde8d commit r13-1095-g1b65779f46f16b4fffd0591f5e58722c1e7cde8d Author: Jonathan Wakely Date:

[Bug libstdc++/62187] std::string==const char* could compare sizes first

2022-06-14 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62187 --- Comment #8 from CVS Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:6abe341558abec40c9c44d76e7fb4fb3978e894b commit r13-1096-g6abe341558abec40c9c44d76e7fb4fb3978e894b Author: Jonathan Wakely Date:

[Bug libstdc++/105957] __n * sizeof(_Tp) might overflow under consteval context for std::allocator

2022-06-14 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105957 Jonathan Wakely changed: What|Removed |Added Target Milestone|--- |12.2 --- Comment #3 from Jonathan Wak

[Bug libstdc++/62187] std::string==const char* could compare sizes first

2022-06-14 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62187 Jonathan Wakely changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug libstdc++/59048] operator== between std::string and const char* slower than strcmp

2022-06-14 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59048 Jonathan Wakely changed: What|Removed |Added Target Milestone|--- |13.0 Status|ASSIGNED

[Bug middle-end/101836] __builtin_object_size(P->M, 1) where M is an array and the last member of a struct fails

2022-06-14 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101836 --- Comment #29 from qinzhao at gcc dot gnu.org --- (In reply to Jakub Jelinek from comment #28) > (In reply to Qing Zhao from comment #27) > > > Wouldn't this be -fno-strict-flex-arrays, i.e. the current behaviour? > > > > Yes, it’s the same.

[Bug target/105979] ICE in change_stack, at reg-stack.cc:2660

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

[Bug target/90777] [10/11/12/13 Regression] pr84828 testcase ICEs for m32 x86_64,i686-darwin*

2022-06-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90777 Andrew Pinski changed: What|Removed |Added CC||gs...@t-online.de --- Comment #6 from An

[Bug c++/105982] New: [13 Regression] internal compiler error: in lookup_template_class, at cp/pt.cc:10361

2022-06-14 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105982 Bug ID: 105982 Summary: [13 Regression] internal compiler error: in lookup_template_class, at cp/pt.cc:10361 Product: gcc Version: 13.0 Status: UNCONFIRMED Key

[Bug middle-end/101836] __builtin_object_size(P->M, 1) where M is an array and the last member of a struct fails

2022-06-14 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101836 --- Comment #30 from Jakub Jelinek --- grep shows: common.opt:Common Alias(Wattribute_alias=, 1, 0) Warning common.opt:Common Alias(Wimplicit-fallthrough=,3,0) Warning c-family/c.opt:C ObjC C++ ObjC++ Warning Alias(Warray-parameter=, 2, 0) c-fam

[Bug c++/105982] [13 Regression] internal compiler error: in lookup_template_class, at cp/pt.cc:10361

2022-06-14 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105982 --- Comment #1 from Jonathan Wakely --- Created attachment 53138 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53138&action=edit -freport-bug output

[Bug c++/105982] [13 Regression] internal compiler error: in lookup_template_class, at cp/pt.cc:10361

2022-06-14 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105982 Jonathan Wakely changed: What|Removed |Added Last reconfirmed||2022-06-14 Status|UNCONFI

[Bug tree-optimization/105983] New: Failure to optimize (b != 0) && (a >= b) as well as the same pattern with binary and

2022-06-14 Thread gabravier at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105983 Bug ID: 105983 Summary: Failure to optimize (b != 0) && (a >= b) as well as the same pattern with binary and Product: gcc Version: 13.0 Status: UNCONFIRMED Sev

[Bug tree-optimization/105983] Failure to optimize (b != 0) && (a >= b) as well as the same pattern with binary and

2022-06-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105983 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement

[Bug tree-optimization/105983] Failure to optimize (b != 0) && (a >= b) as well as the same pattern with binary and

2022-06-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105983 --- Comment #1 from Andrew Pinski --- aarch64 GCC is able to compile it to: f(unsigned int, unsigned int): cmp w1, 0 ccmpw1, w0, 2, ne csetw0, ls ret While aarch64 LLVM does: sub w8, w1, #

[Bug tree-optimization/105983] Failure to optimize (b != 0) && (a >= b) as well as the same pattern with binary and

2022-06-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105983 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Blocks|

[Bug objc/101666] Objective-C frontend crashes with `-fobjc-nilcheck`

2022-06-14 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101666 Iain Sandoe changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED

[Bug middle-end/105984] New: [13 Regression] wrong code with __builtin_mul_overflow_p() at -O1

2022-06-14 Thread zsojka at seznam dot cz via Gcc-bugs
y-trunk-r13-1092-20220614173648-g3e16b4359e8-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 13.0.0 20220614 (experimental) (GCC)

[Bug rtl-optimization/105041] '-fcompare-debug' failure w/ -mcpu=power6 -O2 -fharden-compares -frename-registers

2022-06-14 Thread jskumari at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105041 Surya Kumari Jangala changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug target/105953] [12/13 Regression] ICE in extract_insn, at recog.cc:2791

2022-06-14 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105953 --- Comment #2 from CVS Commits --- The master branch has been updated by hongtao Liu : https://gcc.gnu.org/g:4b1a827f024234aaf83ecfe90415e88b525d3969 commit r13-1099-g4b1a827f024234aaf83ecfe90415e88b525d3969 Author: liuhongt Date: Tue Jun

[Bug target/105953] [12/13 Regression] ICE in extract_insn, at recog.cc:2791

2022-06-14 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105953 --- Comment #3 from CVS Commits --- The releases/gcc-12 branch has been updated by hongtao Liu : https://gcc.gnu.org/g:bac09a893145056217b1e9a0054466a770815c43 commit r12-8482-gbac09a893145056217b1e9a0054466a770815c43 Author: liuhongt Date:

<    1   2