Re: LRA for avr: help with FP and elimination

2023-07-27 Thread Maciej W. Rozycki
On Fri, 14 Jul 2023, Vladimir Makarov via Gcc wrote: > > On the avr, the stack pointer (SP) > >is not used to access stack slots > It is very uncommon target then. Same with the VAX target. SP is used for outgoing function arguments, function calls, alloca only. AP is used for incoming

Re: LRA for avr: help with FP and elimination

2023-07-27 Thread Paul Koning via Gcc
> On Jul 27, 2023, at 7:50 AM, Maciej W. Rozycki wrote: > > On Fri, 14 Jul 2023, Vladimir Makarov via Gcc wrote: > >>> On the avr, the stack pointer (SP) >>> is not used to access stack slots >> It is very uncommon target then. > > Same with the VAX target. SP is used for outgoing

Re: LRA for avr: Handling hard regs set directly at expand

2023-07-27 Thread Georg-Johann Lay
Am 17.07.23 um 13:33 schrieb SenthilKumar.Selvaraj--- via Gcc: Hi, The avr target has a bunch of patterns that directly set hard regs at expand time, like so The correct approach would be to use usual predicates together with constraints that describe the register instead of hard

Re: Calling convention for Intel APX extension

2023-07-27 Thread Florian Weimer via Gcc
* Thomas Koenig via Gcc: > Intel recommends to have the new registers as caller-saved for > compatibility with current calling conventions. If I understand this > correctly, this is required for exception unwinding, but not if the > function called is __attribute__((nothrow)). Nothrow functions

Re: Calling convention for Intel APX extension

2023-07-27 Thread Michael Matz via Gcc
Hey, On Thu, 27 Jul 2023, Thomas Koenig via Gcc wrote: > Intel recommends to have the new registers as caller-saved for > compatibility with current calling conventions. If I understand this > correctly, this is required for exception unwinding, but not if the > function called is

GCC 13.2.1 Status Report (2023-07-27)

2023-07-27 Thread Jakub Jelinek via Gcc
Status == GCC 13.2 has been released, the releases/gcc-13 branch is open again for regression and documentation bugfixing. GCC 13.3 can be expected in spring next year unless something serious changes the plans. Quality Data Priority # Change from last report

Calling convention for Intel APX extension

2023-07-27 Thread Thomas Koenig via Gcc
With the upcoming Intel APX extension, Intel processors will finally gain 32 general-purpose registers and three-operand arithmetic, see https://www.intel.com/content/www/us/en/developer/articles/technical/advanced-performance-extensions-apx.html Intel recommends to have the new registers as

GCC 13.2 Released

2023-07-27 Thread Richard Biener via Gcc
The GNU Compiler Collection version 13.2 has been released. GCC 13.2 is the first bug-fix release from the GCC 13 branch containing important fixes for regressions and serious bugs in GCC 13.1 with more than 58 bugs fixed since the previous release. This release is available from the WWW servers

Re: Update and Questions on CPython Extension Module -fanalyzer plugin development

2023-07-27 Thread Eric Feng via Gcc
Hi Dave, Thanks for the comments! [...] > Do you have any DejaGnu tests for this functionality? For example, > given PyList_New > https://docs.python.org/3/c-api/list.html#c.PyList_New > there could be a test like: > > /* { dg-require-effective-target python_h } */ > > #define

gcc-11-20230727 is now available

2023-07-27 Thread GCC Administrator via Gcc
Snapshot gcc-11-20230727 is now available on https://gcc.gnu.org/pub/gcc/snapshots/11-20230727/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 11 git branch with the following options: git://gcc.gnu.org/git/gcc.git branch

Re: [PATCH v5 4/5] c++modules: report imported CMI files as dependencies

2023-07-27 Thread Jason Merrill via Gcc
On 7/23/23 20:26, Ben Boeckel wrote: On Fri, Jul 21, 2023 at 16:23:07 -0400, Nathan Sidwell wrote: It occurs to me that the model I am envisioning is similar to CMake's object libraries. Object libraries are a convenient name for a bunch of object files. IIUC they're linked by naming the

Re: Update and Questions on CPython Extension Module -fanalyzer plugin development

