[Bug middle-end/107601] Change SLOW_BYTE_ACCESS into WIDEN_MODE_ACCESS_BITFIELD target hook

2022-11-09 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107601 --- Comment #2 from Richard Biener --- Related is probably STRICT_ALIGNMENT vs TARGET_SLOW_UNALIGNED_ACCESS

[Bug c++/107597] LTO causes static inline variables to get a non-uniqued global symbol

2022-11-09 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107597 Richard Biener changed: What|Removed |Added CC||amodra at gcc dot gnu.org,

[Bug fortran/107595] [13 Regression] ICE in ix86_push_argument, at config/i386/i386.cc:4335

2022-11-09 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107595 Richard Biener changed: What|Removed |Added Target Milestone|--- |13.0 --- Comment #4 from Richard Biene

[Bug libstdc++/107603] checking for ld that supports -Wl,--gc-sections... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES. for i686-w64-mingw32 target at canadian compilation

2022-11-09 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107603 --- Comment #1 from cqwrteur --- Created attachment 53864 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53864&action=edit config

[Bug target/107604] New: FAIL: gcc.target/aarch64/aapcs64/test_dfp_17.c execution, -O0 fails on aarch64_be

2022-11-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107604 Bug ID: 107604 Summary: FAIL: gcc.target/aarch64/aapcs64/test_dfp_17.c execution, -O0 fails on aarch64_be Product: gcc Version: 13.0 Status: UNCONFIRMED Keyw

[Bug target/97056] aarch64/sve/cost_model_2.c fails on aarch64_be since r11-3148

2022-11-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97056 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2022-11-10 Keywords|

[Bug libstdc++/107603] New: checking for ld that supports -Wl,--gc-sections... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES. for i686-w64-mingw32 target

2022-11-09 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107603 Bug ID: 107603 Summary: checking for ld that supports -Wl,--gc-sections... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES. for i686-w64-mingw32 target

[Bug target/105480] Vectorized `isnan` appears to trigger FPE on ppc64le

2022-11-09 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105480 --- Comment #11 from Kewen Lin --- (In reply to jos...@codesourcery.com from comment #10) > For scalar isnan see bug 66462. (The claim in bug 66462 comment 19 that > there was ever a working version of that patch ready to go in is > incorrect

[Bug c++/107600] New __is_destructible built-in

2022-11-09 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107600 --- Comment #2 from Jonathan Wakely --- I committed r13-3870-g0cbb756fe9c8e1 to speed up the std::destructible concept, so an intrinsic is not urgent. But it would probably be even better than the new implementation, and would also help other pa

[Bug testsuite/107602] New: dump-noaddr testcases fail when running the testsuite with already built installed toolchain

2022-11-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107602 Bug ID: 107602 Summary: dump-noaddr testcases fail when running the testsuite with already built installed toolchain Product: gcc Version: 13.0 Status: UNCONFIRMED

[Bug analyzer/107573] RFE: analyzer handling of strtok

2022-11-09 Thread jamie.bainbridge at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107573 --- Comment #1 from Jamie Bainbridge --- Thanks for logging this! (In reply to David Malcolm from comment #0) > - complain about NULL passed as the string to the first call of strtok > reached from entry to "main" (I don't think there's a guara

[Bug middle-end/107601] Change SLOW_BYTE_ACCESS into WIDEN_MODE_ACCESS_BITFIELD target hook

2022-11-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107601 --- Comment #1 from Andrew Pinski --- Note SLOW_SHORT_ACCESS is unused and has been as far as I can tell it was never used. I submitted a patch to remove it: https://gcc.gnu.org/pipermail/gcc-patches/2022-November/605574.html Note also at one

[Bug c++/107600] New __is_destructible built-in

2022-11-09 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107600 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |NEW CC|

[Bug c++/107600] New __is_destructible built-in

