[Bug tree-optimization/101373] PRE hoists trapping instructions over possibly throwing calls

2021-07-12 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101373 --- Comment #12 from Eric Botcazou --- > Maybe for that we just have to use the result of the call in the > non-throwing case. That seems to block the hoisting in all cases.

[Bug tree-optimization/101403] [12 Regression] wrong code with __builtin_bswap16() at -O1 by r12-2137

2021-07-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101403 --- Comment #6 from CVS Commits --- The master branch has been updated by Roger Sayle : https://gcc.gnu.org/g:5f5fbb550af7d9d6cb56ae8f607fea0eccaa9295 commit r12-2238-g5f5fbb550af7d9d6cb56ae8f607fea0eccaa9295 Author: Roger Sayle Date: Mon J

[Bug c++/101420] ICE in build_special_member_call, at cp/call.c:10179

2021-07-12 Thread avi--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101420 Avi Kivity changed: What|Removed |Added CC||iains at gcc dot gnu.org --- Comment #3 fr

[Bug c++/101420] ICE in build_special_member_call, at cp/call.c:10179

2021-07-12 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101420 --- Comment #4 from Iain Sandoe --- (In reply to Avi Kivity from comment #3) > Adding Iain since the ICE happens in a coroutine. Meanwhile my desktop is > reducing the testcase. do you have a backtrace?

[Bug tree-optimization/101390] Expand vector mod as vector div + multiply-subtract

2021-07-12 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101390 Richard Biener changed: What|Removed |Added Blocks||53947 --- Comment #2 from Richard Bien

[Bug tree-optimization/101394] ICE on valid code with -O2: SSA corruption: Unable to coalesce ssa_names 10 and 19 which are marked as MUST COALESCE.

2021-07-12 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101394 Richard Biener changed: What|Removed |Added Last reconfirmed||2021-07-12 Status|UNCONFIR

[Bug c++/101420] ICE in build_special_member_call, at cp/call.c:10179

2021-07-12 Thread avi--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101420 --- Comment #5 from Avi Kivity --- How does one ask gcc to generate a backtrace on ICE?

[Bug middle-end/101415] [12 Regression] Bogus -Warray-bounds warning with stpcpy

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

[Bug rtl-optimization/101426] New: Wrong code redirecting IPA thunk parms to tail-call

2021-07-12 Thread krebbel at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101426 Bug ID: 101426 Summary: Wrong code redirecting IPA thunk parms to tail-call Product: gcc Version: 10.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Compo

[Bug target/98435] [ARM NEON] Missed optimization in expanding vector constructor

2021-07-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98435 --- Comment #1 from CVS Commits --- The master branch has been updated by Prathamesh Kulkarni : https://gcc.gnu.org/g:1e72c24d2f3b1427f5e117e371928e7af50d2036 commit r12-2239-g1e72c24d2f3b1427f5e117e371928e7af50d2036 Author: prathamesh.kulkarni

[Bug tree-optimization/101403] [12 Regression] wrong code with __builtin_bswap16() at -O1 by r12-2137

2021-07-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101403 --- Comment #7 from Jakub Jelinek --- Another question is whether we shouldn't extend the short_shift stuff in build_binary_op also to COMPOUND_EXPRs with INTEGER_CST on the ultimate rhs. unsigned int f1 (unsigned short x) { return x >> 12; } un

[Bug tree-optimization/101419] collapsing memset() calls can break __builtin_object_size()

2021-07-12 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101419 Richard Biener changed: What|Removed |Added Version|unknown |12.0 CC|

[Bug tree-optimization/101423] [12 Regression] ICE in vect_schedule_slp_node, at tree-vect-slp.c:7113 since r12-1951-ga3aaba68405751ba

2021-07-12 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101423 Richard Biener changed: What|Removed |Added Last reconfirmed||2021-07-12 Ever confirmed|0

[Bug target/101424] [12 Regression] ICE in extract_insn, at recog.c:2771 since r12-2085-gf65878178ab05180

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

[Bug sanitizer/101425] [12 Regression] AddressSanitizer: heap-buffer-overflow at candidates_list_and_hint since r12-1903-gaf9987e817f54806

2021-07-12 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101425 Richard Biener changed: What|Removed |Added Component|other |sanitizer CC|

