[Bug target/102140] [12 Regression] ICE: in extract_constrain_insn, at recog.c:2670 (insn does not satisfy its constraints) with -Og -fipa-cp -fno-tree-ccp -fno-tree-ter

2021-08-31 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102140 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |12.0 Ever confirmed|0

[Bug target/102140] [12 Regression] ICE: in extract_constrain_insn, at recog.c:2670 (insn does not satisfy its constraints) with -Og -fipa-cp -fno-tree-ccp -fno-tree-ter

2021-08-31 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102140 Andrew Pinski changed: What|Removed |Added Status|NEW |UNCONFIRMED Target Milestone|12.0

[Bug tree-optimization/102141] [12 Regression] ICE: verify_ssa failed during GIMPLE pass: bswap at -O2

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

[Bug target/102140] [12 Regression] ICE: in extract_constrain_insn, at recog.c:2670 (insn does not satisfy its constraints) with -Og -fipa-cp -fno-tree-ccp -fno-tree-ter

2021-08-31 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102140 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |12.0

[Bug tree-optimization/102141] [12 Regression] ICE: verify_ssa failed during GIMPLE pass: bswap at -O2 since r12-3072-gb320edc0c29c838b

2021-08-31 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102141 Martin Liška changed: What|Removed |Added Known to work|11.2.0 | Summary|[12 Regression] ICE:

[Bug middle-end/102129] -ftrapping-math is broken or badly documented

2021-08-31 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102129 Richard Biener changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug middle-end/102129] -ftrapping-math is broken or badly documented

2021-08-31 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102129 --- Comment #5 from Richard Biener --- Btw, the stmt_could_throw_p check was added in response to PR33593 which looks quite similar (but the testcase uses -fnon-call-exceptions).

[Bug tree-optimization/102141] [12 Regression] ICE: with single element vector and the bswap pass at -O2 since r12-3072-gb320edc0c29c838b

2021-08-31 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102141 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug demangler/102130] [c++filt] Stack overflow in demangle_path

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

[Bug ada/102078] affinity.c:59:19: error: Signed integer overflow ?

2021-08-31 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102078 --- Comment #6 from David Binderman --- (In reply to David Binderman from comment #4) > Full cppcheck error message is > > gcc/ada/affinity.c:59:19: error: Signed integer overflow for expression > '1< > I think cppcheck is worried if index run

[Bug demangler/102132] [nm] Stack overflow in demangler_path

2021-08-31 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102132 --- Comment #1 from Richard Biener --- wrong bugzilla, libiberty is a component in the sourceware bugzilla.

[Bug middle-end/102133] [12 Regression] ICE in set_rtl building libgcc __muldc3 for 32-bit SPARC

2021-08-31 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102133 --- Comment #9 from Richard Biener --- SUBREGs are not wanted for DECL_RTL

[Bug tree-optimization/102134] [12 Regression] wrong code at -O1

2021-08-31 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102134 --- Comment #7 from Richard Biener --- (In reply to Roger Sayle from comment #6) > Many thanks to Jakub for the speedy fix. The diagnosis is quite right; I'd > assumed that if sgn is UNSIGNED, then arg would be zero extended. Alas, > that's no

[Bug ada/102078] affinity.c:59:19: error: Signed integer overflow ?

2021-08-31 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102078 --- Comment #7 from Jakub Jelinek --- (In reply to David Binderman from comment #6) > I guess there are some machines where unsigned int is 64 bit. Even if there are (not aware of any such target), 1U << index would be enough for that. The cod

[Bug demangler/102132] [nm] Stack overflow in demangler_path

2021-08-31 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102132 --- Comment #2 from Andrew Pinski --- (In reply to Richard Biener from comment #1) > wrong bugzilla, libiberty is a component in the sourceware bugzilla. GCC's copy of libiberty is/was considered the upstream copy at least at one point.