2022-11-09 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107600 --- Comment #1 from Jonathan Wakely --- And as with the others, __is_nothrow_destructible, which is what the concepts depend on specifically: /// [concept.destructible], concept destructible template concept destructible = is_nothrow_de

[Bug middle-end/107601] Change SLOW_BYTE_ACCESS into WIDEN_MODE_ACCESS_BITFIELD target hook

2022-11-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107601 Andrew Pinski changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |pinskia at gcc dot gnu.org La

[Bug middle-end/107601] New: Change SLOW_BYTE_ACCESS into WIDEN_MODE_ACCESS_BITFIELD target hook

2022-11-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107601 Bug ID: 107601 Summary: Change SLOW_BYTE_ACCESS into WIDEN_MODE_ACCESS_BITFIELD target hook Product: gcc Version: 13.0 Status: UNCONFIRMED Keywords: internal-

[Bug c++/107600] New: New __is_destructible built-in

2022-11-09 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107600 Bug ID: 107600 Summary: New __is_destructible built-in Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Ass

[Bug target/107581] ICE on sparc-leon-uclibc during go build

2022-11-09 Thread ian at airs dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107581 Ian Lance Taylor changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug target/107581] ICE on sparc-leon-uclibc during go build

2022-11-09 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107581 --- Comment #8 from CVS Commits --- The master branch has been updated by Ian Lance Taylor : https://gcc.gnu.org/g:219f82070903625d6bd8865b5ecb5f944bcee871 commit r13-3868-g219f82070903625d6bd8865b5ecb5f944bcee871 Author: Ian Lance Taylor Dat

[Bug tree-optimization/107591] range-op{,-float}.cc for x * x

2022-11-09 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107591 --- Comment #17 from Jakub Jelinek --- (In reply to Andrew Macleod from comment #16) > (In reply to Jakub Jelinek from comment #15) > > I've screwed up the real_value_negate calls, they need to assign the result. > > > > Anyway, yet another opt

[Bug target/107581] ICE on sparc-leon-uclibc during go build

2022-11-09 Thread ian at airs dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107581 --- Comment #7 from Ian Lance Taylor --- Interesting, thanks. The Go frontend will never emit a call to __atomic_fetch_add_4. I didn't realize that the middle end could convert __atomic_add_fetch_4 into that. Your patch looks right. I'll com

[Bug fortran/107595] [13 Regression] ICE in ix86_push_argument, at config/i386/i386.cc:4335

2022-11-09 Thread kargl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107595 kargl at gcc dot gnu.org changed: What|Removed |Added Status|WAITING |NEW --- Comment #3 from kargl

[Bug fortran/107595] [13 Regression] ICE in ix86_push_argument, at config/i386/i386.cc:4335

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

[Bug analyzer/99671] RFE: analyzer could complain about ptr derefs that occur before the ptr is checked

2022-11-09 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99671 --- Comment #2 from David Malcolm --- Created attachment 53863 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53863&action=edit Implementation of this (not yet ported to Sphinx) This patch implements the new warning; still uses texinfo rat

[Bug tree-optimization/107591] range-op{,-float}.cc for x * x

2022-11-09 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107591 --- Comment #16 from Andrew Macleod --- (In reply to Jakub Jelinek from comment #15) > I've screwed up the real_value_negate calls, they need to assign the result. > > Anyway, yet another option would be for cdce to ask the ranger if the sqrt >

[Bug fortran/107596] ICE in gfc_match_submodule, at fortran/module.cc:773

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

[Bug fortran/107595] [13 Regression] ICE in ix86_push_argument, at config/i386/i386.cc:4335

2022-11-09 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107595 H.J. Lu changed: What|Removed |Added Last reconfirmed||2022-11-09 Status|UNCONFIRMED

[Bug fortran/107444] ICE on character, value, optional dummy argument

2022-11-09 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107444 anlauf at gcc dot gnu.org changed: What|Removed |Added Last reconfirmed||2022-11-09 Assigne