[Bug c++/101420] ICE in build_special_member_call, at cp/call.c:10179

2021-07-12 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101420 --- Comment #6 from Iain Sandoe --- (In reply to Avi Kivity from comment #5) > How does one ask gcc to generate a backtrace on ICE? It produces one when libbacktrace is available, not aware of needing to do anything special; is there any other

[Bug rtl-optimization/101426] Wrong code redirecting IPA thunk parms to tail-call

2021-07-12 Thread krebbel at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101426 --- Comment #1 from Andreas Krebbel --- Created attachment 51136 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51136&action=edit Experimental Fix With this patch the address is copied to a pseudo first. That way the register allocator wi

[Bug c++/101420] ICE in build_special_member_call, at cp/call.c:10179

2021-07-12 Thread avi--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101420 --- Comment #7 from Avi Kivity --- ice.cc: In member function 'seastar::future<> table::generate_and_propagate_view_updates(const schema_ptr&, reader_permit, std::vector&&, mutation&&, flat_mutation_reader_opt, tracing::trace_state_ptr, gc_clock

[Bug c++/101420] ICE in build_special_member_call, at cp/call.c:10179

2021-07-12 Thread avi--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101420 --- Comment #8 from Avi Kivity --- Ugh, I forgot g++ isn't the compiler proper and setting a breakpoint is going to be tricky.

[Bug c++/101420] ICE in build_special_member_call, at cp/call.c:10179

2021-07-12 Thread avi--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101420 --- Comment #9 from Avi Kivity --- I found -dH and have a core: (gdb) bt #0 0x7f26600e02a2 in ?? () from /lib64/libc.so.6 #1 0x7f26600c98a4 in ?? () from /lib64/libc.so.6 #2 0x00ff1af4 in diagnostic_action_after_output(diagno

[Bug inline-asm/101422] register variable uninitialised before passing to asm

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

[Bug libstdc++/101427] New: std::get should refuse to compile if type is provided and it is duplicated in std::tuple

2021-07-12 Thread federico.reghenzani at polimi dot it via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101427 Bug ID: 101427 Summary: std::get should refuse to compile if type is provided and it is duplicated in std::tuple Product: gcc Version: 11.1.0 Status: UNCONFIRMED

[Bug tree-optimization/101423] [12 Regression] ICE in vect_schedule_slp_node, at tree-vect-slp.c:7113 since r12-1951-ga3aaba68405751ba

2021-07-12 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101423 --- Comment #3 from Richard Biener --- OK, so the issue is that there's no scalar trapping operation but gimple_could_trap_p returns true for the internal function calls used by SLP pattern recog, in this case .VEC_ADDSUB. gimple_could_trap_p_1

[Bug tree-optimization/101373] PRE hoists trapping instructions over possibly throwing calls

2021-07-12 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101373 --- Comment #13 from Richard Biener --- (In reply to Eric Botcazou from comment #12) > > Maybe for that we just have to use the result of the call in the > > non-throwing case. > > That seems to block the hoisting in all cases. function Bar

[Bug c++/101420] ICE in build_special_member_call, at cp/call.c:10179

2021-07-12 Thread avi--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101420 --- Comment #10 from Avi Kivity --- Reproduces on trunk: #7 0x00b439af in cp_build_modify_expr (loc=1376651745, lhs=0x7f0c55c12c60, modifycode=, rhs=0x7f0c55e63ee0, complain=) at ../../gcc/gcc/cp/typeck.c:8919 8919

[Bug tree-optimization/101423] [12 Regression] ICE in vect_schedule_slp_node, at tree-vect-slp.c:7113 since r12-1951-ga3aaba68405751ba

2021-07-12 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101423 --- Comment #4 from Richard Biener --- Created attachment 51137 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51137&action=edit patch I am testing this patch which fixes the ICE.

[Bug c++/101420] ICE in build_special_member_call, at cp/call.c:10179

2021-07-12 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101420 --- Comment #11 from Iain Sandoe --- (In reply to Avi Kivity from comment #10) > Reproduces on trunk: > > #7 0x00b439af in cp_build_modify_expr (loc=1376651745, > lhs=0x7f0c55c12c60, modifycode=, rhs=0x7f0c55e63ee0, > complain=) at ../

