[Bug rtl-optimization/63281] powerpc64le creates 64 bit constants from scratch instead of loading them

2022-01-04 Thread guojiufu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63281 --- Comment #20 from Jiu Fu Guo --- Created attachment 52114 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52114&action=edit testcases With these test cases, invoke 'foo' in these cases 1000,000,000 times, to see the runtime: building 'co

[Bug rtl-optimization/103900] New: ICE: in expand_expr_real_2, at expr.c:9771 with -O -fno-tree-dce -fno-tree-dse

2022-01-04 Thread zsojka at seznam dot cz via Gcc-bugs
8-g05da96886ef-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 12.0.0 20220104 (experimental) (GCC)

[Bug c++/103868] ICE at end of coroutine when using asio

2022-01-04 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103868 --- Comment #3 from Martin Liška --- Created attachment 52116 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52116&action=edit Partially reduced test-case The test-case fails with the following on master: $ ./xgcc -B. /tmp/x.ii -c -std=c

[Bug c++/103868] ICE at end of coroutine when using asio

2022-01-04 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103868 Martin Liška changed: What|Removed |Added Keywords|needs-bisection,| |needs-reduction

[Bug tree-optimization/92860] [9/10/11/12 regression] Global flags affected by -O settings are clobbered by optimize attribute

2022-01-04 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92860 --- Comment #80 from Martin Liška --- I've got access to a bdver2 machine, so I should be able to reproduce it.

[Bug c++/103901] New: A lambda with a new type in its body cannot be defined inside template parameter list

2022-01-04 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103901 Bug ID: 103901 Summary: A lambda with a new type in its body cannot be defined inside template parameter list Product: gcc Version: 12.0 Status: UNCONFIRMED Se

[Bug fortran/103898] [12 Regression] ICE: gimplification failed

2022-01-04 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103898 Martin Liška changed: What|Removed |Added CC||marxin at gcc dot gnu.org --- Comment #6

[Bug rtl-optimization/103900] [12 Regression] ICE: in expand_expr_real_2, at expr.c:9771 with -O -fno-tree-dce -fno-tree-dse since r12-6173-g9ff206d3865df5cb

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

[Bug libstdc++/103629] [11/12 Regression] Possible miscompilation visible using pthread + exception

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

[Bug c++/103631] [11/12 Regression] ICE in C++20 class NTTP + concept since r12-100-gbcd77b7b9f35bd5b

2022-01-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103631 Richard Biener changed: What|Removed |Added Priority|P3 |P2

[Bug fortran/82968] gfortran.dg/ieee/ieee_6.f90 fails at -O0

2022-01-04 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82968 --- Comment #5 from Eric Botcazou --- > Eric, could you kindly test the patch attached, and let me know if it fixes > gfortran.dg/ieee/ieee_6.f90? Does it introduce any other failure? The SPARC64/Linux machine of the Compile Farm apparently has

[Bug objc/103639] [11 Regression] switch case with break in fast enumeration loop generates wrong code