[Bug fortran/94104] Request for diagnostic improvement

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

[Bug tree-optimization/107591] range-op{,-float}.cc for x * x

2022-11-09 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107591 --- Comment #15 from Jakub Jelinek --- I've screwed up the real_value_negate calls, they need to assign the result. Anyway, yet another option would be for cdce to ask the ranger if the sqrt argument can be smaller than -0.0 (and only if it can

[Bug tree-optimization/107591] range-op{,-float}.cc for x * x

2022-11-09 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107591 --- Comment #14 from Jakub Jelinek --- Incremental patch on top of the https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107569#c18 patch which optimizes the floating point x * x: --- gcc/range-op-float.cc.jj2022-11-09 19:06:11.075716000 +0100 +

[Bug fortran/107559] ICE in resolve_equivalence, at fortran/resolve.cc:17230

2022-11-09 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107559 anlauf at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED Target Milestone|

[Bug fortran/107559] ICE in resolve_equivalence, at fortran/resolve.cc:17230

2022-11-09 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107559 --- Comment #2 from CVS Commits --- The master branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:e505f7493bed1395d121d2f53137ec11706fa42e commit r13-3865-ge505f7493bed1395d121d2f53137ec11706fa42e Author: Harald Anlauf Date: W

[Bug c++/107599] [13 regression] c-c++-common/diagnostic-format-json-4.c fails after r13-3853-g9c3bc557995463

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

[Bug c++/107599] [13 regression] c-c++-common/diagnostic-format-json-4.c fails after r13-3853-g9c3bc557995463

2022-11-09 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107599 --- Comment #2 from CVS Commits --- The master branch has been updated by Martin Liska : https://gcc.gnu.org/g:f94c2eff6b0e000ee2feadedf354590958308760 commit r13-3864-gf94c2eff6b0e000ee2feadedf354590958308760 Author: Martin Liska Date: Wed

[Bug fortran/107441] optional arguments are identified as "present" when missing

2022-11-09 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107441 --- Comment #11 from CVS Commits --- The master branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:e805adaa283129604a1fb305d0a1cf1e8a90c76e commit r13-3863-ge805adaa283129604a1fb305d0a1cf1e8a90c76e Author: Harald Anlauf Date:

[Bug c++/107593] [12/13 Regression] ice with -Wduplicated-cond

2022-11-09 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107593 Marek Polacek changed: What|Removed |Added Target Milestone|--- |12.3 Status|UNCONFIRMED

[Bug c++/107599] [13 regression] c-c++-common/diagnostic-format-json-4.c fails after r13-3853-g9c3bc557995463

2022-11-09 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107599 Martin Liška changed: What|Removed |Added Ever confirmed|0 |1 CC|

[Bug c++/107599] New: [13 regression] c-c++-common/diagnostic-format-json-4.c fails after r13-3853-g9c3bc557995463

2022-11-09 Thread seurer at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107599 Bug ID: 107599 Summary: [13 regression] c-c++-common/diagnostic-format-json-4.c fails after r13-3853-g9c3bc557995463 Product: gcc Version: 13.0 Statu

[Bug c++/107598] New: implicitly-defined copy/move assignment op not constexpr

2022-11-09 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107598 Bug ID: 107598 Summary: implicitly-defined copy/move assignment op not constexpr Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal P

[Bug tree-optimization/107591] range-op{,-float}.cc for x * x

2022-11-09 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107591 --- Comment #13 from Andrew Macleod --- (In reply to Jakub Jelinek from comment #12) > (In reply to Andrew Macleod from comment #11) > > no, I meant in addition to the VREL_EQ. so > > if (rel == VREL_EQ && op1_range != op2_range) > > th

[Bug c++/107597] New: LTO causes static inline variables to get a non-uniqued global symbol

2022-11-09 Thread cfsteefel at arista dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107597 Bug ID: 107597 Summary: LTO causes static inline variables to get a non-uniqued global symbol Product: gcc Version: 8.4.1 Status: UNCONFIRMED Severity: normal

