[Bug tree-optimization/104510] New: ICE: 'verify_gimple' failed: mismatching comparison operand types in verify_gimple_in_seq()

2022-02-11 Thread zsojka at seznam dot cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104510 Bug ID: 104510 Summary: ICE: 'verify_gimple' failed: mismatching comparison operand types in verify_gimple_in_seq() Product: gcc Version: 12.0 Status: UNCONFIRMED

[Bug c++/99804] cannot convert bit field enum to its own type in a template member function

2022-02-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99804 Andrew Pinski changed: What|Removed |Added CC||vofogi5810 at goonby dot com --- Comment

[Bug c++/104509] Scoped enum as bit field in a function template

2022-02-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104509 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/104509] New: Scoped enum as bit field in a function template

2022-02-11 Thread vofogi5810 at goonby dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104509 Bug ID: 104509 Summary: Scoped enum as bit field in a function template Product: gcc Version: 11.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component

[Bug middle-end/104504] spurious -Wswitch-unreachable warning with -ftrivial-auto-var-init=zero

2022-02-11 Thread kees at outflux dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104504 --- Comment #2 from Kees Cook --- As mentioned in a Linux kernel thread, isn't it possible to transform this: switch (x) { int y; default: y = x * 2; return y; } into this: { int y; switch (x) { de

[Bug libstdc++/104508] New: _GLIBCXX_ASSERTIONS gets ignored with clang with -std=c++2b

2022-02-11 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104508 Bug ID: 104508 Summary: _GLIBCXX_ASSERTIONS gets ignored with clang with -std=c++2b Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal P

[Bug target/104117] [9,10,11,12 Regression] Darwin ppc64 uses invalid non-PIC address to access constants (in PIC code).

2022-02-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104117 --- Comment #23 from CVS Commits --- The master branch has been updated by Iain D Sandoe : https://gcc.gnu.org/g:4c3792d448964f7bd99e7eac2c29c9eb7c2bfb84 commit r12-7209-g4c3792d448964f7bd99e7eac2c29c9eb7c2bfb84 Author: Iain Sandoe Date: Mo

[Bug c/104506] [12 Regression] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in useless_type_conversion_p, at gimple-expr.cc:87 on invalid symbol redeclaration

2022-02-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104506 --- Comment #3 from Andrew Pinski --- (In reply to Andrew Pinski from comment #2) > Now do we want to add a check inside STRIP_USELESS_TYPE_CONVERSION for > error_mark_node, I am still deciding. Oh STRIP_TYPE_NOPS has a check for error_mark_nod

[Bug c/104506] [12 Regression] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in useless_type_conversion_p, at gimple-expr.cc:87 on invalid symbol redeclaration

2022-02-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104506 --- Comment #2 from Andrew Pinski --- The NOP_EXPR comes from: (gdb) up #1 0x00b99a72 in c_process_expr_stmt (loc=266752, expr=) at /home/apinski/src/upstream-gcc/gcc/gcc/c/c-typeck.cc:11356 11356 expr = build1 (NOP_EXPR, TREE_

[Bug target/101324] powerpc64le: hashst appears before mflr at -O1 or higher

2022-02-11 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101324 Peter Bergner changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/104507] [10/11 Regression] internal compiler error: unexpected expression ‘(int)(__ret)’ of kind cast_expr

2022-02-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104507 Andrew Pinski changed: What|Removed |Added Known to work||10.1.0, 9.3.0, 9.4.0 Summary

[Bug tree-optimization/102586] [12 Regression] ICE in clear_padding_type, at gimple-fold.c:4798 since r12-3433-ga25e0b5e6ac8a77a

2022-02-11 Thread qing.zhao at oracle dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102586 --- Comment #27 from Qing Zhao --- > On Feb 11, 2022, at 11:47 AM, jakub at gcc dot gnu.org > wrote: > But if I do: > struct C { char a; int b; char c; long d; C () : a (42), b (42), c (42), d > (42) > {} }; > void bar (C *); > void > foo ()