2022-01-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103639 Richard Biener changed: What|Removed |Added Priority|P3 |P2 Summary|[11/12 Regressio

[Bug rtl-optimization/103860] [9/10/11 Regression] wrong code at -O3 with -fPIC on x86_64-linux-gnu

2022-01-04 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103860 --- Comment #10 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:801b2c880c8079934ac186ea1c31f3bf4af5aef3 commit r12-6202-g801b2c880c8079934ac186ea1c31f3bf4af5aef3 Author: Jakub Jelinek Date:

[Bug tree-optimization/103544] [11 Regression] compiler crashes when trying to vectorize loop

2022-01-04 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103544 --- Comment #8 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:1a15451da14410bf2bd6ec8f5baba1014638c67a commit r12-6203-g1a15451da14410bf2bd6ec8f5baba1014638c67a Author: Richard Biener Date:

[Bug tree-optimization/103864] [11/12 Regression] ICE in vect_transform_reduction, at tree-vect-loop.c:7389 since r10-4675-g05101d1b575a57ca26e4275e971da85a0dd1d52a

2022-01-04 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103864 --- Comment #7 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:1a15451da14410bf2bd6ec8f5baba1014638c67a commit r12-6203-g1a15451da14410bf2bd6ec8f5baba1014638c67a Author: Richard Biener Date:

[Bug tree-optimization/103864] [11 Regression] ICE in vect_transform_reduction, at tree-vect-loop.c:7389 since r10-4675-g05101d1b575a57ca26e4275e971da85a0dd1d52a

2022-01-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103864 Richard Biener changed: What|Removed |Added Priority|P3 |P2 Summary|[11/12 Regressio

[Bug middle-end/103643] [12 Regression][OpenMP] ICE in create_tmp_var, at gimple-expr.c:482 - via gimplify_omp_affinity

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

[Bug tree-optimization/103647] constant array comparison not always folded

2022-01-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103647 --- Comment #3 from Richard Biener --- fab is a bit late for this part of memcmp folding I guess, I'd have expected that to happen in generic folding like when we inline memcpy. It seems it's actually the strlen pass that inlines the compare.

[Bug c++/103902] New: Only the addition space between string-literal and identifier in a literal-operator-id will be accepted by GCC where the identifier is not in a basic character set

2022-01-04 Thread xmh970252187 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103902 Bug ID: 103902 Summary: Only the addition space between string-literal and identifier in a literal-operator-id will be accepted by GCC where the identifier is not in a basic

[Bug fortran/103662] TBAA problem in Fortran FE triggering in gfortran.dg/unlimited_polymorphic_3.f03

2022-01-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103662 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug fortran/103662] [12 Regression] TBAA problem in Fortran FE triggering in gfortran.dg/unlimited_polymorphic_3.f03

2022-01-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103662 Richard Biener changed: What|Removed |Added Summary|TBAA problem in Fortran FE |[12 Regression] TBAA

[Bug tree-optimization/103665] insert_trap in gimple-isolate-paths interferes badly with modref, pure-const and other optimizations

2022-01-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103665 --- Comment #2 from Richard Biener --- Maybe we can simply use __builtin_trap[_mem] (&MEM[(union tree_node *)0B].base.code);

[Bug target/103900] [12 Regression] ICE: in expand_expr_real_2, at expr.c:9771 with -O -fno-tree-dce -fno-tree-dse since r12-6173-g9ff206d3865df5cb

2022-01-04 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103900 --- Comment #2 from Uroš Bizjak --- Looks fixed, does not ICE for me with: GNU C17 (GCC) version 12.0.0 20220104 (experimental) [master r12-6200-g62c8b21d48a] (x86_64-pc-linux-gnu)

[Bug gcov-profile/103666] [11/12 Regression] compiling single-file programs with -fprofile-generate no longer leads to intended results since r11-627-g1dedc12d186a1108

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

[Bug c++/103672] [10/11/12 Regression] using with template class> causes internal compiler error

2022-01-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103672 Richard Biener changed: What|Removed |Added Priority|P3 |P2 Target Milestone|---

[Bug target/103900] [12 Regression] ICE: in expand_expr_real_2, at expr.c:9771 with -O -fno-tree-dce -fno-tree-dse since r12-6173-g9ff206d3865df5cb

2022-01-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103900 --- Comment #3 from Andrew Pinski --- (In reply to Uroš Bizjak from comment #2) > Looks fixed, does not ICE for me with: Maybe the fix for PR 103895 fixed this one also.

[Bug target/103900] [12 Regression] ICE: in expand_expr_real_2, at expr.c:9771 with -O -fno-tree-dce -fno-tree-dse since r12-6173-g9ff206d3865df5cb

2022-01-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103900 --- Comment #4 from Andrew Pinski --- (In reply to Uroš Bizjak from comment #2) > Looks fixed, does not ICE for me with: > > GNU C17 (GCC) version 12.0.0 20220104 (experimental) [master > r12-6200-g62c8b21d48a] (x86_64-pc-linux-gnu

[Bug target/103900] [12 Regression] ICE: in expand_expr_real_2, at expr.c:9771 with -O -fno-tree-dce -fno-tree-dse since r12-6173-g9ff206d3865df5cb

2022-01-04 Thread marxin at gcc dot gnu.org via Gcc-bugs
gcc version 12.0.0 20220104 (experimental) (GCC) COLLECT_GCC_OPTIONS='-c' '-O' '-fno-tree-dce' '-fno-tree-dse' '-save-temps' '-v' '-mtune=generic' '-march=x86-64' /home/marxin/bin/gcc/libexec/gcc/x86_64-pc-linux-gnu/12

[Bug target/103675] gather is a loss for floats and win for doubles at zen3

2022-01-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103675 Richard Biener changed: What|Removed |Added Target||x86_64-*-* --- Comment #1 from Richard

[Bug tree-optimization/103680] Jump threading and switch corrupts profile

2022-01-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103680 --- Comment #4 from Richard Biener --- And for CFG cleanup there's no profile updating done when passes leave CFG update to it by simplifying conditions to if (0) or if (1). One could argue that "late" simplifications simply make the guessed pr

[Bug target/103686] ICE in rs6000_expand_new_builtin at rs6000-call.c:15946

2022-01-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103686 --- Comment #7 from Richard Biener --- -m[no-]fold-gimple is also a very badly named user option since it suggests that 'fold' and 'gimple' are terms known to programmers. I'm just guessing it was added to avoid "inlining" intrinsics as GIMPLE,

[Bug target/103900] [12 Regression] ICE: in expand_expr_real_2, at expr.c:9771 with -O -fno-tree-dce -fno-tree-dse since r12-6173-g9ff206d3865df5cb

2022-01-04 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103900 --- Comment #6 from Uroš Bizjak --- (In reply to Martin Liška from comment #5) > No, it still crashes with the current master (g:fbb592407c9): Ah, the compiler is blindly trying to generate V2QI XOR due to missing one_cmplv2qi2 pattern. I have

[Bug target/103900] [12 Regression] ICE: in expand_expr_real_2, at expr.c:9771 with -O -fno-tree-dce -fno-tree-dse since r12-6173-g9ff206d3865df5cb

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

[Bug libstdc++/103891] clang-13 fails to compile libstdc++'s std::variant>: error: attempt to use a deleted function

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

[Bug target/103686] ICE in rs6000_expand_new_builtin at rs6000-call.c:15946

2022-01-04 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103686 --- Comment #8 from Segher Boessenkool --- It is an internal (debugging) option. It isn't documented in the manual, but indeed it is not marked as Undocumented in rs6000.opt .

[Bug libstdc++/103891] clang-13 fails to compile libstdc++'s std::variant>: error: attempt to use a deleted function

2022-01-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103891 --- Comment #4 from Jonathan Wakely --- I suppose we could just do: --- a/libstdc++-v3/include/std/variant +++ b/libstdc++-v3/include/std/variant @@ -54,7 +54,7 @@ namespace std _GLIBCXX_VISIBILITY(default) { _GLIBCXX_BEGIN_NAMESPACE_VERSION

[Bug tree-optimization/103690] [12 Regression] ICE: in build2, at tree.c:4985 with -g -O2 -fno-tree-dce -fno-tree-dse -fno-tree-fre --param=max-jump-thread-duplication-stmts=94 since r12-2591-g2e96b5f

2022-01-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103690 Richard Biener changed: What|Removed |Added Priority|P3 |P1 Status|NEW

[Bug fortran/103691] [12 Regression] ICE in get_array_ctor_element_at_index, at fold-const.c:13314 since r12-4694-gcb153222404e2e14

2022-01-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103691 Richard Biener changed: What|Removed |Added Priority|P3 |P1 --- Comment #3 from Richard Biener

[Bug fortran/103692] [11/12 Regression] ICE in add_init_expr_to_sym, at fortran/decl.c:2062

2022-01-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103692 Richard Biener changed: What|Removed |Added Target Milestone|--- |11.3 Priority|P3

[Bug fortran/103693] [12 Regression] ICE in gfc_array_dimen_size(): Bad EXPR_ARRAY expr since r12-4967-gbcf3728abe848888

2022-01-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103693 Richard Biener changed: What|Removed |Added Priority|P3 |P4 Target Milestone|---

[Bug fortran/103694] [12 Regression] ICE in gfc_conv_expr_op, at fortran/trans-expr.c:3882 since r12-3993-gb19bbfb148250536

2022-01-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103694 Richard Biener changed: What|Removed |Added Target Milestone|--- |12.0 Priority|P3

[Bug fortran/103695] [12 Regression][OpenMP] affinity clause - ICE: verify_ssa failed since r12-1108-g9a5de4d5af1c10a8

2022-01-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103695 Richard Biener changed: What|Removed |Added Priority|P3 |P1 Target Milestone|---

[Bug c++/103705] [12 Regression] ICE: tree check: expected tree that contains 'decl minimal' structure, have 'array_ref' in finish_omp_clauses, at cp/semantics.c:7928 since r12-5838-g6c0399378e77d029

2022-01-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103705 Richard Biener changed: What|Removed |Added Target Milestone|--- |12.0 Priority|P3

[Bug fortran/103715] [9/10/11/12 Regression] ICE in gfc_find_gsymbol, at fortran/symbol.c:4301 since r9-3803-ga5fbc2f36a291cbe

2022-01-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103715 Richard Biener changed: What|Removed |Added Priority|P3 |P4 Target Milestone|---

[Bug fortran/103716] [10/11/12 Regression] ICE in gimplify_expr, at gimplify.c:15964 since r9-3803-ga5fbc2f36a291cbe

2022-01-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103716 Richard Biener changed: What|Removed |Added Target Milestone|--- |10.4

[Bug tree-optimization/92860] [9/10/11/12 regression] Global flags affected by -O settings are clobbered by optimize attribute

2022-01-04 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92860 --- Comment #81 from David Binderman --- Created attachment 52118 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52118&action=edit preprocessed source code Bug seems to have moved to unwind-dw2.c. Preprocessed source code attached.

[Bug tree-optimization/103721] [12 regression] wrong code generated for loop with conditional since r12-4790-g4b3a325f07acebf4

2022-01-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103721 Richard Biener changed: What|Removed |Added Priority|P3 |P1

[Bug target/103722] [12 Regression] ICE in extract_constrain_insn building glibc for SH4

2022-01-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103722 Richard Biener changed: What|Removed |Added Priority|P3 |P4

[Bug tree-optimization/92860] [9/10/11/12 regression] Global flags affected by -O settings are clobbered by optimize attribute

2022-01-04 Thread dcb314 at hotmail dot com via Gcc-bugs
e/dcb/gcc/working/./gcc/xgcc -B/home/dcb/gcc/working/./gcc/ -B/home/dcb/gcc/results.20220104/x86_64-pc-linux- gnu/bin/ -B/home/dcb/gcc/results.20220104/x86_64-pc-linux-gnu/lib/ -isystem /home/dcb/gcc/results.20220104/x86_64 -pc-linux-gnu/include -isystem /home/dcb/gcc/results.20220104/x86_64-p

[Bug tree-optimization/103723] zero extend not sunk out of the loop after IV-OPTS in the sink pass

2022-01-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103723 Richard Biener changed: What|Removed |Added Summary|zero extend not moved out |zero extend not sunk out of

[Bug tree-optimization/103725] [9/10/11/12 Regression] warning: assuming signed overflow does not occur when simplifying conditional to constant

2022-01-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103725 Richard Biener changed: What|Removed |Added Target Milestone|--- |9.5 --- Comment #3 from Richard Biener

[Bug fortran/103691] [12 Regression] ICE in get_array_ctor_element_at_index, at fold-const.c:13314 since r12-4694-gcb153222404e2e14

2022-01-04 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103691 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #4

[Bug tree-optimization/103690] [12 Regression] ICE: in build2, at tree.c:4985 with -g -O2 -fno-tree-dce -fno-tree-dse -fno-tree-fre --param=max-jump-thread-duplication-stmts=94 since r12-2591-g2e96b5f

2022-01-04 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103690 --- Comment #7 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:ebc853deb7cc0487de9ef6e891a007ba853d1933 commit r12-6208-gebc853deb7cc0487de9ef6e891a007ba853d1933 Author: Richard Biener Date:

[Bug tree-optimization/103690] [12 Regression] ICE: in build2, at tree.c:4985 with -g -O2 -fno-tree-dce -fno-tree-dse -fno-tree-fre --param=max-jump-thread-duplication-stmts=94 since r12-2591-g2e96b5f

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

[Bug fortran/103691] [12 Regression] ICE in get_array_ctor_element_at_index, at fold-const.c:13314 since r12-4694-gcb153222404e2e14

2022-01-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103691 --- Comment #5 from Richard Biener --- (In reply to Jakub Jelinek from comment #4) > To me it looks like the PR52329 change wasn't correct. In particular, it > should have been using true as the second argument and not false and > therefore sho

[Bug fortran/103691] [12 Regression] ICE in get_array_ctor_element_at_index, at fold-const.c:13314 since r12-4694-gcb153222404e2e14

2022-01-04 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103691 --- Comment #6 from Jakub Jelinek --- Ok, will test that change. The FE should be probably also fixed to drop such initializers, there is no point to have initializers for empty arrays.

[Bug tree-optimization/103761] [12 Regression] ICE in exact_div, at poly-int.h:2239 since r12-5612-g10833849b55401a52f2334eb032a70beb688e9fc

2022-01-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103761 Richard Biener changed: What|Removed |Added Priority|P3 |P1

[Bug testsuite/103763] [12 regression] gcc.target/powerpc/fold-vec-splat-floatdouble.c fails after r12-5988

2022-01-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103763 Richard Biener changed: What|Removed |Added Target Milestone|--- |12.0

[Bug tree-optimization/103765] Missed arithmetic simplification for multiplication + division

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

[Bug fortran/103782] [9/10/11/12 Regression] internal error occurs when overloading intrinsic since r9-1566-g87c789f1c0b2df41

2022-01-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103782 Richard Biener changed: What|Removed |Added Priority|P3 |P4

[Bug tree-optimization/103797] Clang vectorized LightPixel while GCC does not

2022-01-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103797 Richard Biener changed: What|Removed |Added Status|NEW |RESOLVED Version|unknown

[Bug middle-end/103813] [11 Regression] Crash in decompose, at wide-int.h:984 fold-const since r11-5271-g4866b2f5db117f9e

2022-01-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103813 Richard Biener changed: What|Removed |Added Priority|P3 |P2

[Bug tree-optimization/103815] IVCann/IVOPTs changes induction variable so it is an addition but the need for shift is there and the result could have used for the (loop) exit compare

2022-01-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103815 Richard Biener changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug tree-optimization/103821] [12 Regression] huge compile time (jump threading) at -O3 for simple code since r12-4790-g4b3a325f07acebf47e82de227ce1d5ba62f5bcae