2023-07-27 Thread David Malcolm via Gcc
On Thu, 2023-07-27 at 18:13 -0400, Eric Feng wrote: > Hi Dave, > > Thanks for the comments! > > [...] > > Do you have any DejaGnu tests for this functionality?  For example, > > given PyList_New > >   https://docs.python.org/3/c-api/list.html#c.PyList_New > > there could be a test like: > > > >

[C++] [Coroutines] Does GCC want to support `-fno-coroutines`?

2023-07-27 Thread chuanqi.xcq via Gcc
Hi, We're discussing to implement `-fno-coroutines` in clang so that we can disable the coroutine feature with C++ standard higher than 20. A full discussion can be found here: https://reviews.llvm.org/D156247. A major motivation for us to do this is to keep consistency with GCC. However, we

Re: [C++] [Coroutines] Does GCC want to support `-fno-coroutines`?

2023-07-27 Thread Andrew Pinski via Gcc
On Thu, Jul 27, 2023 at 7:11 PM chuanqi.xcq via Gcc wrote: > > Hi, > We're discussing to implement `-fno-coroutines` in clang so that we can > disable the coroutine feature with C++ standard higher than 20. > A full discussion can be found here: https://reviews.llvm.org/D156247. A > major

Re: LRA for avr: Handling hard regs set directly at expand

2023-07-27 Thread SenthilKumar.Selvaraj--- via Gcc
On Thu, 2023-07-27 at 15:11 +0200, Georg-Johann Lay wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > Am 17.07.23 um 13:33 schrieb SenthilKumar.Selvaraj--- via Gcc: > > Hi, > > > >The avr target has a bunch of patterns that directly

Re: [PATCH] fix pdp11_expand_epilogue (PR target/107841)

2023-07-27 Thread Maciej W. Rozycki
On Thu, 13 Jul 2023, Jeff Law via Gcc-patches wrote: > > Question for the experts: how is this handled? Do I need to apply this > > change to my workspace and commit it, with Mikael as the change author? > That's what I usually do for someone without write access. commit it locally > using the

[Bug rtl-optimization/91838] [8/9 Regression] incorrect use of shr and shrx to shift by 64, missed optimization of vector shift

2023-07-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91838 --- Comment #19 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:d1c072a1c3411a6fe29900750b38210af8451eeb commit r14-2821-gd1c072a1c3411a6fe29900750b38210af8451eeb Author: Richard Biener Date:

[Bug target/110788] Spilling to mask register for GPR vec_duplicate

2023-07-27 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110788 --- Comment #4 from Hongtao.liu --- > kmovw %edx, %k0 > vpbroadcastmw2d %k0, %xmm1 > > instead of > > vpbroadcastw%edx, %xmm1 > It's not vpbroadcastw, it's movzwl %dx, %ecx vpbroadcastd%ecx, %xmm0.

[Bug target/107172] [13 Regression] wrong code with "-O1 -ftree-vrp" on x86_64-linux-gnu since r13-1268-g8c99e307b20c502e

2023-07-27 Thread shaohua.li at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107172 --- Comment #52 from Shaohua Li --- *** Bug 107257 has been marked as a duplicate of this bug. ***

[Bug target/107257] [13 Regression] Wrong code at -O2 on x86_64-linux-gnu since r13-857-gf1652e3343b1ec47

2023-07-27 Thread shaohua.li at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107257 Shaohua Li changed: What|Removed |Added Resolution|--- |DUPLICATE Status|WAITING

[Bug target/110781] bpf: make use of the V4 long-range jump instruction (jal/gotol)

2023-07-27 Thread jemarch at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110781 Jose E. Marchesi changed: What|Removed |Added Resolution|--- |MOVED

Re: [PATCH] RISC-V: Fix uninitialized and redundant use of which_alternative

2023-07-27 Thread Kito Cheng via Gcc-patches
My first impression is those emit_insn (gen_rtx_SET()) seems necessary, but I got the point after I checked vector.md :P Committed to trunk, thanks :) On Thu, Jul 27, 2023 at 6:23 PM juzhe.zh...@rivai.ai wrote: > > Oh, YES. > > Thanks for fixing it. It makes sense since the ternary operations

[PATCH] tree-optimization/91838 - fix FAIL of g++.dg/opt/pr91838.C