[Bug tree-optimization/102138] t = a==0 and a = PHI<0, t> should be done earlier than PRE

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

[Bug tree-optimization/102139] [11/12 Regression] -O3 miscompile due to slp-vectorize on strict align target

2021-08-31 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102139 Richard Biener changed: What|Removed |Added Target||riscv Priority|P3

[Bug tree-optimization/102134] [12 Regression] wrong code at -O1

2021-08-31 Thread roger at nextmovesoftware dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102134 --- Comment #8 from Roger Sayle --- It's even more complicated than that. According to wi::clz, if the unsigned value being stored has a precision that is a multiple of HOST_WIDE_INT it's sign-extended, and for all other precisions they are zer

[Bug tree-optimization/102142] New: [12 Regression] ICE Segmentation fault since r12-3222-g89f33f44addbf985

2021-08-31 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102142 Bug ID: 102142 Summary: [12 Regression] ICE Segmentation fault since r12-3222-g89f33f44addbf985 Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: ice-on

[Bug tree-optimization/102142] [12 Regression] ICE Segmentation fault since r12-3222-g89f33f44addbf985

2021-08-31 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102142 Martin Liška changed: What|Removed |Added Target Milestone|--- |12.0 Ever confirmed|0

[Bug sanitizer/102095] Returned reference to temporary not caught by -fsanitize=undefined

2021-08-31 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102095 --- Comment #1 from Jonathan Wakely --- Yes, it's undefined. See PR libstdc++/70692 There is a C++ standard proposal to make this ill-formed: https://wg21.link/p0932

[Bug libstdc++/58338] Add noexcept to functions with a narrow contract

2021-08-31 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58338 Jonathan Wakely changed: What|Removed |Added Status|NEW |WAITING --- Comment #15 from Jonathan

[Bug middle-end/102129] -ftrapping-math is broken or badly documented

2021-08-31 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102129 --- Comment #6 from Richard Biener --- Bootstrap & regtest reveals FAIL: gcc.dg/pr63743.c scan-rtl-dump-times expand "Swap operands" 1 ... FAIL: gcc.target/i386/pr85667-10.c scan-assembler-times addsd[ \\t]*40(%rsp), .* 1 FAIL: gcc.targ

[Bug sanitizer/102095] Returned reference to temporary not caught by -fsanitize=undefined

2021-08-31 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102095 --- Comment #2 from Jakub Jelinek --- -fsanitize=undefined is never meant to catch such bugs, -fsanitize=address is. And it does catch that: g++ -g -fsanitize=address -o /tmp/pr102095{,.C} -std=c++20; ASAN_OPTIONS=detect_stack_use_after_return=1

[Bug middle-end/102129] -ftrapping-math is broken or badly documented

2021-08-31 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102129 --- Comment #7 from Richard Biener --- All of the FAILs could be avoided when taking the position of the use into account but that would require some more substantial adjustment of TER.

[Bug tree-optimization/102134] [12 Regression] wrong code at -O1

2021-08-31 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102134 --- Comment #9 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:06ac981ffb3c0d6997f2e1c01ffaf6253b6a244f commit r12-3246-g06ac981ffb3c0d6997f2e1c01ffaf6253b6a244f Author: Jakub Jelinek Date: T

[Bug libstdc++/58338] Add noexcept to functions with a narrow contract

2021-08-31 Thread glisse at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58338 Marc Glisse changed: What|Removed |Added Resolution|--- |FIXED Status|WAITING

[Bug c++/60318] Documentation bug: C++ Misunderstandings: Implicit Copy-Assignment for Virtual Bases

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

[Bug target/102143] New: ABI incompatibility with clang when passing 32bit vectors on 32bit i686

2021-08-31 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102143 Bug ID: 102143 Summary: ABI incompatibility with clang when passing 32bit vectors on 32bit i686 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug middle-end/102129] -ftrapping-math is broken or badly documented

2021-08-31 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102129 --- Comment #8 from Richard Biener --- Testing an alternative.