2022-01-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103821 Richard Biener changed: What|Removed |Added Priority|P3 |P1

[Bug ipa/103830] [12 Regression] null pointer access optimized away by removing function call at -Og

2022-01-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103830 Richard Biener changed: What|Removed |Added Priority|P3 |P1 --- Comment #4 from Richard Biener

[Bug rtl-optimization/103837] [9/10/11 Regression] '-fcompare-debug' failure (length) w/ -Og -fmove-loop-invariants -fnon-call-exceptions -fno-tree-dce

2022-01-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103837 Richard Biener changed: What|Removed |Added Priority|P3 |P2

[Bug libstdc++/103848] [11/12 Regression] std::deque<>::iterator operator- uses "0" for nullptr check, triggers "zero-as-null-pointer-constant" warning

2022-01-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103848 Richard Biener changed: What|Removed |Added Priority|P3 |P2

[Bug target/103850] missed optimization in AVX code

2022-01-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103850 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug tree-optimization/92860] [9/10/11/12 regression] Global flags affected by -O settings are clobbered by optimize attribute

2022-01-04 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92860 Martin Liška changed: What|Removed |Added Status|WAITING |NEW --- Comment #83 from Martin Liška --

[Bug tree-optimization/92860] [9/10/11/12 regression] Global flags affected by -O settings are clobbered by optimize attribute