2023-07-27 Thread Richard Biener via Gcc-patches
The following fixes the lack of simplification of a vector shift by an out-of-bounds shift value. For scalars this is done both by CCP and VRP but vectors are not handled there. This results in PR91838 differences in outcome dependent on whether a vector shift ISA is available and thus vector

[Bug analyzer/110830] New: -Wanalyzer-use-of-uninitialized-value false negative due to use-after-free::supercedes_p.

2023-07-27 Thread vultkayn at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110830 Bug ID: 110830 Summary: -Wanalyzer-use-of-uninitialized-value false negative due to use-after-free::supercedes_p. Product: gcc Version: 14.0 Status: UNCONFIRMED

[Bug c++/110197] [13/14 Regression] Empty constexpr object constructor erronously claims out of range access

2023-07-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110197 --- Comment #6 from CVS Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:a426b91b27e28985f47d16827a532fbc28c09bd7 commit r14-2820-ga426b91b27e28985f47d16827a532fbc28c09bd7 Author: Patrick Palka Date:

[Bug c++/110197] [13 Regression] Empty constexpr object constructor erronously claims out of range access

2023-07-27 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110197 Patrick Palka changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot gnu.org

[Bug c++/54056] Fast run out of memory compiling template specialization

2023-07-27 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54056 Patrick Palka changed: What|Removed |Added Keywords||compile-time-hog Ever confirmed|0

[PATCH] [x86] Add UNSPEC_MASKOP to vpbroadcastm pattern.

2023-07-27 Thread liuhongt via Gcc-patches
Prevent rtl optimization of vec_duplicate + zero_extend to vpbroadcastm since there could be an extra kmov after RA. Bootstrapped and regtested on x86_64-pc-linux-gnu{-m32,} Ready to push to trunk. gcc/ChangeLog: PR target/110788 * config/i386/sse.md (avx512cd_maskb_vec_dup):

[Bug tree-optimization/92335] [11/12/13/14 Regression] sinking of loads happen too early which causes vectorization not to be done

2023-07-27 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92335 Richard Biener changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org

[Bug rtl-optimization/91838] [8/9 Regression] incorrect use of shr and shrx to shift by 64, missed optimization of vector shift

2023-07-27 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91838 Richard Biener changed: What|Removed |Added Resolution|--- |FIXED Status|REOPENED

Fix profile update in tree_transform_and_unroll_loop

2023-07-27 Thread Jan Hubicka via Gcc-patches
Hi, This patch fixes profile update in tree_transform_and_unroll_loop which is used by predictive comming. I stared by attempt to fix gcc.dg/tree-ssa/update-unroll-1.c I xfailed last week, but it turned to be harder job. Unrolling was never fixed for changes in duplicate_loop_body_to_header_edge

[Bug c/102989] Implement C2x's n2763 (_BitInt)

2023-07-27 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102989 Jakub Jelinek changed: What|Removed |Added Attachment #55642|0 |1 is obsolete|

[Bug sanitizer/110814] Address Sanitizer misses 'global-buffer-overflow' for const arrays

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

[Bug fortran/110720] [13 Regression] Internal compiler error (segmentation fault) in gfc_expression_rank

2023-07-27 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110720 Richard Biener changed: What|Removed |Added Target Milestone|13.2|13.3 --- Comment #4 from Richard

[Bug ada/109472] [13/14 regression] False unread/unassigned warning for variable in local package since r13-1626-ga8d17a88a52d2f

2023-07-27 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109472 Richard Biener changed: What|Removed |Added Target Milestone|13.2|13.3 --- Comment #4 from Richard

[Bug analyzer/109027] [13/14 Regression] ICE: SIGSEGV (infinite recursion in ana::constraint_manager::eval_condition / ana::constraint_manager::impossible_derived_conditions_p) with -fanalyzer since r

2023-07-27 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109027 Richard Biener changed: What|Removed |Added Target Milestone|13.2|13.3 --- Comment #5 from Richard

[Bug tree-optimization/109410] [13/14 Regression] ICE: verify_flow_info failed

2023-07-27 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109410 Richard Biener changed: What|Removed |Added Target Milestone|13.2|13.3 --- Comment #18 from Richard

[Bug tree-optimization/110243] [13/14 Regression] Wrong code at -O3 on x86_64-linux-gnu