[Bug tree-optimization/102142] [12 Regression] ICE Segmentation fault since r12-3222-g89f33f44addbf985

2021-08-31 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102142 Richard Biener changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug tree-optimization/102142] [12 Regression] ICE Segmentation fault since r12-3222-g89f33f44addbf985

2021-08-31 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102142 --- Comment #1 from Richard Biener --- Meh #/

[Bug sanitizer/102144] New: hwsan has a hardcoded pagesize requirement for aarch64

2021-08-31 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102144 Bug ID: 102144 Summary: hwsan has a hardcoded pagesize requirement for aarch64 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Comp

[Bug c++/82470] Structured bindings don't work with std::tuple if a type has a get member function

2021-08-31 Thread ville.voutilainen at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82470 --- Comment #7 from Ville Voutilainen --- We should close this, the fixes are in 11 and the related bugs have been closed without backports. I'm happy to let JWakely do that closing, but I don't think he'll disagree on it. :P

[Bug c++/60318] Documentation bug: C++ Misunderstandings: Implicit Copy-Assignment for Virtual Bases

2021-08-31 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60318 --- Comment #3 from Jonathan Wakely --- Patch: https://gcc.gnu.org/pipermail/gcc-patches/2021-August/578453.html

[Bug c++/82470] Structured bindings don't work with std::tuple if a type has a get member function

2021-08-31 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82470 Jonathan Wakely changed: What|Removed |Added Target Milestone|--- |11.0 Resolution|---

[Bug middle-end/102129] -ftrapping-math is broken or badly documented

2021-08-31 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102129 --- Comment #9 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:5e57bacf6f3599efea7634470db84121641c80b0 commit r12-3248-g5e57bacf6f3599efea7634470db84121641c80b0 Author: Richard Biener Date:

[Bug middle-end/102129] -ftrapping-math is broken or badly documented

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

[Bug libstdc++/89979] subtract_with_carry_engine incorrect carry flag

2021-08-31 Thread gcc--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89979 --- Comment #4 from Christoph Conrads --- > LLVM's libc++ does not go into the 0 loop but still does not do a good job: The subtract-with-carry PRNG is a simple PRNG, it has a very long period whose length can be proved with elementary number th

[Bug analyzer/99260] analyzer does not track outcomes of realloc

2021-08-31 Thread rjones at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99260 --- Comment #6 from Richard W.M. Jones --- That's excellent news, thanks. We'll get around to trying this when GCC 12 appears in Rawhide.

[Bug tree-optimization/102131] [12 Regression] wrong code at -O1 and above on x86_64-linux-gnu

2021-08-31 Thread guojiufu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102131 --- Comment #3 from Jiu Fu Guo --- The issue may come from 'iv0 cmp iv1' transform: if (cif (c>=b) in-loop -->if (b<=c) in-loop c: {4, +, 3} b: {1, +, 1} if ({1, +, 1} <= {4, +, 3}) ==> if ({1,+,-2} <= {4,+,0}) here, error occ

[Bug middle-end/102133] [12 Regression] ICE in set_rtl building libgcc __muldc3 for 32-bit SPARC

2021-08-31 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102133 --- Comment #10 from Mikael Pettersson --- (In reply to Hongtao.liu from comment #2) > But failed to configure for target mcore, i didn't find any reference in > https://gcc.gnu.org/install/specific.html > > --target=mcore results in > *** Conf

[Bug tree-optimization/102139] [11/12 Regression] -O3 miscompile due to slp-vectorize on strict align target

2021-08-31 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102139 --- Comment #7 from Richard Biener --- Testcase triggering a segfault on x86_64 and showing the issue inside a single BB with a function that doesn't return. void __attribute__((noipa)) foo (int i) { if (i) __builtin_exit (0); } typedef d

[Bug tree-optimization/102139] [11/12 Regression] -O3 miscompile due to slp-vectorize on strict align target