2022-01-04 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92860 --- Comment #84 from Martin Liška --- Thanks David for help!

[Bug target/103850] missed optimization in AVX code

2022-01-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103850 --- Comment #5 from Richard Biener --- Note the issue can be reproduced without -ffast-math as well where the functions are nearly identical so I fear you are running into some micro-architectural hazard. Maybe .L3: vmovapd %ymm2, %ym

[Bug rtl-optimization/103860] [9/10/11 Regression] wrong code at -O3 with -fPIC on x86_64-linux-gnu

2022-01-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103860 Richard Biener changed: What|Removed |Added Priority|P3 |P2

[Bug target/103861] [i386] vectorize v2qi vectors

2022-01-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103861 --- Comment #6 from Richard Biener --- Not fully fixed I guess?

[Bug debug/103874] [11/12 Regression] ICE in internal_error on riscv64 and -gsplit-dwarf

2022-01-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103874 Richard Biener changed: What|Removed |Added Target Milestone|--- |11.3 Priority|P3

[Bug ipa/103875] Dead writes are not optimized out

2022-01-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103875 --- Comment #2 from Richard Biener --- The clobber is gone at the point we inline pop(), CDDCE1 removes it because the clobbered address computation is dead. Eliminating unnecessary statements: Deleting : *_4 ={v} {CLOBBER}; Deleting : _4 = &t