[Bug tree-optimization/101419] [9/10/11/12 Regression] collapsing memset() calls can break __builtin_object_size()

2021-07-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101419 Jakub Jelinek changed: What|Removed |Added Target Milestone|--- |9.5 Summary|collapsing memse

[Bug c++/101420] ICE in build_special_member_call, at cp/call.c:10179

2021-07-12 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101420 --- Comment #12 from Iain Sandoe --- (In reply to Iain Sandoe from comment #11) > (In reply to Avi Kivity from comment #10) > > Reproduces on trunk: > this looks like a dup of PR 96056 - but I am happy to check the reduced case. erm PR 98056 I

[Bug c++/101420] ICE in build_special_member_call, at cp/call.c:10179

2021-07-12 Thread avi--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101420 --- Comment #13 from Avi Kivity --- The coroutine that breaks is future<> table::generate_and_propagate_view_updates(const schema_ptr& base, reader_permit permit, std::vector&& views, mutation&& m, flat_mutation_

[Bug tree-optimization/101373] PRE hoists trapping instructions over possibly throwing calls

2021-07-12 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101373 --- Comment #14 from Eric Botcazou --- > function Bar (A : access Integer; N : Integer) return Integer is > Ret : Integer := 0; > Ret2 : Integer := 0; > begin > if N /= 0 then > Ret2 := Foo (N); > Ret := A.all; >

[Bug c++/101420] ICE in build_special_member_call, at cp/call.c:10179

2021-07-12 Thread avi--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101420 --- Comment #14 from Avi Kivity --- Very likely it's a dup: db::view::view_update_builder builder = co_await db::view::make_view_update_builder( base, std::move(views), flat_mutation_reader_from_mutations

[Bug c++/101420] ICE in build_special_member_call, at cp/call.c:10179

2021-07-12 Thread avi--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101420 --- Comment #15 from Avi Kivity --- If I move the sub-expression that contains the std::initializer_list outside co_await, the internal error is avoided.

[Bug c++/101420] ICE in build_special_member_call, at cp/call.c:10179

2021-07-12 Thread avi--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101420 --- Comment #16 from Avi Kivity --- So I confirm it's a dup. Are you still interested in a reduced testcase?

[Bug sanitizer/101425] [12 Regression] AddressSanitizer: heap-buffer-overflow at candidates_list_and_hint since r12-1903-gaf9987e817f54806

2021-07-12 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101425 Martin Liška changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |marxin at gcc dot gnu.org

[Bug target/101428] New: [10/11/12 Regression] ICE: 'asm' clobber conflict with output operand

2021-07-12 Thread asolokha at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101428 Bug ID: 101428 Summary: [10/11/12 Regression] ICE: 'asm' clobber conflict with output operand Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: ice-on-i

[Bug c++/101420] ICE in build_special_member_call, at cp/call.c:10179

2021-07-12 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101420 Iain Sandoe changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/98056] ICE tree check: expected record_type or union_type or qual_union_type, have array_type in build_special_member_call, at cp/call.c:9862 since r11-2183-g0f66b8486cea8668

2021-07-12 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98056 --- Comment #10 from Iain Sandoe --- *** Bug 101420 has been marked as a duplicate of this bug. ***

[Bug c++/101420] ICE in build_special_member_call, at cp/call.c:10179

2021-07-12 Thread avi--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101420 --- Comment #18 from Avi Kivity --- It's still >7MB long, so I'll stop reducing.

[Bug tree-optimization/101419] [9/10/11/12 Regression] collapsing memset() calls can break __builtin_object_size()

2021-07-12 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101419 --- Comment #3 from Richard Biener --- (In reply to Jakub Jelinek from comment #2) > Started with r9-2635-g78ea9abc2018243af7f7ada6135144ac90c6ad27 > I wonder if objsz pass when insert_min_max_p shouldn't in addition to adding > MIN_EXPR or MAX_

[Bug c++/101421] ICE: in lookup_template_class_1, at cp/pt.c:10005

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

[Bug tree-optimization/101394] ICE on valid code with -O2: SSA corruption: Unable to coalesce ssa_names 10 and 19 which are marked as MUST COALESCE.

2021-07-12 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101394 --- Comment #3 from Martin Liška --- Just for the record, started with r9-2475-g4864297f7858617a.