[Bug c++/104507] internal compiler error: unexpected expression ‘(int)(__ret)’ of kind cast_expr

2022-02-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104507 Andrew Pinski changed: What|Removed |Added Keywords||ice-on-valid-code, |

[Bug c/104506] [12 Regression] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in useless_type_conversion_p, at gimple-expr.cc:87 on invalid symbol redeclaration

2022-02-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104506 Andrew Pinski changed: What|Removed |Added Status|NEW |ASSIGNED

[Bug c/104506] [12 Regression] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in useless_type_conversion_p, at gimple-expr.cc:87 on invalid symbol redeclaration

2022-02-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104506 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Assignee|unassigned at gcc

[Bug c++/104507] New: internal compiler error: unexpected expression ‘(int)(__ret)’ of kind cast_expr

2022-02-11 Thread junk at sigpwr dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104507 Bug ID: 104507 Summary: internal compiler error: unexpected expression ‘(int)(__ret)’ of kind cast_expr Product: gcc Version: 11.2.0 Status: UNCONFIRMED Severi

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

2022-02-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103904 --- Comment #15 from CVS Commits --- The releases/gcc-11 branch has been updated by Patrick Palka : https://gcc.gnu.org/g:3273e704d04a98bcfccdc93c8d07e88f2b032043 commit r11-9561-g3273e704d04a98bcfccdc93c8d07e88f2b032043 Author: Patrick Palka

[Bug target/79754] ICE in type_natural_mode with vector for DFP type

2022-02-11 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79754 Uroš Bizjak changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned at

[Bug tree-optimization/104499] [12 Regression] ICE: in emit_move_insn, at expr.cc:4010 at -O1

2022-02-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104499 Jakub Jelinek changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug target/101324] powerpc64le: hashst appears before mflr at -O1 or higher

2022-02-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101324 --- Comment #25 from CVS Commits --- The releases/gcc-11 branch has been updated by Peter Bergner : https://gcc.gnu.org/g:c56c398c39f6195c3d158f02514c33b7da73ebc2 commit r11-9560-gc56c398c39f6195c3d158f02514c33b7da73ebc2 Author: Martin Liska

[Bug testsuite/103586] New test case gcc.target/powerpc/pr101324.c fails on BE

2022-02-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103586 --- Comment #5 from CVS Commits --- The releases/gcc-11 branch has been updated by Peter Bergner : https://gcc.gnu.org/g:4854985f13feac2d61c69c996c47af468f29c6c9 commit r11-9559-g4854985f13feac2d61c69c996c47af468f29c6c9 Author: Peter Bergner

[Bug testsuite/103556] [12 regression] rop test cases start failing after r12-5780

2022-02-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103556 --- Comment #4 from CVS Commits --- The releases/gcc-11 branch has been updated by Peter Bergner : https://gcc.gnu.org/g:4854985f13feac2d61c69c996c47af468f29c6c9 commit r11-9559-g4854985f13feac2d61c69c996c47af468f29c6c9 Author: Peter Bergner

[Bug tree-optimization/104499] [12 Regression] ICE: in emit_move_insn, at expr.cc:4010 at -O1

2022-02-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104499 --- Comment #3 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:9355a8c35883b5125851bb9b4169a1a1cd8e343f commit r12-7202-g9355a8c35883b5125851bb9b4169a1a1cd8e343f Author: Jakub Jelinek Date: F

[Bug sanitizer/104449] [9/10/11/12 Regression] ICE: verify_gimple failed: dead statement in EH table with -fexceptions -fsanitize=address -fstack-check=generic

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

[Bug c/104506] [12 Regression] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in useless_type_conversion_p, at gimple-expr.cc:87 on invalid symbol redeclaration

2022-02-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104506 Andrew Pinski changed: What|Removed |Added Severity|normal |trivial Known to work|11.2.1

[Bug c/104506] [12 Regression] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in useless_type_conversion_p, at gimple-expr.cc:87 on invalid symbol redeclaration

2022-02-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104506 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |12.0

[Bug tree-optimization/104501] vector lowering for VEC_COND_EXPR does not consider smaller vectors