2021-08-31 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102139 Richard Biener changed: What|Removed |Added Target|riscv |riscv, x86_64-*-* --- Comment #8 from

[Bug tree-optimization/102142] [12 Regression] ICE Segmentation fault since r12-3222-g89f33f44addbf985

2021-08-31 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102142 --- Comment #2 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:67927342290c61d7e054430f1d7a7281f1f97fae commit r12-3250-g67927342290c61d7e054430f1d7a7281f1f97fae Author: Richard Biener Date:

[Bug tree-optimization/102142] [12 Regression] ICE Segmentation fault since r12-3222-g89f33f44addbf985

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

[Bug tree-optimization/100089] [11/12 Regression] 30% performance regression for denbench/mp2decoddata2 with -O3

2021-08-31 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100089 Bug 100089 depends on bug 102142, which changed state. Bug 102142 Summary: [12 Regression] ICE Segmentation fault since r12-3222-g89f33f44addbf985 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102142 What|Removed

[Bug tree-optimization/102131] [12 Regression] wrong code at -O1 and above on x86_64-linux-gnu

2021-08-31 Thread amker at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102131 --- Comment #4 from bin cheng --- (In reply to Jiu Fu Guo from comment #3) > The issue may come from 'iv0 cmp iv1' transform: > >if (c -->if (c>=b) in-loop > -->if (b<=c) in-loop > > c: {4, +, 3} > b: {1, +, 1} > > if ({1, +, 1} <=

[Bug c++/101144] Coroutine compiler error

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

[Bug tree-optimization/102141] [12 Regression] ICE: with single element vector and the bswap pass at -O2 since r12-3072-gb320edc0c29c838b

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

[Bug fortran/92482] BIND(C) with array-descriptor mishandled for type character

2021-08-31 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92482 Tobias Burnus changed: What|Removed |Added Last reconfirmed||2021-08-31 Ever confirmed|0

[Bug fortran/93524] [ISO C Binding][F2018] CFI_allocate – elem_size mishandled + sm wrongly set?

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

[Bug target/101723] arm: incorrect order of .fpu and .arch_extension directives leads to unsupported instructions

2021-08-31 Thread rearnsha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101723 --- Comment #15 from Richard Earnshaw --- (In reply to Christophe Lyon from comment #14) > I think you forgot to backport > r12-2790-ga22b3e022c2b45047a28d901042888eb77620499 to gcc-9 ? I don't think so. I think that patch collapsed away due t

[Bug target/102125] (ARM Cortex-M3 and newer) missed optimization. memcpy not needed operations

2021-08-31 Thread rearnsha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102125 --- Comment #5 from Richard Earnshaw --- Testcase was not quite complete. Extending it to: typedef unsigned long long uint64_t; typedef unsigned long uint32_t; typedef unsigned char uint8_t; uint64_t bar64(const uint8_t *rData1) { uint64_t

[Bug bootstrap/100832] s390x-linux-gnu: wrong number of alternatives in the output template

2021-08-31 Thread roger at nextmovesoftware dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100832 Roger Sayle changed: What|Removed |Added CC||roger at nextmovesoftware dot com --- Co

[Bug demangler/102130] [c++filt] Stack overflow in demangle_path

2021-08-31 Thread irfanariq at kaist dot ac.kr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102130 --- Comment #2 from Irfan Ariq --- Okay I will move it to the sourceware bugzilla. Thank you.

[Bug demangler/102132] [nm] Stack overflow in demangler_path

2021-08-31 Thread irfanariq at kaist dot ac.kr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102132 --- Comment #3 from Irfan Ariq --- Okay, I will move it to sourceware bugzilla. Thank you

[Bug target/102107] protocol register (r12) corrupted before a tail call