[Bug debug/101398] Multiple DW_TAG_formal_parameter DIEs for the same parameter

2021-07-12 Thread jamborm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101398 Martin Jambor changed: What|Removed |Added CC||jamborm at gcc dot gnu.org --- Comment

[Bug c++/101343] ICE in tsubst_copy, at cp/pt.c:15732

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

[Bug fortran/101330] [openmp]ICE in free_expr0(): Bad expr type

2021-07-12 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101330 Martin Liška changed: What|Removed |Added CC||marxin at gcc dot gnu.org --- Comment #2

[Bug c/101313] ICE: tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in count_type_elements, at expr.c:6273

2021-07-12 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101313 Martin Liška changed: What|Removed |Added CC||marxin at gcc dot gnu.org Last reconfi

[Bug sanitizer/101425] [12 Regression] AddressSanitizer: heap-buffer-overflow at candidates_list_and_hint since r12-1903-gaf9987e817f54806

2021-07-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101425 --- Comment #2 from CVS Commits --- The master branch has been updated by Martin Liska : https://gcc.gnu.org/g:9b8b37d1b6301855213b8d4860feaeb74d464c6b commit r12-2240-g9b8b37d1b6301855213b8d4860feaeb74d464c6b Author: Martin Liska Date: Mon

[Bug sanitizer/101425] [12 Regression] AddressSanitizer: heap-buffer-overflow at candidates_list_and_hint since r12-1903-gaf9987e817f54806

2021-07-12 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101425 Martin Liška changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug other/86656] [meta-bug] Issues found with -fsanitize=address

2021-07-12 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86656 Bug 86656 depends on bug 101425, which changed state. Bug 101425 Summary: [12 Regression] AddressSanitizer: heap-buffer-overflow at candidates_list_and_hint since r12-1903-gaf9987e817f54806 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101425

[Bug target/101428] [10/11/12 Regression] ICE: 'asm' clobber conflict with output operand

2021-07-12 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101428 Richard Biener changed: What|Removed |Added Target Milestone|--- |10.4

[Bug target/66791] [ARM] Replace builtins with gcc vector extensions code

2021-07-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66791 --- Comment #10 from CVS Commits --- The master branch has been updated by Prathamesh Kulkarni : https://gcc.gnu.org/g:6785eb595981abd93ad85edcfdf1d2e43c0841f5 commit r12-2241-g6785eb595981abd93ad85edcfdf1d2e43c0841f5 Author: prathamesh.kulkarn

[Bug tree-optimization/101419] [9/10/11/12 Regression] collapsing memset() calls can break __builtin_object_size()

2021-07-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101419 --- Comment #4 from Jakub Jelinek --- --- gcc/tree-object-size.c.jj 2021-01-04 10:25:39.911221618 +0100 +++ gcc/tree-object-size.c 2021-07-12 11:28:51.328120222 +0200 @@ -1393,6 +1393,11 @@ pass_object_sizes::execute (function *fu

[Bug tree-optimization/101403] [12 Regression] wrong code with __builtin_bswap16() at -O1 by r12-2137

2021-07-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101403 --- Comment #8 from CVS Commits --- The master branch has been updated by Roger Sayle : https://gcc.gnu.org/g:0192c3eedbc7e6fe703abd8b321f400ddb02adf7 commit r12-2242-g0192c3eedbc7e6fe703abd8b321f400ddb02adf7 Author: Roger Sayle Date: Mon J

[Bug target/101424] [12 Regression] ICE in extract_insn, at recog.c:2771 since r12-2085-gf65878178ab05180

2021-07-12 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101424 Uroš Bizjak changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |ubizjak at gmail dot com

[Bug tree-optimization/101423] [12 Regression] ICE in vect_schedule_slp_node, at tree-vect-slp.c:7113 since r12-1951-ga3aaba68405751ba

2021-07-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101423 --- Comment #5 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:123d0a597beb6d9865f808bf15b0d67f2a8fd5b2 commit r12-2243-g123d0a597beb6d9865f808bf15b0d67f2a8fd5b2 Author: Richard Biener Date:

[Bug tree-optimization/101394] ICE on valid code with -O2: SSA corruption: Unable to coalesce ssa_names 10 and 19 which are marked as MUST COALESCE.