2022-02-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104501 Andrew Pinski changed: What|Removed |Added Keywords||missed-optimization Severity|

[Bug middle-end/104504] spurious -Wswitch-unreachable warning with -ftrivial-auto-var-init=zero

2022-02-11 Thread kees at outflux dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104504 Kees Cook changed: What|Removed |Added CC||kees at outflux dot net --- Comment #1 from

[Bug tree-optimization/102586] [12 Regression] ICE in clear_padding_type, at gimple-fold.c:4798 since r12-3433-ga25e0b5e6ac8a77a

2022-02-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102586 --- Comment #26 from Jakub Jelinek --- Though, I must say I don't understand how that works currently at all. For say struct C0 {}; struct C1 {}; struct C2 : C1, virtual C0 {}; struct C3 : virtual C2, C1 {}; struct C6 { char c; }; struct C7 : vi

[Bug libstdc++/102994] std::atomic::wait is not marked const

2022-02-11 Thread rodgertq at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102994 --- Comment #14 from Thomas Rodgers --- Created attachment 52420 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52420&action=edit Make notify_one/notify_all non-const I submitted this patch to the list.

[Bug analyzer/102692] -Wanalyzer-null-dereference false alarm with (!p || q || !p->next)

2022-02-11 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102692 --- Comment #4 from David Malcolm --- I've been investigating the false positive from -Wanalyzer-use-of-uninitialized-value. It only happens when optimization is turned on, but happens within the FE, before gimplification. Specifically, c_pars

[Bug tree-optimization/102586] [12 Regression] ICE in clear_padding_type, at gimple-fold.c:4798 since r12-3433-ga25e0b5e6ac8a77a

2022-02-11 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102586 qinzhao at gcc dot gnu.org changed: What|Removed |Added CC||qinzhao at gcc dot gnu.org

[Bug target/97040] incorrect fused multiply add/subtract instruction generated from C code

2022-02-11 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97040 Jeffrey A. Law changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug rtl-optimization/104400] [12 Regression] v850e lra/reload failure after recent change

2022-02-11 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104400 Jeffrey A. Law changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug c/104506] New: [12 Regression] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in useless_type_conversion_p, at gimple-expr.cc:87 on invalid symbol redeclaration

2022-02-11 Thread zsojka at seznam dot cz via Gcc-bugs
inux-gnu --host=x86_64-pc-linux-gnu --target=x86_64-pc-linux-gnu --with-ld=/usr/bin/x86_64-pc-linux-gnu-ld --with-as=/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch --prefix=/repo/gcc-trunk//binary-trunk-r12-7199-20220211084605-gcc68ad87014-checking-yes-rtl-df-extra-nobootstrap-amd64 Th

[Bug tree-optimization/102586] [12 Regression] ICE in clear_padding_type, at gimple-fold.c:4798 since r12-3433-ga25e0b5e6ac8a77a

2022-02-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102586 --- Comment #24 from Jakub Jelinek --- I bet with the default -flifetime-dse=2 we would then have a var = {}; var ={v} {CLOBBER}; // Start of ctor clobber var.whatever = ...; // Ctor content and the zero initialization would be optimized a

[Bug target/79754] ICE in type_natural_mode with vector for DFP type

2022-02-11 Thread zsojka at seznam dot cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79754 --- Comment #3 from Zdenek Sojka --- This still ICEs on r12-7199: $ x86_64-pc-linux-gnu-gcc testcase.c testcase.c: In function 'foo': testcase.c:2:1: internal compiler error: in type_natural_mode, at config/i386/i386.cc:1978 2 | V foo (V a)

[Bug tree-optimization/102586] [12 Regression] ICE in clear_padding_type, at gimple-fold.c:4798 since r12-3433-ga25e0b5e6ac8a77a

2022-02-11 Thread qing.zhao at oracle dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102586 --- Comment #23 from Qing Zhao --- > On Feb 11, 2022, at 9:29 AM, jason at gcc dot gnu.org > wrote: > > I wonder why -fauto-var-init uses builtin_clear_padding instead of just > zero-initializing the whole object before normal initialization,