[Bug libstdc++/107580] std::vector parameter cannot be inferred with -D_GLIBCXX_USE_CXX11_ABI=0

2022-11-09 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107580 Jonathan Wakely changed: What|Removed |Added Keywords||ABI Assignee|redi at gcc do

[Bug tree-optimization/107591] range-op{,-float}.cc for x * x

2022-11-09 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107591 --- Comment #12 from Jakub Jelinek --- (In reply to Andrew Macleod from comment #11) > no, I meant in addition to the VREL_EQ. so > if (rel == VREL_EQ && op1_range != op2_range) > then you know you have something like if (x == y) z=x*y

[Bug tree-optimization/107591] range-op{,-float}.cc for x * x

2022-11-09 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107591 --- Comment #11 from Andrew Macleod --- (In reply to Jakub Jelinek from comment #10) > (In reply to Andrew Macleod from comment #9) > > you could also test whether op1_range contains + and/or - 0, as well as > > op2_range. VREL_EQ is a symbolic

[Bug tree-optimization/107569] [13 Regression] Failure to optimize std::isfinite since r13-3596

2022-11-09 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107569 --- Comment #18 from Jakub Jelinek --- Ok, just so that I don't just kibbitz/review frange stuff but also try to do something, here is my so far untested attempt at normal multiplication fold_range (not the x * x stuff discussed elsewhere): --

[Bug fortran/107596] New: ICE in gfc_match_submodule, at fortran/module.cc:773

2022-11-09 Thread gscfq--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107596 Bug ID: 107596 Summary: ICE in gfc_match_submodule, at fortran/module.cc:773 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Compon

[Bug fortran/107595] New: ICE in ix86_push_argument, at config/i386/i386.cc:4335

2022-11-09 Thread gscfq--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107595 Bug ID: 107595 Summary: ICE in ix86_push_argument, at config/i386/i386.cc:4335 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Comp

[Bug c++/107594] New: ICE in module_state, at cp/module.cc:3810

2022-11-09 Thread gscfq--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107594 Bug ID: 107594 Summary: ICE in module_state, at cp/module.cc:3810 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug tree-optimization/107591] range-op{,-float}.cc for x * x

2022-11-09 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107591 --- Comment #10 from Jakub Jelinek --- (In reply to Andrew Macleod from comment #9) > you could also test whether op1_range contains + and/or - 0, as well as > op2_range. VREL_EQ is a symbolic equality.. the ranges can still be > distinct and i

[Bug tree-optimization/107591] range-op{,-float}.cc for x * x

2022-11-09 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107591 --- Comment #9 from Andrew Macleod --- (In reply to Jakub Jelinek from comment #8) > (In reply to Aldy Hernandez from comment #6) > > FYI, the range operators have a relation field, so it should be able to tell > > you that both operands are equ

[Bug d/107592] ICE: gdc segfault on label continue

2022-11-09 Thread ibuclaw at gdcproject dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107592 --- Comment #1 from Iain Buclaw --- Generated function: --- void foo (struct _param_0) { void label = <<< error >>>; label:; while (1) { { struct thing; thing = _param_0; goto ; } goto ;

[Bug target/105480] Vectorized `isnan` appears to trigger FPE on ppc64le

2022-11-09 Thread joseph at codesourcery dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105480 --- Comment #10 from joseph at codesourcery dot com --- For scalar isnan see bug 66462. (The claim in bug 66462 comment 19 that there was ever a working version of that patch ready to go in is incorrect: November 2016 is older than June 2017.

[Bug tree-optimization/107569] [13 Regression] Failure to optimize std::isfinite since r13-3596

2022-11-09 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107569 --- Comment #17 from CVS Commits --- The master branch has been updated by Aldy Hernandez : https://gcc.gnu.org/g:4eadbe80060ab6c45193a1a57fac84b035e1c328 commit r13-3860-g4eadbe80060ab6c45193a1a57fac84b035e1c328 Author: Aldy Hernandez Date:

[Bug middle-end/106123] ICE in walk_tree_1, at tree.cc:11243

2022-11-09 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106123 --- Comment #3 from qinzhao at gcc dot gnu.org --- the minimized testing case: struct S { int t; int a; void foo (); }; void S::foo () { #pragma omp parallel { #pragma omp taskloop firstprivate (a) for (int i = 0; i < a; i++) t

[Bug target/107590] __atomic_test_and_set broken on PowerPC

2022-11-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107590 --- Comment #6 from Andrew Pinski --- (In reply to Iain Sandoe from comment #5) > I'm away from my usual sources of information but I'd suggest exploring the > possibility that someone has assumed that either the spinlock or a bool is > 8bits; A

[Bug rtl-optimization/105586] [11/12 Regression] -fcompare-debug failure (length) with -O2 -fno-if-conversion -mtune=power4 -fno-guess-branch-probability

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

[Bug c++/107593] New: ice with -Wduplicated-cond

2022-11-09 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107593 Bug ID: 107593 Summary: ice with -Wduplicated-cond Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assigne

[Bug target/100799] Stackoverflow in optimized code on PPC

2022-11-09 Thread jskumari at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100799 Surya Kumari Jangala changed: What|Removed |Added Status|ASSIGNED|WAITING --- Comment #21 from Sur

[Bug target/107590] __atomic_test_and_set broken on PowerPC

2022-11-09 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107590 --- Comment #5 from Iain Sandoe --- I'm away from my usual sources of information but I'd suggest exploring the possibility that someone has assumed that either the spinlock or a bool is 8bits; As far as my memory serves both are 32b on power d

[Bug tree-optimization/107591] range-op{,-float}.cc for x * x

2022-11-09 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107591 --- Comment #8 from Jakub Jelinek --- (In reply to Aldy Hernandez from comment #6) > FYI, the range operators have a relation field, so it should be able to tell > you that both operands are equal with VREL_EQ (?). You could use that to > optim

[Bug target/107590] __atomic_test_and_set broken on PowerPC

2022-11-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107590 --- Comment #4 from Andrew Pinski --- (In reply to Sergey Fedorov from comment #3) > > Also inside gdb can you do the following: > > > > disassemble $pc-0x10 $pc+0x10 > > info registers > > I could try that tomorrow, provided an ancient GBD we

[Bug tree-optimization/107591] range-op{,-float}.cc for x * x

2022-11-09 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107591 --- Comment #7 from Jakub Jelinek --- To answer my own question: int foo (int x) { return x + x; } int bar (int x) { return x * x * x * x * x * x; } float baz (float x) { return x + x; } float qux (float x) { return x * x * x * x * x

[Bug modula2/101392] cc1gm2 -fdump-system-exports SEGV on Solaris/SPARC

2022-11-09 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101392 --- Comment #5 from Gaius Mulley --- thanks for this excellent analysis. Here is a patch which will fix the passing of binop.proc in M2GenGCC.c. diff --git a/gcc/m2/gm2-gcc/m2expr.def b/gcc/m2/gm2-gcc/m2expr.def index 8988c78d575..e622d31d09b

[Bug target/107581] ICE on sparc-leon-uclibc during go build

2022-11-09 Thread dkm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107581 --- Comment #6 from Marc Poulhiès --- IIUC, the builtin for ADD_FETCH_4 is correctly defined (there's an entry with a corresponding decl), but there's no builtin for FETCH_ADD_4. When looking in go-gcc.cc, I see that only the ADD_FETCH is defin

[Bug target/107581] ICE on sparc-leon-uclibc during go build

2022-11-09 Thread dkm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107581 --- Comment #5 from Marc Poulhiès --- Created attachment 53862 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53862&action=edit naive patch