2021-07-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101394 --- Comment #4 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:92343e0ba4d47f21ae20ffcb83d736bdbc15dae0 commit r12-2244-g92343e0ba4d47f21ae20ffcb83d736bdbc15dae0 Author: Richard Biener Date:

[Bug tree-optimization/101423] [12 Regression] ICE in vect_schedule_slp_node, at tree-vect-slp.c:7113 since r12-1951-ga3aaba68405751ba

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

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

2021-07-12 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=26163 Bug 26163 depends on bug 101423, which changed state. Bug 101423 Summary: [12 Regression] ICE in vect_schedule_slp_node, at tree-vect-slp.c:7113 since r12-1951-ga3aaba68405751ba https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101423 What

[Bug tree-optimization/100778] [11 Regression] Get SIGFPE on simple test with -fpe-trap=invalid and SLP vectorization ON, with gfortran 11.1.0 on x86_64

2021-07-12 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100778 Bug 100778 depends on bug 101423, which changed state. Bug 101423 Summary: [12 Regression] ICE in vect_schedule_slp_node, at tree-vect-slp.c:7113 since r12-1951-ga3aaba68405751ba https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101423 Wh

[Bug tree-optimization/101394] ICE on valid code with -O2: SSA corruption: Unable to coalesce ssa_names 10 and 19 which are marked as MUST COALESCE.

2021-07-12 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101394 Richard Biener changed: What|Removed |Added Known to work||12.0 --- Comment #5 from Richard Biene

[Bug tree-optimization/101419] [9/10/11/12 Regression] collapsing memset() calls can break __builtin_object_size()

2021-07-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101419 Jakub Jelinek changed: What|Removed |Added CC||siddhesh at redhat dot com --- Comment

[Bug libstdc++/101427] [11/12 Regression] std::get should refuse to compile if type is provided and it is duplicated in std::tuple

2021-07-12 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101427 Jonathan Wakely changed: What|Removed |Added Known to work||10.3.0 Summary|std::get sh

[Bug libstdc++/101406] poor codegen for shared_ptr copy & destory, compared to boost::shared_ptr and libc++'s implementation

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

[Bug tree-optimization/101419] [9/10/11/12 Regression] collapsing memset() calls can break __builtin_object_size()

2021-07-12 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101419 --- Comment #6 from Richard Biener --- Nothing can "fix" __builtin_object_size here (on sub-objects) without changing how we represent and CSE addresses, esp. if you consider inlining where we want to interpret __builtin_object_size (p, ..) as h

[Bug c++/101402] [DR 1001] top cv qualifier not dropped for array type typedef in template class

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

[Bug tree-optimization/101419] [9/10/11/12 Regression] collapsing memset() calls can break __builtin_object_size()

2021-07-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101419 --- Comment #7 from Jakub Jelinek --- It is the cunrolli pass where things go wrong (it VNs the &u->c for both __builtin_object_size calls while previously only the first one was &u->c and the second was &u->i). Now, objsz2 obviously needs to be

[Bug c++/101344] braced-init-list not supported in an aggregate deduction

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

[Bug c++/101338] Redeclaration of template members in subclass fails

2021-07-12 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101338 Jonathan Wakely changed: What|Removed |Added Target|x86-64 | Build|Homebrew GCC 11.1

[Bug c++/101343] ICE in tsubst_copy, at cp/pt.c:15732

2021-07-12 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101343 Martin Liška changed: What|Removed |Added Keywords|needs-reduction | --- Comment #3 from Martin Liška --- R

[Bug libstdc++/101268] Refer manual readers to cppreference.com for API details

2021-07-12 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101268 --- Comment #5 from Jonathan Wakely --- Thanks. Please submit patches to the mailing lists as required by: https://gcc.gnu.org/contribute.html#patches Please capitalize "an" at the start of every sentence, and use markdown `...` instead of @c .

[Bug libstdc++/101318] [10 only] Comparison operator

2021-07-12 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101318 Jonathan Wakely changed: What|Removed |Added Resolution|--- |DUPLICATE Status|UNCONFIR

[Bug libstdc++/96851] operator< on std::array does not work in constexpr, for sizeof(T) == 1, and N > 1