2021-08-31 Thread pc at us dot ibm.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102107 --- Comment #11 from Paul Clarke --- This does produce the issue for me: -- $ git checkout remotes/vendors/ibm/gcc-11-branch gcc-AT $ mkdir gcc-AT-build $ cd gcc-AT-build $ ../gcc-AT/configure --enable-languages=c,c++ --disable-libada --disable-

[Bug target/102135] (ARM Cortex-M3 and newer) changing operation order may reduce number of instructions needed

2021-08-31 Thread rearnsha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102135 --- Comment #1 from Richard Earnshaw --- A small change to the testcase shows that this is highly dependent on the constrained registers from the calling convention. uint64_t foo64(int dummy, const uint8_t *rData1) { uint64_t buffer;

[Bug tree-optimization/101145] niter analysis fails for until-wrap condition

2021-08-31 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101145 --- Comment #10 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:eca730231d5493647bb1e508fb1f853ffee0e95a commit r12-3255-geca730231d5493647bb1e508fb1f853ffee0e95a Author: Jakub Jelinek Date:

[Bug target/102143] ABI incompatibility with clang when passing 32bit vectors on 32bit i686

2021-08-31 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102143 H.J. Lu changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug c++/102137] class template argument deduction with template template parameter allows explicit deduction guide

2021-08-31 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102137 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW CC|

[Bug c++/102098] ICE when #include with -fmodules-ts -std=c++20 since r11-7530-g1e5cdb9f896fb220

2021-08-31 Thread accelerator0099 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102098 --- Comment #4 from Devourer Station --- Created attachment 51388 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51388&action=edit preprocessed source file (xz compressed) preprocessed source file (xz compressed)

[Bug c++/102098] ICE when #include with -fmodules-ts -std=c++20 since r11-7530-g1e5cdb9f896fb220

2021-08-31 Thread accelerator0099 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102098 --- Comment #5 from Devourer Station --- (In reply to Martin Liška from comment #1) > Please attach the source files.. I'm sorry that the attachment suddenly went missing. I reattached it.

[Bug fortran/102145] New: TKR mismatches with -pedantic: -fallow-argument-mismatch does not degrade errors to warnings

2021-08-31 Thread ripero84 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102145 Bug ID: 102145 Summary: TKR mismatches with -pedantic: -fallow-argument-mismatch does not degrade errors to warnings Product: gcc Version: 11.2.0 Sta

[Bug c++/102137] class template argument deduction with template template parameter allows explicit deduction guide

2021-08-31 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102137 Patrick Palka changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot gnu.org

[Bug libstdc++/31464] Extension request: publicly visible forward-declaration headers for and all STL containers

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

[Bug target/102146] New: [11 regression] several test cases fails after r11-8940

2021-08-31 Thread seurer at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102146 Bug ID: 102146 Summary: [11 regression] several test cases fails after r11-8940 Product: gcc Version: 11.2.1 Status: UNCONFIRMED Severity: normal Pri

[Bug rtl-optimization/102147] New: IRA dependent on 32-bit vs 64-bit register size

2021-08-31 Thread dje at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102147 Bug ID: 102147 Summary: IRA dependent on 32-bit vs 64-bit register size Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug rtl-optimization/102147] IRA dependent on 32-bit vs 64-bit register size

2021-08-31 Thread dje at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102147 David Edelsohn changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug target/102107] protocol register (r12) corrupted before a tail call

2021-08-31 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102107 Segher Boessenkool changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug rtl-optimization/102147] IRA dependent on 32-bit vs 64-bit register size

2021-08-31 Thread dje at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102147 --- Comment #2 from David Edelsohn --- Created attachment 51389 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51389&action=edit Pre-processed subset of tree-vect-slp.c $ gcc -O2 -fno-exceptions produces different conflicts and register

[Bug target/101865] _ARCH_PWR8 is not defined when using -mcpu=power8

2021-08-31 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101865 --- Comment #13 from Peter Bergner --- (In reply to Tulio Magno Quites Machado Filho from comment #12) > There is a chance, that my previous comment is wrong with regards the > generation of VSX instructions for Power8. > > I don't know what th