[Bug rtl-optimization/104400] [12 Regression] v850e lra/reload failure after recent change

2022-02-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104400 --- Comment #4 from CVS Commits --- The master branch has been updated by Vladimir Makarov : https://gcc.gnu.org/g:274a4d29421e73c9b40c1641986c6ed904e20184 commit r12-7200-g274a4d29421e73c9b40c1641986c6ed904e20184 Author: Vladimir N. Makarov

[Bug target/103008] poor inlined builtin_fmod on x86_64

2022-02-11 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103008 --- Comment #13 from Uroš Bizjak --- (In reply to Richard Biener from comment #12) > Just as data-point on znver2 Uros testcase shows > > rguenther@ryzen:/tmp> gcc-11 t.c -Ofast -lm -march=znver2 > rguenther@ryzen:/tmp> numactl --physcpubind=3

[Bug target/104502] [12 Regression] ICE: in extract_constrain_insn, at recog.cc:2670: insn does not satisfy its constraints with -O -flive-range-shrinkage -march=barcelona -fstack-protector-all -mavx5

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

[Bug tree-optimization/102586] [12 Regression] ICE in clear_padding_type, at gimple-fold.c:4798 since r12-3433-ga25e0b5e6ac8a77a

2022-02-11 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102586 --- Comment #22 from Jason Merrill --- (In reply to Jakub Jelinek from comment #21) > This patch implements the rejection of pointers to non-trivially-copyable > types with the exception of &var or &parm, because in those cases we know it > is c

[Bug target/104455] Cannot select -march=armv7-a using GCC 11

2022-02-11 Thread rearnsha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104455 --- Comment #5 from Richard Earnshaw --- (In reply to Jeffrey Walton from comment #4) > > So stepping back to 10,000 feet, we now need to specify options and ISA's we > are not using. That seems like a bug to me. I'm not sure I would consider

[Bug c/104505] New: ICE: SIGSEGV in c_pretty_printer::postfix_expression() on invalid code

2022-02-11 Thread zsojka at seznam dot cz via Gcc-bugs
-gnu --host=x86_64-pc-linux-gnu --target=x86_64-pc-linux-gnu --with-ld=/usr/bin/x86_64-pc-linux-gnu-ld --with-as=/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch --prefix=/repo/gcc-trunk//binary-trunk-r12-7199-20220211084605-gcc68ad87014-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread mo

[Bug middle-end/104504] New: spurious -Wswitch-unreachable warning with -ftrivial-auto-var-init=zero

2022-02-11 Thread nsz at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104504 Bug ID: 104504 Summary: spurious -Wswitch-unreachable warning with -ftrivial-auto-var-init=zero Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug target/95082] [11] LE implementations of vec_cnttz_lsbb and vec_cntlz_lsbb are wrong

2022-02-11 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95082 --- Comment #9 from Segher Boessenkool --- It still needs fixing on trunk as well, as discussed.

[Bug target/104502] [12 Regression] ICE: in extract_constrain_insn, at recog.cc:2670: insn does not satisfy its constraints with -O -flive-range-shrinkage -march=barcelona -fstack-protector-all -mavx5

2022-02-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104502 Jakub Jelinek changed: What|Removed |Added Last reconfirmed||2022-02-11 Target Milestone|---

[Bug c++/104503] New: [12 regression][modules] bits/shared_ptr_base.h: error: must ‘#include ’ before using ‘typeid’

2022-02-11 Thread egor.pugin at gmail dot com via Gcc-bugs
all --disable-libsanitizer --disable-gcov --disable-libgomp --disable-libquadmath --disable-libssp --enable-languages=c,c++ Thread model: posix Supported LTO compression algorithms: zlib gcc version 12.0.1 20220211 (experimental) (GCC)

[Bug testsuite/104423] [libgomp, testsuite] Add means to do accelerator-only testing in libgomp