[Bug target/103850] missed optimization in AVX code

2022-01-04 Thread martin--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103850 --- Comment #6 from Martin Reinecke --- I would have expected that this does not make a significant difference, assuming that speculative execution works and the branch predictor takes the jump backwards at the loop's end. In that picture both v

[Bug c++/103879] error: accessing value of variant::_Copy_ctor_base through a 'const variant' glvalue in a constant expression

2022-01-04 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103879 --- Comment #6 from Patrick Palka --- Reduced C++14 rejects-valid testcase: struct A { int n = 42; }; struct B : A { }; struct C { B b; }; constexpr int f() { C c; A& a = static_cast(c.b); B& b = static_cast(a); return b.n; } st

[Bug target/103861] [i386] vectorize v2qi vectors

2022-01-04 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103861 --- Comment #7 from Uroš Bizjak --- (In reply to Richard Biener from comment #6) > Not fully fixed I guess? Not yet. I have a bunch of follow-up patches for various operations.

[Bug ada/79724] GNAT tools do not respect --program-suffix and --program-prefix

2022-01-04 Thread fxcoudert at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79724 Francois-Xavier Coudert changed: What|Removed |Added Keywords||patch --- Comment #6 from Fran

[Bug preprocessor/45227] libcpp Makefile does not enable instrumentation