[Bug bootstrap/53504] configure script of platform TLS support.

2021-08-31 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53504 Jonathan Wakely changed: What|Removed |Added Last reconfirmed||2021-08-31 Status|UNCONFIR

[Bug libstdc++/97912] Get rid of location-invariant requirement in std::function small object optimisation

2021-08-31 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97912 Jonathan Wakely changed: What|Removed |Added Keywords||ABI Status|UNCONFIRMED

[Bug c++/92193] Poor diagnostics when a constexpr function call follows a failed static_assert

2021-08-31 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92193 --- Comment #3 from CVS Commits --- The master branch has been updated by Jason Merrill : https://gcc.gnu.org/g:9aeadd8c319d5d940fa4dc91a393fc2959d27719 commit r12-3258-g9aeadd8c319d5d940fa4dc91a393fc2959d27719 Author: Jason Merrill Date: Mo

[Bug bootstrap/53504] configure script of platform TLS support.

2021-08-31 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53504 --- Comment #2 from Jonathan Wakely --- Or maybe it's OK. The test is not trying to find out if threading works, only whether TLS works. If creating or joining the thread fails, there is probably a deeper issue. If creating and joining the thread

[Bug libstdc++/98978] Consider packing _M_Engaged in the tail padding of T in optional<>

2021-08-31 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98978 Jonathan Wakely changed: What|Removed |Added Severity|normal |enhancement Last reconfirmed|

[Bug libstdc++/98033] ABA problem in atomic wait

2021-08-31 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98033 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Keywords|

[Bug target/101865] _ARCH_PWR8 is not defined when using -mcpu=power8

2021-08-31 Thread wschmidt at linux dot ibm.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101865 --- Comment #14 from wschmidt at linux dot ibm.com --- On 8/31/21 11:09 AM, bergner at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101865 > > --- Comment #13 from Peter Bergner --- > (In reply to Tulio Magno Quites Mach

[Bug libstdc++/98421] std::span does not detect invalid range in Debug Mode

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

[Bug target/101865] _ARCH_PWR8 is not defined when using -mcpu=power8

2021-08-31 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101865 --- Comment #15 from Segher Boessenkool --- (In reply to HaoChen Gui from comment #9) > For this example, let's suppose that we set mcpu=power8 and mno-vsx in the > command line. Thus, _ARCH_PWR8 should be defined as mcpu=power8. But if the > Po

[Bug target/101865] _ARCH_PWR8 is not defined when using -mcpu=power8

2021-08-31 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101865 --- Comment #16 from Segher Boessenkool --- (In reply to wschmidt from comment #14) > I disagree with that.  You should use __VSX__ && _ARCH_PWR9 to check for > P9 vector support, etc.  The __POWERn_VECTOR__ things really are not > great and I

[Bug target/102125] (ARM Cortex-M3 and newer) missed optimization. memcpy not needed operations

2021-08-31 Thread rearnsha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102125 --- Comment #6 from Richard Earnshaw --- (In reply to Richard Biener from comment #2) > One common source of missed optimizations is gimple_fold_builtin_memory_op > which has [...] Yes, this is the source of the problem. I wonder if this shoul

[Bug libstdc++/102074] include/bits/atomic_timed_wait.h:215: possible missing return ?

2021-08-31 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102074 --- Comment #2 from CVS Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:763eb1f19239ebb19c0f87590a4f02300c02c52b commit r12-3263-g763eb1f19239ebb19c0f87590a4f02300c02c52b Author: Jonathan Wakely Date:

[Bug libstdc++/101739] Some function parameters in missing uglify

2021-08-31 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101739 --- Comment #1 from Jonathan Wakely --- These changes are not strictly necessary. "base" is a reserved name, because of move_iterator::base() etc. and "i" is a reserved name, because of operator""i() in . So users cannot define those as macro