[Bug d/107592] New: ICE: gdc segfault on label continue

2022-11-09 Thread zorael at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107592 Bug ID: 107592 Summary: ICE: gdc segfault on label continue Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: d

[Bug target/107590] __atomic_test_and_set broken on PowerPC

2022-11-09 Thread vital.had at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107590 --- Comment #3 from Sergey Fedorov --- (In reply to Andrew Pinski from comment #2) > >Reason: 259 at address: 0x3109 > > Yes that does seem like an alignment disagreement. > > I suspect the code is broken for allocation and it is allocatin

[Bug tree-optimization/107591] range-op{,-float}.cc for x * x

2022-11-09 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107591 --- Comment #6 from Aldy Hernandez --- (In reply to Jakub Jelinek from comment #2) > Perhaps before we try to map MULT_EXPR into some irange/frange op the usual > way, > while we still have access to gimple statement check if it is MULT_EXPR wit

[Bug tree-optimization/107591] range-op{,-float}.cc for x * x

2022-11-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107591 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug tree-optimization/107591] range-op{,-float}.cc for x * x

2022-11-09 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107591 --- Comment #5 from Aldy Hernandez --- (In reply to Andrew Pinski from comment #3) > (In reply to Aldy Hernandez from comment #1) > > pinskia is a god. How does he keep track of all these bugs, plus the cross > > reference between them? I knew

[Bug tree-optimization/107591] range-op{,-float}.cc for x * x

2022-11-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107591 --- Comment #3 from Andrew Pinski --- (In reply to Aldy Hernandez from comment #1) > pinskia is a god. How does he keep track of all these bugs, plus the cross > reference between them? I knew PR91645 was related, but it was specifically > som

[Bug target/86808] tilegx port needs updating for CVE-2017-5753

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

[Bug middle-end/101926] [meta-bug] struct/complex argument passing and return should be improved

2022-11-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101926 Bug 101926 depends on bug 55360, which changed state. Bug 55360 Summary: [TileGX] Passing structure by value on stack needlessly writes to and reads from memory https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55360 What|Removed

[Bug target/86772] [meta-bug] tracking port status for CVE-2017-5753

2022-11-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86772 Bug 86772 depends on bug 86808, which changed state. Bug 86808 Summary: tilegx port needs updating for CVE-2017-5753 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86808 What|Removed |Added ---

[Bug target/86809] tilepro port needs updating for CVE-2017-5753

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

[Bug target/86772] [meta-bug] tracking port status for CVE-2017-5753

2022-11-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86772 Bug 86772 depends on bug 86809, which changed state. Bug 86809 Summary: tilepro port needs updating for CVE-2017-5753 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86809 What|Removed |Added --

[Bug target/78222] target-tilegx: Incorrect bundle: let addli in y pipe

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

[Bug target/78117] gcc on tilegx builds faulty strstr() function (from glibc)

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

[Bug rtl-optimization/55360] [TileGX] Passing structure by value on stack needlessly writes to and reads from memory

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

[Bug target/78862] tile*: ICE with -fstack-protetor-strong

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

[Bug tree-optimization/107591] range-op{,-float}.cc for x * x

2022-11-09 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107591 --- Comment #2 from Jakub Jelinek --- Perhaps before we try to map MULT_EXPR into some irange/frange op the usual way, while we still have access to gimple statement check if it is MULT_EXPR with the same operands and use a different artificial

[Bug target/62139] Tilera tilepro: useless stack pointer operations

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

[Bug target/79365] tile*: incorrect result for expressions where result of a vector compare is used as a scalar

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

[Bug tree-optimization/107591] range-op{,-float}.cc for x * x

2022-11-09 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107591 --- Comment #1 from Aldy Hernandez --- pinskia is a god. How does he keep track of all these bugs, plus the cross reference between them? I knew PR91645 was related, but it was specifically something on my radar, not the 5 trillion bugs in pin

[Bug tree-optimization/107591] range-op{,-float}.cc for x * x