2022-01-04 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45227 --- Comment #5 from Andi Kleen --- I think it was the method from the info file. But I can't quite remember. If you cannot reproduce it I guess it's ok to close. Maybe I made some mistake.

[Bug libstdc++/103848] [11/12 Regression] std::deque<>::iterator operator- uses "0" for nullptr check, triggers "zero-as-null-pointer-constant" warning

2022-01-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103848 Jonathan Wakely changed: What|Removed |Added Priority|P2 |P3 Target Milestone|11.0

[Bug libstdc++/103890] Generated baseline symbol file seems to have redundant lines

2022-01-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103890 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug tree-optimization/103800] [12 Regression] ICE in vectorizable_phi, at tree-vect-loop.c:7861 with -O3 since r12-5626-g0194d92c35ca8b3a

2022-01-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103800 --- Comment #4 from Richard Biener --- So in this case we have an SLP tree for a merge PHI with scalar bools where we do t.c:10:12: note: using boolean precision 32 for iftmp.1_168 = pretmp_175 != 0; t.c:10:12: note: using boolean precision

[Bug ipa/103830] [12 Regression] null pointer access optimized away by removing function call at -Og

2022-01-04 Thread hubicka at kam dot mff.cuni.cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103830 --- Comment #5 from hubicka at kam dot mff.cuni.cz --- > I think the recent modref change made the function const. > > And no, we shouldn't DSE any volatile store and generally we don't. It's > probably some side-effect of modref that we do. U

[Bug libstdc++/103848] [11/12 Regression] std::deque<>::iterator operator- uses "0" for nullptr check, triggers "zero-as-null-pointer-constant" warning

2022-01-04 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103848 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #3

[Bug middle-end/103903] New: Loops handling r,g,b values are not vectorized to use power of 2 vectors even if they can

2022-01-04 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103903 Bug ID: 103903 Summary: Loops handling r,g,b values are not vectorized to use power of 2 vectors even if they can Product: gcc Version: 12.0 Status: UNCONFIRMED

[Bug target/103686] ICE in rs6000_expand_new_builtin at rs6000-call.c:15946

2022-01-04 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103686 Peter Bergner changed: What|Removed |Added CC||willschm at gcc dot gnu.org --- Comment

[Bug c++/103904] New: [defect fix] Please backport P2325R3 to 10 and 11