2023-07-27 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110243 Richard Biener changed: What|Removed |Added Target Milestone|13.2|13.3 --- Comment #5 from Richard

[Bug libgcc/109685] [13/14 Regression] Memory leak in `__deregister_frame`

2023-07-27 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109685 Richard Biener changed: What|Removed |Added Target Milestone|13.2|13.3 --- Comment #5 from Richard

[Bug rtl-optimization/110220] [13/14 Regression] ICE in patch_jump_insn, at cfgrtl.cc:1295 - avr/xmega

2023-07-27 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110220 Richard Biener changed: What|Removed |Added Target Milestone|13.2|13.3 --- Comment #7 from Richard

[Bug tree-optimization/110315] [13 Regression] g++ crashes with a segmentation fault while compiling a large const std::vector of std::string since r13-6566-ge0324e2629e25a90

2023-07-27 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110315 Richard Biener changed: What|Removed |Added Target Milestone|13.2|13.3 --- Comment #8 from Richard

[Bug c++/109753] [13/14 Regression] pragma GCC target causes std::vector not to compile (always_inline on constructor)

2023-07-27 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109753 Richard Biener changed: What|Removed |Added Target Milestone|13.2|13.3 --- Comment #10 from Richard

[Bug libstdc++/109814] [13/14 Regression] freestanding using cmath does not compile anymore

2023-07-27 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109814 Richard Biener changed: What|Removed |Added Target Milestone|13.2|13.3 --- Comment #11 from Richard

[Bug c++/110197] [13/14 Regression] Empty constexpr object constructor erronously claims out of range access

2023-07-27 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110197 Richard Biener changed: What|Removed |Added Target Milestone|13.2|13.3 --- Comment #5 from Richard

[Bug c++/110566] [13 Regression] ICE when instantiating function template with template template parameter with 2 or more auto parameters with a dependent member template, ICE in tsubst, at cp/pt.cc:1

2023-07-27 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110566 Richard Biener changed: What|Removed |Added Target Milestone|13.2|13.3 --- Comment #7 from Richard

[Bug tree-optimization/109546] [13/14 Regression] Missed Dead Code Elimination when using __builtin_unreachable since r13-3596-ge7310e24b1c0ca

2023-07-27 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109546 Richard Biener changed: What|Removed |Added Target Milestone|13.2|13.3 --- Comment #7 from Richard

Re: Re: [PATCH V3] RISC-V: Enable basic VLS modes support