2021-07-12 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96851 Jonathan Wakely changed: What|Removed |Added CC||tobias.bruell at gmail dot com --- Com

[Bug libstdc++/101318] [10 only] Comparison operator

2021-07-12 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101318 Jonathan Wakely changed: What|Removed |Added Target Milestone|10.4|10.3

[Bug c++/101338] Redeclaration of template members in subclass fails

2021-07-12 Thread josipp at live dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101338 --- Comment #2 from Josip Palavra --- (In reply to Jonathan Wakely from comment #1) > All your examples are missing a semi-colon after the struct definition. Oops, thanks for pointing that out! The problem persists even with all the semicolons

[Bug tree-optimization/101419] [9/10/11/12 Regression] collapsing memset() calls can break __builtin_object_size()

2021-07-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101419 --- Comment #8 from Jakub Jelinek --- --- gcc/tree-pass.h.jj 2021-01-27 10:10:00.525903635 +0100 +++ gcc/tree-pass.h 2021-07-12 13:10:59.621933276 +0200 @@ -208,6 +208,7 @@ protected: #define PROP_gimple_lcf(1 << 1)

[Bug tree-optimization/101419] [9/10/11/12 Regression] collapsing memset() calls can break __builtin_object_size()

2021-07-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101419 --- Comment #9 from Jakub Jelinek --- The above patch will slightly pessimize optimizations during the NEXT_PASS (pass_remove_cgraph_callee_edges); /* Initial scalar cleanups before alias computation. They ensure memory acce

[Bug tree-optimization/101419] [9/10/11/12 Regression] collapsing memset() calls can break __builtin_object_size()

2021-07-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101419 Jakub Jelinek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org Last

[Bug tree-optimization/101419] [9/10/11/12 Regression] collapsing memset() calls can break __builtin_object_size()

2021-07-12 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101419 --- Comment #11 from Richard Biener --- I think none of NEXT_PASS (pass_complete_unrolli); NEXT_PASS (pass_backprop); NEXT_PASS (pass_phiprop); NEXT_PASS (pass_forwprop); are useful for objsize so IMHO we should move pa

[Bug tree-optimization/101419] [9/10/11/12 Regression] collapsing memset() calls can break __builtin_object_size()

2021-07-12 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101419 --- Comment #12 from Richard Biener --- (In reply to Jakub Jelinek from comment #10) > Created attachment 51139 [details] > gcc12-pr101419.patch > > Full untested patch. I guess that's certainly what was intended (and after the patch more expl

[Bug tree-optimization/101419] [9/10/11/12 Regression] collapsing memset() calls can break __builtin_object_size()

2021-07-12 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101419 --- Comment #13 from Richard Biener --- (In reply to Richard Biener from comment #12) > (In reply to Jakub Jelinek from comment #10) > > Created attachment 51139 [details] > > gcc12-pr101419.patch > > > > Full untested patch. > > I guess that'

[Bug tree-optimization/101419] [9/10/11/12 Regression] collapsing memset() calls can break __builtin_object_size()

2021-07-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101419 --- Comment #14 from Jakub Jelinek --- I agree about most of the passes you are moving, but I have an (albeit artificial) testcase that proves that cunrolli does affect objsz: __SIZE_TYPE__ a[10]; void foo (void) { char *p = __builtin_malloc

[Bug tree-optimization/101419] [9/10/11/12 Regression] collapsing memset() calls can break __builtin_object_size()

2021-07-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101419 --- Comment #15 from Jakub Jelinek --- (In reply to Richard Biener from comment #13) > Note usually we still run all property providers but the way you set > the property outside of pass->properties_provided breaks this. Thus > maybe split objs

[Bug inline-asm/101422] register variable uninitialised before passing to asm

2021-07-12 Thread simon.willcocks at gmx dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101422 --- Comment #7 from Simon Willcocks --- (In reply to Jakub Jelinek from comment #6) > Moving the line is the right fix Thanks for the confirmation. > It is recommended to initialize normal automatic variables first and then > only initialize re

[Bug go/101407] non-determinism in -fdump-go-spec

2021-07-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101407 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Assignee|ian at airs

[Bug tree-optimization/101419] [9/10/11/12 Regression] collapsing memset() calls can break __builtin_object_size()