2022-02-11 Thread vries at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104423 --- Comment #4 from Tom de Vries --- Created attachment 52416 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52416&action=edit [libgomp, testsuite, nvptx] Add GOMP_NVPTX_JIT_ITER (libgomp.c/c.exp only)

[Bug target/104502] New: [12 Regression] ICE: in extract_constrain_insn, at recog.cc:2670: insn does not satisfy its constraints with -O -flive-range-shrinkage -march=barcelona -fstack-protector-all -

2022-02-11 Thread zsojka at seznam dot cz via Gcc-bugs
/gcc-trunk//binary-trunk-r12-7195-2022022825-g72f8d228aff-checking-yes-rtl-df-extra-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 12.0.1 20220211 (experimental) (GCC)

[Bug middle-end/104449] [9/10/11/12 Regression] ICE: verify_gimple failed: dead statement in EH table with -fexceptions -fsanitize=address -fstack-check=generic

2022-02-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104449 --- Comment #3 from Jakub Jelinek --- C++ testcase that ICEs with such options even at -O2: void bar (int *); struct A { A (); ~A (); }; void foo (int n) { A b; { int a[n]; bar (a); } }

[Bug libstdc++/102425] std::error_code() does not compare equal to std::error_condition()

2022-02-11 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102425 --- Comment #9 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #8) > This also prompted https://wg21.link/lwg3598 Which has been voted into the working draft now.

[Bug rtl-optimization/104498] Alias attribute being ignored by scheduler

2022-02-11 Thread rsandifo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104498 --- Comment #8 from rsandifo at gcc dot gnu.org --- No, negating the offset seems like the right fix.

[Bug target/100181] hot-cold partitioned code doesn't assemble

2022-02-11 Thread ams at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100181 --- Comment #13 from Andrew Stubbs --- I've updated the LLVM version documentation at https://gcc.gnu.org/wiki/Offloading#For_AMD_GCN: It's LLVM 9 or 13.0.1 now (nothing in between), and will be 13.0.1+ for the next release (dropping LLVM 9 bec

[Bug target/100181] hot-cold partitioned code doesn't assemble

2022-02-11 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100181 Tobias Burnus changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug libstdc++/101231] _CachedPosition::_M_get() should not return {} when range adapter does not model forward_range

2022-02-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101231 --- Comment #3 from CVS Commits --- The releases/gcc-11 branch has been updated by Patrick Palka : https://gcc.gnu.org/g:18b7cbb2ac0bf676846d7fe68283f093825357f6 commit r11-9557-g18b7cbb2ac0bf676846d7fe68283f093825357f6 Author: Patrick Palka

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

2022-02-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103904 --- Comment #14 from CVS Commits --- The releases/gcc-11 branch has been updated by Patrick Palka : https://gcc.gnu.org/g:18b7cbb2ac0bf676846d7fe68283f093825357f6 commit r11-9557-g18b7cbb2ac0bf676846d7fe68283f093825357f6 Author: Patrick Palka

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

2022-02-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103904 --- Comment #13 from CVS Commits --- The releases/gcc-11 branch has been updated by Patrick Palka : https://gcc.gnu.org/g:fdc75c820f0f6fa458f0325c2c222ad5e7a7d3ad commit r11-9556-gfdc75c820f0f6fa458f0325c2c222ad5e7a7d3ad Author: Patrick Palka

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

2022-02-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103904 --- Comment #12 from CVS Commits --- The releases/gcc-11 branch has been updated by Patrick Palka : https://gcc.gnu.org/g:92d6121eeccf858cecd29ce4b7e734df7ae9 commit r11-9555-g92d6121eeccf858cecd29ce4b7e734df7ae9 Author: Patrick Palka

[Bug testsuite/104481] gcc.target/i386/pr35513-8.c and g++.target/i386/pr35513-[12].C testsuire failures

2022-02-11 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104481 H.J. Lu changed: What|Removed |Added Keywords||patch Target Milestone|---

[Bug target/95082] [11] LE implementations of vec_cnttz_lsbb and vec_cntlz_lsbb are wrong