[Bug target/102140] [12 Regression] ICE: in extract_constrain_insn, at recog.c:2670 (insn does not satisfy its constraints) with -Og -fipa-cp -fno-tree-ccp -fno-tree-ter

2021-08-31 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102140 Jakub Jelinek changed: What|Removed |Added CC||dje at gcc dot gnu.org,

[Bug libstdc++/101739] Some function parameters in missing uglify

2021-08-31 Thread hewillk at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101739 --- Comment #2 from 康桓瑋 --- (In reply to Jonathan Wakely from comment #1) > These changes are not strictly necessary. > > "base" is a reserved name, because of move_iterator::base() etc. > > and "i" is a reserved name, because of operator""i()

[Bug fortran/102145] TKR mismatches with -pedantic: -fallow-argument-mismatch does not degrade errors to warnings

2021-08-31 Thread kargl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102145 kargl at gcc dot gnu.org changed: What|Removed |Added Severity|normal |enhancement C

[Bug c++/12672] Evals template defaults args that it should not

2021-08-31 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=12672 --- Comment #15 from CVS Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:f1e7319956928712e8bf4893ebdfeeb6441099ee commit r12-3271-gf1e7319956928712e8bf4893ebdfeeb6441099ee Author: Patrick Palka Date: T

[Bug gcov-profile/96092] Should --coverage respect -ffile-prefix-map?

2021-08-31 Thread apsaltis at vmware dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96092 Andrew Psaltis changed: What|Removed |Added CC||apsaltis at vmware dot com --- Comment

[Bug target/102107] protocol register (r12) corrupted before a tail call

2021-08-31 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102107 --- Comment #13 from Segher Boessenkool --- /* If we need to save CR, put it into r12 or r11. Choose r12 except when r12 will be needed by out-of-line gpr save. */ cr_save_regno = ((DEFAULT_ABI == ABI_AIX || DEFAULT_ABI == ABI_ELFv2)

[Bug middle-end/102126] Wrong optimization of FP multiplication and division by 1 and -1 with -ftrapping-math when an underflow is possible

2021-08-31 Thread joseph at codesourcery dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102126 --- Comment #8 from joseph at codesourcery dot com --- I think that documentation should be changed to say it's primarily about flags, not traps, with trapping being considered much more of a legacy feature rather than something it's normally

[Bug libstdc++/98421] std::span does not detect invalid range in Debug Mode

2021-08-31 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98421 --- Comment #1 from CVS Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:ef7becc9c8a48804d3fd9dac032f7b33e561a612 commit r12-3272-gef7becc9c8a48804d3fd9dac032f7b33e561a612 Author: Jonathan Wakely Date:

[Bug libstdc++/98421] std::span does not detect invalid range in Debug Mode

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

[Bug libstdc++/58876] No non-virtual-dtor warning in std::unique_ptr

2021-08-31 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58876 Jonathan Wakely changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug libstdc++/64399] g++ does not diagnose when upcasting owning pointer (e.g. unique_ptr) with non-virtual destructor

2021-08-31 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64399 Jonathan Wakely changed: What|Removed |Added Keywords||diagnostic Status|UNCONFIR

[Bug libstdc++/101739] Some function parameters in missing uglify

2021-08-31 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101739 --- Comment #3 from Jonathan Wakely --- For consistency (and to avoid reports like this one) we might want to uglify them anyway. But it's not a correctness issue, just stylistic.

[Bug libstdc++/102015] [missed optimization] Small memory overhead in _Rb_tree_impl (fix would require ABI break)

2021-08-31 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102015 --- Comment #4 from Jonathan Wakely --- In https://gcc.gnu.org/pipermail/libstdc++/2021-August/053108.html I proposed dropping C++98 support for the gnu-versioned-namespace, which would allow us to fix this by using [[__no_unique_address__]]. N

[Bug libstdc++/77402] Use EBO for _Rb_tree_impl::_M_key_compare

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

  1   2   >