2023-07-27 Thread juzhe.zh...@rivai.ai
I change as follows: (define_insn_and_split "*mov_mem_to_mem" [(set (match_operand:VLS_AVL_IMM 0 "memory_operand") (match_operand:VLS_AVL_IMM 1 "memory_operand"))] "TARGET_VECTOR && can_create_pseudo_p ()" "#" "&& 1" [(const_int 0)] { if (GET_MODE_BITSIZE (mode).to_constant

[Bug c++/110824] Gcc crashing on a lambda capture

2023-07-27 Thread denis.yaroshevskij at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110824 --- Comment #4 from Denis Yaroshevskiy --- Appreciate it. I'm still going to support gcc11 for the forseable future. Is there some easy way you see I can confirm that this is this issue? So that I don't create more duplicates?

[Bug tree-optimization/110829] [13/14 Regression] FAIL: gcc.dg/pr56837.c scan-tree-dump-times optimized "memset ..c, 68, 16384.;" 1

2023-07-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110829 --- Comment #2 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:41482832ad0aeaa0e4ae2f8d2beff17023cd00bf commit r14-2816-g41482832ad0aeaa0e4ae2f8d2beff17023cd00bf Author: Richard Biener Date:

[Bug tree-optimization/110829] [13/14 Regression] FAIL: gcc.dg/pr56837.c scan-tree-dump-times optimized "memset ..c, 68, 16384.;" 1

2023-07-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110829 --- Comment #3 from CVS Commits --- The releases/gcc-13 branch has been updated by Richard Biener : https://gcc.gnu.org/g:00c806ea70406e6e67170e51095533dcb8a20cf8 commit r13-7613-g00c806ea70406e6e67170e51095533dcb8a20cf8 Author: Richard

Re: Re: [PATCH V3] RISC-V: Enable basic VLS modes support

2023-07-27 Thread juzhe.zh...@rivai.ai
>> Hmmm, does it mean we'll have (set (mem) (mem)) after legitimize_move??? The answer is yes. It's odd I know. And I found the regression fail, for mem to mem pattern, I change it into: (define_insn_and_split "*mov_mem_to_mem" [(set (match_operand:VLS_AVL_IMM 0 "memory_operand")

[PATCH] XFAIL parts broken deliberately by r13-1762-gf9d4c3b45c5ed5

2023-07-27 Thread Richard Biener via Gcc-patches
The following XFAILs recognizing a complex store as memset. Tested on x86_64-unknown-linux-gnu, pushed to trunk and branch. PR tree-optimization/110829 * gcc.dg/pr56837.c: XFAIL part of the testcase. --- gcc/testsuite/gcc.dg/pr56837.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH v1] RISC-V: Remove unnecessary vread_csr/vwrite_csr intrinsic.

2023-07-27 Thread Pan Li via Gcc-patches
From: Pan Li According to below RVV doc, the related intrinsic is not longer needed. https://github.com/riscv-non-isa/rvv-intrinsic-doc/pull/249 Signed-off-by: Pan Li gcc/ChangeLog: * config/riscv/riscv_vector.h (enum RVV_CSR): Removed. (vread_csr): Ditto.

[Bug rtl-optimization/91838] [8/9 Regression] incorrect use of shr and shrx to shift by 64, missed optimization of vector shift

2023-07-27 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91838 --- Comment #18 from Uroš Bizjak --- (In reply to Richard Biener from comment #17) > Interestingly even with -mno-sse we somehow have a shift for V2QImode. This is implemented by a combination of shl rl,cl and shl rh,cl, so no XMM registers are

Re: [PATCH] tree-optimization/91838 - fix FAIL of g++.dg/opt/pr91838.C

2023-07-27 Thread Jakub Jelinek via Gcc-patches
On Thu, Jul 27, 2023 at 12:00:56PM +, Richard Biener wrote: > The following fixes the lack of simplification of a vector shift > by an out-of-bounds shift value. For scalars this is done both > by CCP and VRP but vectors are not handled there. This results > in PR91838 differences in outcome

[Bug c++/110197] [13 Regression] Empty constexpr object constructor erronously claims out of range access

2023-07-27 Thread matt at godbolt dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110197 --- Comment #8 from Matt Godbolt --- Fantastic: thanks everyone!

[Bug c++/110828] union constexpr dtor not constexpr when used in member array

2023-07-27 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110828 Patrick Palka changed: What|Removed |Added CC||ppalka at gcc dot gnu.org --- Comment

[Bug libstdc++/108046] The dot in the floating-point alternative form has wrong position

2023-07-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108046 --- Comment #3 from CVS Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:50bc490c090cc95175e6068ed7438788d7fd7040 commit r14-2825-g50bc490c090cc95175e6068ed7438788d7fd7040 Author: Jonathan Wakely

[Bug libstdc++/108046] The dot in the floating-point alternative form has wrong position

2023-07-27 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108046 Jonathan Wakely changed: What|Removed |Added Last reconfirmed|2022-12-10 00:00:00 |2023-07-27 --- Comment #4 from

Re: [PATCH v2] RISC-V: testsuite: Add vector_hw and zvfh_hw checks.

2023-07-27 Thread Kito Cheng via Gcc-patches
LGTM, I just found this patch still on the list, I mostly tested with qemu, so I don't think that is a problem before, but I realize it's a problem when we run on a real board that does not support those extensions. On Sun, Jun 18, 2023 at 6:07 AM Jeff Law via Gcc-patches wrote: > > > > On

RE: [PATCH v1] RISC-V: Remove unnecessary vread_csr/vwrite_csr intrinsic.

2023-07-27 Thread Li, Pan2 via Gcc-patches
Committed, thanks Kito. Pan From: Kito Cheng Sent: Thursday, July 27, 2023 6:50 PM To: Li, Pan2 Cc: GCC Patches ; 钟居哲 ; Wang, Yanzhang Subject: Re: [PATCH v1] RISC-V: Remove unnecessary vread_csr/vwrite_csr intrinsic. Ok, thanks:) Pan Li via Gcc-patches mailto:gcc-patches@gcc.gnu.org>> 於

[Bug tree-optimization/53947] [meta-bug] vectorizer missed-optimizations

2023-07-27 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53947 Bug 53947 depends on bug 64031, which changed state. Bug 64031 Summary: (un-)conditional execution state is not preserved by PRE/sink https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64031 What|Removed |Added

[Bug tree-optimization/64031] (un-)conditional execution state is not preserved by PRE/sink

2023-07-27 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64031 Richard Biener changed: What|Removed |Added Target Milestone|--- |14.0 Status|NEW

Fix profile update in tree-ssa-loop-im.cc

2023-07-27 Thread Jan Hubicka via Gcc-patches
Hi, this fixes two bugs in tree-ssa-loop-im.cc. First is that cap probability is not reliable, but it is constructed with adjusted quality. Second is that sometimes the conditional has wrong joiner BB count. This is visible on testsuite/gcc.dg/pr102385.c however the testcase triggers another

[Bug target/110788] Spilling to mask register for GPR vec_duplicate

2023-07-27 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110788 --- Comment #3 from Uroš Bizjak --- (In reply to Richard Biener from comment #0) > I suppose it could also be a missed optimization in REE since I think > the HImode regs should already be zero-extended? No, only SImode moves have implicit zero

Re: [PATCH] tree-optimization/91838 - fix FAIL of g++.dg/opt/pr91838.C

2023-07-27 Thread Richard Biener via Gcc-patches
On Thu, 27 Jul 2023, Jakub Jelinek wrote: > On Thu, Jul 27, 2023 at 12:00:56PM +, Richard Biener wrote: > > The following fixes the lack of simplification of a vector shift > > by an out-of-bounds shift value. For scalars this is done both > > by CCP and VRP but vectors are not handled

[Bug gcov-profile/110827] C++20 coroutines aren't being measured by gcov

2023-07-27 Thread mwd at md5i dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110827 --- Comment #3 from Michael Duggan --- (In reply to Richard Biener from comment #1) > I'm seeing all code properly instrumented. The coverage I see is > > -:1:#include > -:2:#include > -:3: > -:

[Bug c++/110809] ICE: in unify, at cp/pt.cc:25226 with floating-point NTTPs

2023-07-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110809 --- Comment #9 from CVS Commits --- The releases/gcc-13 branch has been updated by Patrick Palka : https://gcc.gnu.org/g:8e811edea309b2097e23cde48ee6fb6467a9094d commit r13-7614-g8e811edea309b2097e23cde48ee6fb6467a9094d Author: Patrick Palka

Re: [PATCH v2] RISC-V: testsuite: Add vector_hw and zvfh_hw checks.

2023-07-27 Thread Robin Dapp via Gcc-patches
> LGTM, I just found this patch still on the list, I mostly tested with > qemu, so I don't think that is a problem before, but I realize it's a > problem when we run on a real board that does not support those > extensions. I think we can skip this one as I needed to introduce vector_hw and

Re: [PATCH 0/5] Recognize Zicond extension

2023-07-27 Thread Jeff Law via Gcc-patches
On 7/27/23 02:43, Xiao Zeng wrote: 2. According to your opinions, I have modified the code, but out of caution for upstream, I conducted a complete regression tests on patch V2, which took some time. I was unable to reply to emails and upload patch V2 in a timely manner. Sorry to have

Re: [PATCH] tree-optimization/91838 - fix FAIL of g++.dg/opt/pr91838.C

2023-07-27 Thread Jakub Jelinek via Gcc-patches
On Thu, Jul 27, 2023 at 01:07:58PM +, Richard Biener wrote: > On Thu, 27 Jul 2023, Jakub Jelinek wrote: > > > On Thu, Jul 27, 2023 at 12:00:56PM +, Richard Biener wrote: > > > The following fixes the lack of simplification of a vector shift > > > by an out-of-bounds shift value. For

Fix profile_count::apply_probability

2023-07-27 Thread Jan Hubicka via Gcc-patches
Hi, profile_count::apply_probability misses check for uninitialized probability which leads to completely random results on applying uninitialized probability to initialized scale. This can make difference when i.e. inlining -fno-guess-branch-probability function to -fguess-branch-probability

[committed] libstdc++: Fix std::format alternate form for floating-point [PR108046]

2023-07-27 Thread Jonathan Wakely via Gcc-patches
Tested x86_64-linux. Pushed to trunk. Backport to gcc-13 to follow. -- >8 -- A decimal point was being added to the end of the string for {:#.0} because the __expc character was not being set, for the _Pres_none presentation type, so __s.find(__expc) didn't the 'e' in "1e+01" and so we created

[Bug c++/110816] Emit initialization code for empty class under -ftrivial-auto-var-init

2023-07-27 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110816 --- Comment #4 from Richard Biener --- (In reply to Jonathan Wakely from comment #3) > (In reply to Andrew Pinski from comment #2) > > The only way to access that byte is to use memcpy or via char. > > -ftrivial-auto-var-init is not designed

Re: [PATCH] tree-optimization/106081 - elide redundant permute

2023-07-27 Thread Richard Biener via Gcc-patches
On Wed, 26 Jul 2023, Jeff Law wrote: > > > On 7/26/23 07:27, Richard Biener via Gcc-patches wrote: > > The following patch makes sure to elide a redundant permute that > > can be merged with existing splats represented as load permutations > > as we now do for non-grouped SLP loads. This is

[Bug tree-optimization/110817] [14 Regression] wrong code with vector compares and vector lowering

2023-07-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110817 --- Comment #6 from Andrew Pinski --- _5 = VEC_COND_EXPR <_9, { 0, 0 }, { -1, -1 }>; _6 = VIEW_CONVERT_EXPR(_5); >From that veclower produces: _36; _36 = BIT_FIELD_REF <_9, 32, 0>; _37 = _36 != 0; _38 = _36 == 0; _39 = (signed

RE: Re: [PATCH v7] RISC-V: Support CALL for RVV floating-point dynamic rounding

2023-07-27 Thread Li, Pan2 via Gcc-patches
> ../../../.././gcc/libstdc++-v3/libsupc++/eh_personality.cc:805:1: internal > compiler error: in insert_insn_on_edge, at cfgrtl.cc:1976. This error comes from assert of insert_insn_on_edge, the edge cannot be ABNORMAL and CRITIAL. Thus, I try to filter out it like gcse.cc:2168 do like below,

[Bug modula2/108121] Failing tests on x86_64-linux-gnu

2023-07-27 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108121 Richard Biener changed: What|Removed |Added Target Milestone|13.2|13.3 --- Comment #10 from Richard

[Bug target/107704] [13/14 Regression] Testsuite regression after recent DCE changes

2023-07-27 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107704 Richard Biener changed: What|Removed |Added Target Milestone|13.2|13.3 --- Comment #4 from Richard

[Bug libstdc++/107815] 20_util/to_chars/float128_c++23.cc FAILs

2023-07-27 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107815 Richard Biener changed: What|Removed |Added Target Milestone|13.2|13.3 --- Comment #21 from Richard

[Bug target/109087] csmith: end of year runtime bug since r13-4839-geef81eefcdc2a581

2023-07-27 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109087 Richard Biener changed: What|Removed |Added Target Milestone|13.2|13.3 --- Comment #20 from Richard

[Bug c++/108422] [13/14 Regression] ICE: base pointer cycle detected since r13-2661-gb57abd072dd319a7

2023-07-27 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108422 Richard Biener changed: What|Removed |Added Target Milestone|13.2|13.3 --- Comment #7 from Richard

[Bug analyzer/107856] gcc.dg/plugin/infoleak-vfio_iommu_type1.c XPASSes

2023-07-27 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107856 Richard Biener changed: What|Removed |Added Target Milestone|13.2|13.3 --- Comment #2 from Richard

[Bug rtl-optimization/108273] Inconsistent dfa state between debug and non-debug

2023-07-27 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108273 Richard Biener changed: What|Removed |Added Target Milestone|13.2|13.3 --- Comment #7 from Richard

[Bug rust/108124] Rust: ASAN issues when tests are run

2023-07-27 Thread rguenth at gcc dot gnu.org via Gcc-rust
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108124 Richard Biener changed: What|Removed |Added Target Milestone|13.2|13.3 --- Comment #4 from Richard

[Bug target/109130] [13/14 Regression] 464.h264ref regressed by 6.5% on a Neoverse-N1 CPU with PGO, LTO, -Ofast and -march=native

2023-07-27 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109130 Richard Biener changed: What|Removed |Added Target Milestone|13.2|13.3 --- Comment #3 from Richard

[Bug libstdc++/110145] 20_util/to_chars/double.cc fails for -m32 -fexcess-precision=standard

2023-07-27 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110145 Richard Biener changed: What|Removed |Added Target Milestone|13.2|13.3 --- Comment #9 from Richard

[Bug tree-optimization/110251] [13/14 Regression] Hang at -O3 on x86_64-linux-gnu

2023-07-27 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110251 Richard Biener changed: What|Removed |Added Target Milestone|13.2|13.3 --- Comment #8 from Richard

[Bug libgcc/109685] [13/14 Regression] Memory leak in `__deregister_frame`

2023-07-27 Thread tneumann at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109685 --- Comment #6 from Thomas Neumann --- > GCC 13.2 is being released, retargeting bugs to GCC 13.3. the bug should be closed as fixed, the bug fix is already in the 13.2 branch. (I do not have permissions to do that, though).

[Bug tree-optimization/110269] [13 Regression] Missed Dead Code Elimination when using __builtin_unreachable since r13-4607-g2dc5d6b1e7e

2023-07-27 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110269 Richard Biener changed: What|Removed |Added Target Milestone|13.2|13.3 --- Comment #5 from Richard

[Bug tree-optimization/110280] [13 Regression] internal compiler error: in const_unop, at fold-const.cc:1884

2023-07-27 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110280 Richard Biener changed: What|Removed |Added Target Milestone|13.2|13.3 --- Comment #15 from Richard

Re: Re: [PATCH V3] RISC-V: Enable basic VLS modes support

2023-07-27 Thread Kito Cheng via Gcc-patches
Hmmm, does it mean we'll have (set (mem) (mem)) after legitimize_move??? Or maybe try to use define_insn_and_split rather than define_split for the (set (mem) (mem)) On Thu, Jul 27, 2023 at 5:50 PM juzhe.zh...@rivai.ai wrote: > > Hi, kito. > I tried to reject mem->mem in this pattern: >

RE: [PATCH v7] RISC-V: Support CALL for RVV floating-point dynamic rounding

2023-07-27 Thread Li, Pan2 via Gcc-patches
> Yes, potentially similar for all the other ifs but I didn't check > all of them. Thanks and sure thing, will clean up this in v8. > if (mode != no_mode && mode != last_mode) > { This comes from after not the emit part as I mentioned, I am not quit familiar with this part, as well as if the

[Bug c++/110824] Gcc crashing on a lambda capture

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

[Bug target/110788] Spilling to mask register for GPR vec_duplicate

2023-07-27 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110788 --- Comment #1 from Hongtao.liu --- I prefer to add an UNSPEC to vpbroadcastm, don't want to mix gpr and kmask too much for vec_duplicate:zero_extend pattern.

Re: [PATCH v7] RISC-V: Support CALL for RVV floating-point dynamic rounding

2023-07-27 Thread Robin Dapp via Gcc-patches
>> Why do we appear to return a different mode here? We already request >> FRM_MODE_DYN_CALL in mode_needed. It looks like in the whole function >> we do not change the mode so we could just always return the incoming >> mode? > > Because we need to emit 2 insn when meet a call. One before the

[Bug tree-optimization/107038] Bogus -Wstringop-overflow in dead code

2023-07-27 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107038 Richard Biener changed: What|Removed |Added Target Milestone|13.2|13.3 --- Comment #10 from Richard

[Bug analyzer/106634] [13/14 Regression] ICE in get_region_for_local with nested function extension since r13-2029-g7e3b45befdbbf1a1

2023-07-27 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106634 Richard Biener changed: What|Removed |Added Target Milestone|13.2|13.3 --- Comment #4 from Richard

[Bug c/107683] [13/14 Regression] ICE in int_fits_type_p, at tree.cc:8044

2023-07-27 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107683 Richard Biener changed: What|Removed |Added Target Milestone|13.2|13.3 --- Comment #3 from Richard

[Bug tree-optimization/106511] [13/14 Regression] New -Werror=maybe-uninitialized since r13-1268-g8c99e307b20c502e

2023-07-27 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106511 Richard Biener changed: What|Removed |Added Target Milestone|13.2|13.3 --- Comment #6 from Richard

  1   2   3   4   >