2022-01-04 Thread h2+bugs at fsfe dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103904 Bug ID: 103904 Summary: [defect fix] Please backport P2325R3 to 10 and 11 Product: gcc Version: 11.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Compone

[Bug ada/79724] GNAT tools do not respect --program-suffix and --program-prefix

2022-01-04 Thread charlet at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79724 --- Comment #7 from Arnaud Charlet --- Understood, I'll work on it then, thanks for your help!

[Bug target/103771] [12 Regression] Missed vectorization under -mavx512f -mavx512vl after r12-5489

2022-01-04 Thread tnfchris at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103771 --- Comment #1 from Tamar Christina --- Looks like the change causes the simpler conditional to be detected by the vectorizer as a masked operation, which in principle makes sense: note: vect_recog_mask_conversion_pattern: detected: iftmp.0_2

[Bug libstdc++/103848] [11/12 Regression] std::deque<>::iterator operator- uses "0" for nullptr check, triggers "zero-as-null-pointer-constant" warning

2022-01-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103848 --- Comment #4 from Jonathan Wakely --- (In reply to Jakub Jelinek from comment #3) > Other options perhaps could be - (__x._M_node ? 1 : 0) That produces worse code (with a jump) at -O1 > or - 1 + !__x._M_node Isn't that undefined for (x - y

[Bug libstdc++/103904] [defect fix] Please backport P2325R3 to 10 and 11

2022-01-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103904 --- Comment #1 from Jonathan Wakely --- It's a breaking change though, meaning that code that compiles now would not compile after the backport. We generally avoid such things on the stable release branches.

[Bug libstdc++/103904] [defect fix] Please backport P2325R3 to 10 and 11

2022-01-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103904 --- Comment #2 from Jonathan Wakely --- (In reply to Hannes Hauswedell from comment #0) > Since this change is quite significant That is the problem.

[Bug libstdc++/103904] [defect fix] Please backport P2325R3 to 10 and 11

2022-01-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103904 --- Comment #3 from Jonathan Wakely --- The relevant commit is r12-1606-g4b4f5666b4c2f3aab2a9f3d53d394e390b9b682d I'm not entirely opposed to backporting it, but we should decide carefully.

[Bug tree-optimization/103800] [12 Regression] ICE in vectorizable_phi, at tree-vect-loop.c:7861 with -O3 since r12-5626-g0194d92c35ca8b3a

2022-01-04 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103800 --- Comment #5 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:88e861655b3e59bc982ba22cd6e2e7348efae866 commit r12-6211-g88e861655b3e59bc982ba22cd6e2e7348efae866 Author: Richard Biener Date:

[Bug tree-optimization/103800] [12 Regression] ICE in vectorizable_phi, at tree-vect-loop.c:7861 with -O3 since r12-5626-g0194d92c35ca8b3a

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

[Bug tree-optimization/103035] [meta-bug] YARPGen bugs

2022-01-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103035 Bug 103035 depends on bug 103800, which changed state. Bug 103800 Summary: [12 Regression] ICE in vectorizable_phi, at tree-vect-loop.c:7861 with -O3 since r12-5626-g0194d92c35ca8b3a https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103800

[Bug libstdc++/103904] [defect fix] Please backport P2325R3 to 10 and 11

2022-01-04 Thread h2+bugs at fsfe dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103904 --- Comment #4 from Hannes Hauswedell --- Well... we also try to avoid breaking changes in the standard ^^ The thing is that code that relies on the old definition will break one way or another (and independent of compiler flags). The longer GC

[Bug libstdc++/103848] [11/12 Regression] std::deque<>::iterator operator- uses "0" for nullptr check, triggers "zero-as-null-pointer-constant" warning

2022-01-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103848 --- Comment #5 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #4) > We get (T*)0 - 1 + 1 which overflows twice. GCC's ubsan doesn't diagnose this, but Clang's does.

[Bug libstdc++/103848] [11/12 Regression] std::deque<>::iterator operator- uses "0" for nullptr check, triggers "zero-as-null-pointer-constant" warning

2022-01-04 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103848 --- Comment #6 from Jakub Jelinek --- (In reply to Jonathan Wakely from comment #4) > > or - 1 + !__x._M_node > > Isn't that undefined for (x - y - 1 + !x) if x and y are both null? > We get (T*)0 - 1 + 1 which overflows twice. You're right, i

  1   2   >