2022-11-09 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107591 Aldy Hernandez changed: What|Removed |Added Last reconfirmed||2022-11-09 Ever confirmed|0

[Bug target/107590] __atomic_test_and_set broken on PowerPC

2022-11-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107590 --- Comment #2 from Andrew Pinski --- >Reason: 259 at address: 0x3109 Yes that does seem like an alignment disagreement. I suspect the code is broken for allocation and it is allocating unaligned structs. Also inside gdb can you do the fo

[Bug target/107590] __atomic_test_and_set broken on PowerPC

2022-11-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107590 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2022-11-09 Ever confirmed|0

[Bug tree-optimization/107569] [13 Regression] Failure to optimize std::isfinite since r13-3596

2022-11-09 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107569 --- Comment #16 from Jakub Jelinek --- I've filed PR107591 for the lack of x * x range optimization.

[Bug tree-optimization/107591] New: range-op{,-float}.cc for x * x

2022-11-09 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107591 Bug ID: 107591 Summary: range-op{,-float}.cc for x * x Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization

[Bug target/107590] New: __atomic_test_and_set broken on PowerPC

2022-11-09 Thread vital.had at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107590 Bug ID: 107590 Summary: __atomic_test_and_set broken on PowerPC Product: gcc Version: 11.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target

[Bug tree-optimization/107569] [13 Regression] Failure to optimize std::isfinite since r13-3596

2022-11-09 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107569 --- Comment #15 from Jakub Jelinek --- We don't have multiplication wired in frange, that is something we talked about today on gcc-patches.

[Bug tree-optimization/107569] [13 Regression] Failure to optimize std::isfinite since r13-3596

2022-11-09 Thread pilarlatiesa at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107569 --- Comment #14 from Pilar Latiesa --- I have tested the testcase in comment #1 with Clang, and I realized that Clang trunk avoids the tailcall to sqrt even without any hint with __builtin_unreachable: https://godbolt.org/z/5sb8bYcoq Clang is

[Bug tree-optimization/107569] [13 Regression] Failure to optimize std::isfinite since r13-3596

2022-11-09 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107569 --- Comment #13 from Aldy Hernandez --- Created attachment 53861 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53861&action=edit preprocessed testcase for comment #2

[Bug tree-optimization/107569] [13 Regression] Failure to optimize std::isfinite since r13-3596

2022-11-09 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107569 --- Comment #12 from Aldy Hernandez --- It looks like the code reading from the blob in SSA_NAME_RANGE_INFO and populating an frange is always leaving the NAN bit toggled even if it wasn't in the stored range. Does this help? diff --git a/gcc/

[Bug tree-optimization/107569] [13 Regression] Failure to optimize std::isfinite since r13-3596

2022-11-09 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107569 --- Comment #11 from Aldy Hernandez --- (In reply to Andrew Macleod from comment #5) > (In reply to Jakub Jelinek from comment #4) > > The cdce case is something I've mentioned today: > > https://gcc.gnu.org/pipermail/gcc-patches/2022-November/6

[Bug middle-end/77432] warn about null check after pointer dereference

2022-11-09 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77432 David Malcolm changed: What|Removed |Added CC||dmalcolm at gcc dot gnu.org --- Comment

[Bug analyzer/99671] RFE: analyzer could complain about ptr derefs that occur before the ptr is checked

2022-11-09 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99671 David Malcolm changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug target/107585] [13 Regression] ICE: in decompose, at rtl.h:2288 at -O

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

[Bug libstdc++/107538] std::pow(10, std::complex(NaN, 1)) aborts with -D_GLIBCXX_ASSERTIONS

2022-11-09 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107538 --- Comment #3 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #0) > #define _GLIBCXX_ASSERTIONS > #include > #include > > int main() > { > double nan = std::numeric_limits::quiet_NaN(); > std::pow(10, std::complex(nan,

  1   2   >