2022-02-11 Thread wschmidt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95082 Bill Schmidt changed: What|Removed |Added Known to work||12.0 Summary|[11/12] LE implem

[Bug rtl-optimization/104498] Alias attribute being ignored by scheduler

2022-02-11 Thread avieira at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104498 --- Comment #7 from avieira at gcc dot gnu.org --- And I was thinking it didn't know how to handle anchor + offset... Anyway if I just record the swap and use it to invert the distance calculation that seems to 'work' for the testcase. I'm happy

[Bug analyzer/104274] FAIL: gcc.dg/analyzer/pr97029.c (test for excess errors)

2022-02-11 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104274 David Malcolm changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug target/94395] Powerpc suboptimal 64-bit constant generation near large values with few bits set

2022-02-11 Thread christophe.leroy at csgroup dot eu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94395 Christophe Leroy changed: What|Removed |Added CC||christophe.leroy at csgroup dot eu -

[Bug analyzer/104274] FAIL: gcc.dg/analyzer/pr97029.c (test for excess errors)

2022-02-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104274 --- Comment #5 from CVS Commits --- The master branch has been updated by David Malcolm : https://gcc.gnu.org/g:cc68ad87014a331399ccb2528db3bf47fabe6f72 commit r12-7199-gcc68ad87014a331399ccb2528db3bf47fabe6f72 Author: David Malcolm Date: T

[Bug fortran/102330] [12 Regression] ICE in expand_gimple_stmt_1, at cfgexpand.c:3932 since r12-980-g29a2f51806c

2022-02-11 Thread tschwinge at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102330 --- Comment #11 from Thomas Schwinge --- Jakub, thanks again for your comments! I've written down the following while working through the issue. Maybe you'd like to verify, and maybe it'll useful for someone later (if only my future self...).

[Bug c++/99243] [modules] ICE in set_filename, at cp/module.cc:19143

2022-02-11 Thread egor.pugin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99243 Egor Pugin changed: What|Removed |Added CC||egor.pugin at gmail dot com --- Comment #2

[Bug rtl-optimization/104498] Alias attribute being ignored by scheduler

2022-02-11 Thread rsandifo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104498 rsandifo at gcc dot gnu.org changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug c++/100617] [modules] Exported namespace not visible from outside when the module imports another module that declares the same namespace

2022-02-11 Thread johelegp at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100617 --- Comment #3 from Johel Ernesto Guerrero Peña --- (In reply to wang ivor from comment #1) > A workaround is to create a module that exports only the namespace A and > 'export import' it in the module 'test1'. I did that, but it's not enough.

[Bug tree-optimization/104501] New: vector lowering for VEC_COND_EXPR does not consider smaller vectors

2022-02-11 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104501 Bug ID: 104501 Summary: vector lowering for VEC_COND_EXPR does not consider smaller vectors Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug c++/104472] ICE: SIGSEGV in cxx_eval_internal_function with __builtin_convertvector and -frounding-math

2022-02-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104472 --- Comment #3 from Jakub Jelinek --- Fixed on the trunk so far.

[Bug middle-end/104446] [9/10/11 Regression] ICE in trunc_int_for_mode, at explow.cc:59 since r9-6999

2022-02-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104446 Jakub Jelinek changed: What|Removed |Added Summary|[9/10/11/12 Regression] ICE |[9/10/11 Regression] ICE in

[Bug c++/104472] ICE: SIGSEGV in cxx_eval_internal_function with __builtin_convertvector and -frounding-math

2022-02-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104472 --- Comment #2 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:84993d94e13ad2ab3aee151bb5a5e767cf75d51e commit r12-7197-g84993d94e13ad2ab3aee151bb5a5e767cf75d51e Author: Jakub Jelinek Date: F

[Bug middle-end/104446] [9/10/11/12 Regression] ICE in trunc_int_for_mode, at explow.cc:59 since r9-6999

2022-02-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104446 --- Comment #6 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:fb76c0ad35f96505ecd9213849ebc3df6163a0f7 commit r12-7196-gfb76c0ad35f96505ecd9213849ebc3df6163a0f7 Author: Jakub Jelinek Date: F