2021-07-12 Thread rguenther at suse dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101419 --- Comment #16 from rguenther at suse dot de --- On Mon, 12 Jul 2021, jakub at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101419 > > --- Comment #14 from Jakub Jelinek --- > I agree about most of the passes you are

[Bug tree-optimization/101419] [9/10/11/12 Regression] collapsing memset() calls can break __builtin_object_size()

2021-07-12 Thread rguenther at suse dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101419 --- Comment #17 from rguenther at suse dot de --- On Mon, 12 Jul 2021, jakub at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101419 > > --- Comment #15 from Jakub Jelinek --- > (In reply to Richard Biener from comment

[Bug debug/101398] Multiple DW_TAG_formal_parameter DIEs for the same parameter

2021-07-12 Thread wcohen at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101398 --- Comment #2 from Will Cohen --- Created attachment 51141 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51141&action=edit The uv_irq.i file The uv_irq.i file was created from 98f7fdced2e0efb1599a37b3e57671a7884f3a25 of git://git.kernel

[Bug tree-optimization/101419] [9/10/11/12 Regression] collapsing memset() calls can break __builtin_object_size()

2021-07-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101419 --- Comment #18 from Jakub Jelinek --- (In reply to rguent...@suse.de from comment #16) > Well, my point was to avoid pessimizing the VN done from cunrolli ;) > Of course any duplication / threading can improve __bos precision, > but then any tr

[Bug libstdc++/100017] [11/12 regression] error: 'fenv_t' has not been declared in '::' -- cross toolchain fails to build

2021-07-12 Thread ofer.shinaar at wdc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100017 Ofer Shinaar changed: What|Removed |Added CC||ofer.shinaar at wdc dot com --- Comment

[Bug c++/101405] [12 Regression] internal compiler error: in reshape_init_class, at cp/decl.c:6483

2021-07-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101405 Jakub Jelinek changed: What|Removed |Added Last reconfirmed||2021-07-12 Status|UNCONFIRM

[Bug fortran/100227] [9/10/11/12 Regression] write with implicit loop

2021-07-12 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100227 Thomas Koenig changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/101421] ICE: in lookup_template_class_1, at cp/pt.c:10005

2021-07-12 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101421 Marek Polacek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org

[Bug target/101395] [11/12 regression] Compile failure with -march=native -m32 on sapphirerapids

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

[Bug libstdc++/101406] poor codegen for shared_ptr copy & destory, compared to boost::shared_ptr and libc++'s implementation

2021-07-12 Thread marc.mutz at kdab dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101406 Marc Mutz changed: What|Removed |Added Resolution|WONTFIX |FIXED --- Comment #3 from Marc Mutz --- Ok

[Bug tree-optimization/101419] [9/10/11/12 Regression] collapsing memset() calls can break __builtin_object_size()

2021-07-12 Thread rguenther at suse dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101419 --- Comment #19 from rguenther at suse dot de --- On Mon, 12 Jul 2021, jakub at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101419 > > --- Comment #18 from Jakub Jelinek --- > (In reply to rguent...@suse.de from comm

[Bug tree-optimization/101373] PRE hoists trapping instructions over possibly throwing calls

2021-07-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101373 --- Comment #15 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:fedcf3c476aff7533741a1c61071200f0a38cf83 commit r12-2254-gfedcf3c476aff7533741a1c61071200f0a38cf83 Author: Richard Biener Date:

[Bug tree-optimization/101373] PRE hoists trapping instructions over possibly throwing calls

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

[Bug fortran/101199] program changes the value of a dummy argument

2021-07-12 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101199 Thomas Koenig changed: What|Removed |Added CC||tkoenig at gcc dot gnu.org --- Comment

[Bug target/101395] [11/12 regression] Compile failure with -march=native -m32 on sapphirerapids

2021-07-12 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101395 H.J. Lu changed: What|Removed |Added Attachment #51125|0 |1 is obsolete|

[Bug target/101395] [11/12 regression] Compile failure with -march=native -m32 on sapphirerapids

2021-07-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101395 --- Comment #7 from Jakub Jelinek --- Comment on attachment 51142 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51142 A patch Can't you use one single local_cpu_detect and pass it 2 arguments (arch/tune and 32/64) instead of just one (ar

  1   2   >