[Bug rtl-optimization/104498] Alias attribute being ignored by scheduler

2022-02-11 Thread avieira at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104498 --- Comment #5 from avieira at gcc dot gnu.org --- You mean this https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92294 it only works for direct symbols I think it never enters the block under: if (GET_CODE (x) == SYMBOL_REF && GET_CODE (y) == SYMBO

[Bug tree-optimization/104499] [12 Regression] ICE: in emit_move_insn, at expr.cc:4010 at -O1

2022-02-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104499 Jakub Jelinek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org

[Bug c++/100617] [modules] Exported namespace not visible from outside when the module imports another module that declares the same namespace

2022-02-11 Thread asynts+bugs at gmail dot com via Gcc-bugs
baz; import foo; import bar; int main() { foo::foo(); } ``` ```none $ ~/.local/lib/gcc-trunk/bin/g++ --version g++ (GCC) 12.0.1 20220211 (experimental) Copyright (C) 2022 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even

[Bug sanitizer/101476] AddressSanitizer check failed, points out a (potentially) non-existing stack error and pthread_cancel

2022-02-11 Thread stsp at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101476 --- Comment #17 from Stas Sergeev --- I sent the small patch-set here: https://lore.kernel.org/lkml/20220126191441.3380389-1-st...@yandex.ru/ but it is so far ignored by kernel developers. Someone from this bugzilla should give me an Ack or Revi

[Bug rtl-optimization/104499] [12 Regression] ICE: in emit_move_insn, at expr.cc:4010 at -O1

2022-02-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104499 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org Last reconfi

[Bug c++/101140] [modules] no matching function for call to ‘operator new(sizetype, void*)’

2022-02-11 Thread asynts+bugs at gmail dot com via Gcc-bugs
port module bar; import foo; void bar() { foo(); } ``` ```c++ // main.cpp export module main; import foo; import bar; int main() { } ``` ```none $ ~/.local/lib/gcc-trunk/bin/g++ --version g++ (GCC) 12.0.1 20220211 (experimental) Copyright (C) 2022 Free Software Foundation, Inc. This is free soft

[Bug tree-optimization/102586] [12 Regression] ICE in clear_padding_type, at gimple-fold.c:4798 since r12-3433-ga25e0b5e6ac8a77a

2022-02-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102586 --- Comment #21 from Jakub Jelinek --- Created attachment 52413 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52413&action=edit gcc12-pr102586.patch Indeed, and when creating BIT_CAST_EXPR we actually verify those trivially_copyable_p ty

[Bug rtl-optimization/104498] Alias attribute being ignored by scheduler

2022-02-11 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104498 Richard Biener changed: What|Removed |Added CC||rsandifo at gcc dot gnu.org --- Commen

[Bug libstdc++/104500] New: Document directory layout for installed C++ headers

2022-02-11 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104500 Bug ID: 104500 Summary: Document directory layout for installed C++ headers Product: gcc Version: 11.2.1 Status: UNCONFIRMED Keywords: documentation Severity: minor

[Bug rtl-optimization/104498] Alias attribute being ignored by scheduler

2022-02-11 Thread avieira at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104498 --- Comment #3 from avieira at gcc dot gnu.org --- Sorry some confusion there, I thought it was base_alias_check bailing out early, but that seems to return true, it is the memrefs_conflict_p that returns 0. I suspect rtx_equal_for_memref_p shou

[Bug rtl-optimization/104499] New: [12 Regression] ICE: in emit_move_insn, at expr.cc:4010 at -O1

2022-02-11 Thread zsojka at seznam dot cz via Gcc-bugs
pported LTO compression algorithms: zlib zstd gcc version 12.0.1 20220211 (experimental) (GCC)

[Bug rtl-optimization/104459] [9/10/11 Regression] '-fcompare-debug' failure w/ -O2 -funswitch-loops -fno-tree-dce

2022-02-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104459 Jakub Jelinek changed: What|Removed |Added Summary|[9/10/11/12 Regression] |[9/10/11 Regression]

[Bug target/104496] [12 Regression] ICE: in as_a, at machmode.h:365 with -O -mgeneral-regs-only -msse

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

[Bug libstdc++/104495] call_once hangs in call after exceptional call

2022-02-11 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104495 --- Comment #11 from Jonathan Wakely --- If you've entered any text or adjusted any dropdown selections while on the page, then refreshing will preserve those changes.

[Bug target/104496] [12 Regression] ICE: in as_a, at machmode.h:365 with -O -mgeneral-regs-only -msse

2022-02-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104496 --- Comment #5 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:72f8d228aff80ede554b1735533af7eb0bd4a912 commit r12-7195-g72f8d228aff80ede554b1735533af7eb0bd4a912 Author: Richard Biener Date:

[Bug rtl-optimization/104498] Alias attribute being ignored by scheduler

2022-02-11 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104498 --- Comment #2 from Richard Biener --- I don't see how it can with those MEMs. Can you show the canonicalized (CSELIB expanded) RTXen the base_alias_check routine sees?

[Bug rtl-optimization/104459] [9/10/11/12 Regression] '-fcompare-debug' failure w/ -O2 -funswitch-loops -fno-tree-dce

2022-02-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104459 --- Comment #5 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:18c8086d65f3d539e065ea7c97e3de6f3bbdf684 commit r12-7194-g18c8086d65f3d539e065ea7c97e3de6f3bbdf684 Author: Jakub Jelinek Date: F

[Bug target/104489] nvptx, sm_53: internal compiler error: in gen_rtx_SUBREG, at emit-rtl.cc:1022

2022-02-11 Thread roger at nextmovesoftware dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104489 Roger Sayle changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Ever confirmed|0

[Bug target/104489] nvptx, sm_53: internal compiler error: in gen_rtx_SUBREG, at emit-rtl.cc:1022

2022-02-11 Thread vries at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104489 Tom de Vries changed: What|Removed |Added CC||roger at nextmovesoftware dot com --- C

[Bug tree-optimization/104497] [11/12 Regression] Invalid gimple produced for (A?vect:vect)[i]

2022-02-11 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104497 --- Comment #7 from Richard Biener --- Interestingly the C++ frontend handles the COND_EXPR like (void) (VIEW_CONVERT_EXPR(y)[i] = (i & 1) != 0 ? VIEW_CONVERT_EXPR(inv)[i] : VIEW_CONVERT_EXPR(src)[i]) >; avoiding this issue.

[Bug tree-optimization/104497] [11/12 Regression] Invalid gimple produced for (A?vect:vect)[i]

2022-02-11 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104497 --- Comment #6 from Richard Biener --- At -O0 we don't ICE but still have invalid _2 = VIEW_CONVERT_EXPR(iftmp.0_4)[i_7(D)]; at RTL expansion. We're somehow recovering here, IIRC RTL expansion makes sure to expand iftmp.0_4 to memory.

[Bug tree-optimization/104497] [11/12 Regression] Invalid gimple produced for (A?vect:vect)[i]

2022-02-11 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104497 --- Comment #5 from Richard Biener --- So the issue here is that gimplification creates : iftmp.0 = inv; goto ; : iftmp.0 = src; : _2 = VIEW_CONVERT_EXPR(iftmp.0)[i]; that requires a non-register iftmp

[Bug tree-optimization/104497] [11/12 Regression] Invalid gimple produced for (A?vect:vect)[i]

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

[Bug rtl-optimization/104498] Alias attribute being ignored by scheduler

2022-02-11 Thread avieira at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104498 --- Comment #1 from avieira at gcc dot gnu.org --- Forgot to mention, this happens during the sched1 pass.

[Bug rtl-optimization/104498] New: Alias attribute being ignored by scheduler

2022-02-11 Thread avieira at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104498 Bug ID: 104498 Summary: Alias attribute being ignored by scheduler Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: rt

[Bug target/104496] [12 Regression] ICE: in as_a, at machmode.h:365 with -O -mgeneral-regs-only -msse

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

  1   2   >