[ARM] unexpected sizeof() of a complex packed type

2023-11-16 Thread Dmitry Antipov
(The following sample is taken from my LKML post at https://lkml.org/lkml/2023/11/15/213) $ cat t-build-bug.c struct vring_tx_mac { unsigned int d[3]; unsigned int ucode_cmd; } __attribute__((packed)); struct vring_rx_mac { unsigned int d0; unsigned int d1;

[Analyzer] Transform a region 't[i]' to its svalue form ' + (i * element_size)'

2023-11-16 Thread Pierrick Philippe
Hi all, hi David, I am trying to use the analyzer API to transform an element_region (such as 't[1]') to a binop_svalue with an inner region_svalue (such as ' + 4' in case of integers array) for analysis purpose. I managed to do it the other way around (i.e. from a binop_svalue to an

Re: Checks that autotools generated files were re-generated correctly

2023-11-16 Thread Martin Jambor
Hi, On Wed, Nov 15 2023, Mark Wielaard wrote: > Hi! (adding gdb and binutils to the CC) > > On Thu, Nov 09, 2023 at 12:30:59AM +0100, Mark Wielaard wrote: >> On Mon, Nov 06, 2023 at 06:04:48PM +0100, Martin Jambor wrote: >> > I have inherited Martin Liška's buildbot script that checks that all >>

[PATCH] C++: Introduce the extended attribute for asm declarations

2023-11-16 Thread Julian Waters via Gcc
Hi all, This is the beginning of a patch to introduce the extended attribute for asm declarations proposed in https://gcc.gnu.org/pipermail/gcc-patches/2023-November/636563.html. I will need some reviewer help in implementing this patch, as I am not very familiar with gcc's internals. The

gcc-11-20231116 is now available

2023-11-16 Thread GCC Administrator via Gcc
Snapshot gcc-11-20231116 is now available on https://gcc.gnu.org/pub/gcc/snapshots/11-20231116/ and on various mirrors, see https://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

[Bug sanitizer/112563] [14 regression] libsanitizer doesn't assemble with Solaris/sparc as

2023-11-16 Thread ro at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112563 Rainer Orth changed: What|Removed |Added Target Milestone|--- |14.0

[Bug sanitizer/112563] New: [14 regression] libsanitizer doesn't assemble with Solaris/sparc as

2023-11-16 Thread ro at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112563 Bug ID: 112563 Summary: [14 regression] libsanitizer doesn't assemble with Solaris/sparc as Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal

[Bug sanitizer/112562] [14 regression] asan_interceptors_memintrinsics.cpp doesn't assemble with Solaris/x86 as

2023-11-16 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112562 --- Comment #1 from Jakub Jelinek --- find -type f | xargs grep %function ./interception/interception.h: ".type " SANITIZER_STRINGIFY(TRAMPOLINE(func)) ", %function\n" \ ./builtins/assembly.h:#define SYMBOL_IS_FUNC(name) .type

[Bug libstdc++/100903] Bogus "zero as null pointer constant" warning

2023-11-16 Thread marc.mutz at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100903 Marc Mutz changed: What|Removed |Added CC||marc.mutz at hotmail dot com --- Comment

[Bug tree-optimization/112374] [14 Regression] Failed bootstrap with `--with-arch=skylake-avx512 --with-cpu=skylake-avx512`, causes a comparison failure since r14-5076-g01c18f58d37865d5f3bbe93e666183b

2023-11-16 Thread rdapp at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112374 --- Comment #46 from Robin Dapp --- (In reply to Jakub Jelinek from comment #43) > Now, the patch changed it to allow one extra use in certain cases (but I > think only on use_stmt, because there should be one use on use_stmt and if > there is

Re: [PATCH 6/6]AArch64: only emit mismatch error when features would be disabled.

2023-11-16 Thread Richard Earnshaw
On 15/11/2023 17:08, Tamar Christina wrote: Hi All, At the moment we emit a warning whenever you specify both -march and -mcpu and the architecture of them differ. The idea originally was that the user may not be aware of this change. However this has a few problems: 1. Architecture

Re: [PATCH]AArch64: only discount MLA for vector and scalar statements

2023-11-16 Thread Richard Sandiford
Tamar Christina writes: > Hi All, > > In testcases gcc.dg/tree-ssa/slsr-19.c and gcc.dg/tree-ssa/slsr-20.c we have > a > fairly simple computation. On the current generic costing we generate: > > f: > add w0, w0, 2 > maddw1, w0, w1, w1 > lsl w0, w1, 1 >

[Bug libstdc++/112564] New: std::format(std::thread::id) is incorrectly left-aligned

2023-11-16 Thread blubban at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112564 Bug ID: 112564 Summary: std::format(std::thread::id) is incorrectly left-aligned Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal

RE: [PATCH 7/21]middle-end: update IV update code to support early breaks and arbitrary exits

2023-11-16 Thread Richard Biener
On Wed, 15 Nov 2023, Tamar Christina wrote: > > -Original Message- > > From: Richard Biener > > Sent: Wednesday, November 15, 2023 1:23 PM > > To: Tamar Christina > > Cc: gcc-patches@gcc.gnu.org; nd ; j...@ventanamicro.com > > Subject: RE: [PATCH 7/21]middle-end: update IV update code

Re: [PATCH] C99 testsuite readiness: Cleanup of execute tests

2023-11-16 Thread Jakub Jelinek
On Thu, Nov 16, 2023 at 11:58:42AM +0100, Thomas Schwinge wrote: > > -main () > > +void > > +main (int) > > { > >struct tiny x[3]; > >x[0].c = 10; > > The nvptx back end doesn't like that one: > > PASS: gcc.c-torture/execute/931004-13.c -O0 (test for excess errors) >

Re: [PATCH] C99 testsuite readiness: Cleanup of execute tests

2023-11-16 Thread Florian Weimer
* Thomas Schwinge: > Hi Florian! > > Thanks for all your ongoing clean-up work! > > On 2023-11-10T23:07:55+0100, Florian Weimer wrote: >> This change updates the gcc.c-torture/execute/ to avoid obsolete >> language constructs. In the changed tests, use of the features >> appears to be

[PING][PATCH 2/2] arm: Add support for MVE Tail-Predicated Low Overhead Loops

2023-11-16 Thread Stamatis Markianos-Wright
Pinging back to the top of reviewers' inboxes due to worry about Stage 1 End in a few days :) See the last email for the latest version of the 2/2 patch. The 1/2 patch is A-Ok from Kyrill's earlier target-backend review. On 10/11/2023 12:41, Stamatis Markianos-Wright wrote: On 06/11/2023

[Bug target/112478] riscv: asm clobbers not honored

2023-11-16 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112478 --- Comment #9 from CVS Commits --- The master branch has been updated by Kito Cheng : https://gcc.gnu.org/g:defa8681d951c6d6c43c71e3636ce4db9de04a28 commit r14-5526-gdefa8681d951c6d6c43c71e3636ce4db9de04a28 Author: Kito Cheng Date: Tue

Re: [PATCH] RISC-V: Save/restore ra register correctly [PR112478]

2023-11-16 Thread Kito Cheng
Committed, thanks for the review and test :) On Thu, Nov 16, 2023 at 7:19 AM Christoph Müllner wrote: > > On Tue, Nov 14, 2023 at 3:15 PM Kito Cheng wrote: > > > > We set ra to fixed register now, but we still need to save/restore that at > > prologue/epilogue if that has used. > > So before

Re: [PATCH] C99 testsuite readiness: Cleanup of execute tests

2023-11-16 Thread Florian Weimer
* Jakub Jelinek: > So, I guess void main (int) could be ok in some implementations, but I don't > think that is the case of our. Florian, didn't you mean > int > main (void) > or > int > main () > instead? Exactly, it was a silly mistake. > Note, I'm using > int > main () > { > ... > } > in

[Bug sanitizer/112562] [14 regression] asan_interceptors_memintrinsics.cpp doesn't assemble with Solaris/x86 as

2023-11-16 Thread ro at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112562 Rainer Orth changed: What|Removed |Added Target Milestone|--- |14.0

[Bug sanitizer/112562] [14 regression] asan_interceptors_memintrinsics.cpp doesn't assemble with Solaris/x86 as

2023-11-16 Thread ro at CeBiTec dot Uni-Bielefeld.DE via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112562 --- Comment #2 from ro at CeBiTec dot Uni-Bielefeld.DE --- > --- Comment #1 from Jakub Jelinek --- > find -type f | xargs grep %function > ./interception/interception.h: ".type " > SANITIZER_STRINGIFY(TRAMPOLINE(func)) ", %function\n"

[Bug target/112532] [14 Regression] ICE: in extract_insn, at recog.cc:2804 (unrecognizable insn: vec_duplicate:V4HI) with -O -msse4 since r14-5388-g2794d510b979be

2023-11-16 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112532 --- Comment #6 from CVS Commits --- The master branch has been updated by hongtao Liu : https://gcc.gnu.org/g:e36d5f424a0dcb984620a172c73da989f215dc42 commit r14-5525-ge36d5f424a0dcb984620a172c73da989f215dc42 Author: liuhongt Date: Wed Nov

[Bug target/112532] [14 Regression] ICE: in extract_insn, at recog.cc:2804 (unrecognizable insn: vec_duplicate:V4HI) with -O -msse4 since r14-5388-g2794d510b979be

2023-11-16 Thread liuhongt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112532 liuhongt at gcc dot gnu.org changed: What|Removed |Added Resolution|--- |FIXED

[V2 PATCH] Simplify vector ((VCE (a cmp b ? -1 : 0)) < 0) ? c : d to just (VCE ((a cmp b) ? (VCE c) : (VCE d))).

2023-11-16 Thread liuhongt
Update in V2: 1) Add some comments before the pattern. 2) Remove ? from view_convert. Bootstrapped and regtested on x86_64-pc-linux-gnu{-m32,}. Ok for trunk? When I'm working on PR112443, I notice there's some misoptimizations: after we fold _mm{,256}_blendv_epi8/pd/ps into gimple, the backend

Re: [PATCH 2/21]middle-end testsuite: Add tests for early break vectorization

2023-11-16 Thread Richard Biener
On Tue, Nov 7, 2023 at 10:53 AM Richard Biener wrote: > > On Mon, 6 Nov 2023, Tamar Christina wrote: > > > Hi All, > > > > This adds new test to check for all the early break functionality. > > It includes a number of codegen and runtime tests checking the values at > > different needles in the

Re: [PATCH v2] LoongArch: Remove redundant barrier instructions before LL-SC loops

2023-11-16 Thread Xi Ruoyao
On Thu, 2023-11-16 at 09:18 +0800, chenglulu wrote: > > 在 2023/11/15 下午7:38, Xi Ruoyao 写道: > > Pushed r14-5486. > > > > /* snip */ > > > > > > * gcc.target/loongarch/cas-acquire.c: New test. > > This test fails with GCC 12/13 on LA664, and it indicates a > > correctness > > issue.  May

Re: [PATCH] C99 testsuite readiness: Cleanup of execute tests

2023-11-16 Thread Thomas Schwinge
Hi Florian! Thanks for all your ongoing clean-up work! On 2023-11-10T23:07:55+0100, Florian Weimer wrote: > This change updates the gcc.c-torture/execute/ to avoid obsolete > language constructs. In the changed tests, use of the features > appears to be accidental, and updating allows the

RE: [PATCH 7/21]middle-end: update IV update code to support early breaks and arbitrary exits

2023-11-16 Thread Tamar Christina
> -Original Message- > From: Richard Biener > Sent: Thursday, November 16, 2023 10:40 AM > To: Tamar Christina > Cc: gcc-patches@gcc.gnu.org; nd ; j...@ventanamicro.com > Subject: RE: [PATCH 7/21]middle-end: update IV update code to support early > breaks and arbitrary exits > > On Wed,

RE: [PATCH 8/21]middle-end: update vectorizable_live_reduction with support for multiple exits and different exits

2023-11-16 Thread Richard Biener
On Wed, 15 Nov 2023, Tamar Christina wrote: > > > > -Original Message- > > From: Richard Biener > > Sent: Wednesday, November 15, 2023 1:42 PM > > To: Tamar Christina > > Cc: gcc-patches@gcc.gnu.org; nd ; j...@ventanamicro.com > > Subject: RE: [PATCH 8/21]middle-end: update

RE: [PATCH 7/21]middle-end: update IV update code to support early breaks and arbitrary exits

2023-11-16 Thread Richard Biener
On Thu, 16 Nov 2023, Tamar Christina wrote: > > -Original Message- > > From: Richard Biener > > Sent: Thursday, November 16, 2023 10:40 AM > > To: Tamar Christina > > Cc: gcc-patches@gcc.gnu.org; nd ; j...@ventanamicro.com > > Subject: RE: [PATCH 7/21]middle-end: update IV update code

Re: [PATCH v2] RISC-V: Implement target attribute

2023-11-16 Thread Kito Cheng
Committed with changelog update :P Thanks for the review. On Thu, Nov 16, 2023 at 7:59 AM Christoph Müllner wrote: > > On Tue, Nov 14, 2023 at 3:15 PM Kito Cheng wrote: > > > > The target attribute which proposed in [1], target attribute allow user > > to specify a local setting per-function

[PATCH] libsanitizer: adjust triplet pattern to allow loongarch64-linux* targets.

2023-11-16 Thread Yang Yujie
libsanitizer/ChangeLog: * configure.tgt: allow loongarch64-linux-*. --- libsanitizer/configure.tgt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsanitizer/configure.tgt b/libsanitizer/configure.tgt index d24566a2343..5af524cb271 100644 ---

[committed 2/2] libstdc++: Only declare feature test macros in standard headers

2023-11-16 Thread Jonathan Wakely
Tested x86_64-linux. Pushed to trunk. -- >8 -- This change moves the definitions of feature test macros (or strictly speaking, the requests for to define them) so that only standard headers define them. For example, will no longer define macros related to std::shared_ptr, only and will

Re: [PATCH] libsanitizer: adjust triplet pattern to allow loongarch64-linux* targets.

2023-11-16 Thread Jakub Jelinek
On Thu, Nov 16, 2023 at 04:01:13PM +0800, Yang Yujie wrote: > libsanitizer/ChangeLog: > > * configure.tgt: allow loongarch64-linux-*. ${target} in there shouldn't be what user specified, but what config.sub canonicalized it to. And ./config.sub x86_64-linux; ./config.sub loongarch64-linux

[committed 1/2] libstdc++: Test for feature test macros more accurately

2023-11-16 Thread Jonathan Wakely
Tested x86_64-linux. Pushed to trunk. -- >8 -- Tests which check for feature test macros should use the no_pch option, so that we're really testing for the definition being in the intended header, and not just testing that it's present in (which includes all the standard headers and so defines

[Bug libstdc++/111667] [C++23] Implement P1132R8, out_ptr - a scalable output pointer abstraction

2023-11-16 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111667 --- Comment #3 from CVS Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:c7f6537db94f7c6320a5a8ecaa387c9b9ce1f0ac commit r14-5524-gc7f6537db94f7c6320a5a8ecaa387c9b9ce1f0ac Author: Jonathan Wakely

[PATCH] LoongArch: Increase cost of vector aligned store/load.

2023-11-16 Thread Jiahao Xu
Based on SPEC2017 performance evaluation results, it's better to make them equal to the cost of unaligned store/load so as to avoid odd alignment peeling. gcc/ChangeLog: * config/loongarch/loongarch.cc (loongarch_builtin_vectorization_cost): Adjust. diff --git

Re: [PATCH] aarch64: costs: update for TARGET_CSSC

2023-11-16 Thread Richard Earnshaw
On 16/11/2023 06:15, Philipp Tomsich wrote: With the addition of CSSC (Common Short Sequence Compression) instructions, a number of idioms match to single instructions (e.g., abs) that previously expanded to multi-instruction sequences. This recognizes (some of) those idioms that are now

RE: [PATCH] aarch64: costs: update for TARGET_CSSC

2023-11-16 Thread Kyrylo Tkachov
> -Original Message- > From: Richard Earnshaw > Sent: Thursday, November 16, 2023 8:53 AM > To: Philipp Tomsich ; gcc-patches@gcc.gnu.org > Cc: Kyrylo Tkachov > Subject: Re: [PATCH] aarch64: costs: update for TARGET_CSSC > > > > On 16/11/2023 06:15, Philipp Tomsich wrote: > > With

[Bug tree-optimization/112374] [14 Regression] Failed bootstrap with `--with-arch=skylake-avx512 --with-cpu=skylake-avx512`, causes a comparison failure since r14-5076-g01c18f58d37865d5f3bbe93e666183b

2023-11-16 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112374 --- Comment #37 from Jakub Jelinek --- (In reply to Robin Dapp from comment #35) > What does get rid of the comparison failures in the three last posted > reduced examples is: > > gcall *call = dyn_cast (op_use_stmt); >

Re: [PATCH 4/6]AArch64: Add new generic-armv9-a CPU and make it the default for Armv9

2023-11-16 Thread Richard Earnshaw
On 15/11/2023 17:08, Tamar Christina wrote: Hi All, This patch adds a new generic scheduling model "generic-armv9-a" and makes it the default for all Armv9 architectures. -mcpu=generic and -mtune=generic is kept around for those that really want the deprecated cost model. Bootstrapped

[Bug target/112547] 9% exec time regression of 462.libquantum SPEC on AMD zen4 CPU

2023-11-16 Thread fkastl at suse dot cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112547 --- Comment #5 from Filip Kastl --- Compile options are: -O2 -g -flto=128 Configure options of GCC are: --enable-languages=c,c++,fortran,rust,m2 --disable-bootstrap --disable-libsanitizer --disable-multilib --enable-checking=release

[PATCH V2] tree-optimization: Add register pressure heuristics and appropriate use of profile data

2023-11-16 Thread Ajit Agarwal
Hello Richard: This patch does decision making in code sinking considers the following decision. High register pressure region is true if the following criteria satisfied. a) If liveout (early_bb) <= livein (early_bb). b) if liveout (best_bb) <= liveout (early_bb). c) !best_bb->count >=

RE: [PATCH 6/6]AArch64: only emit mismatch error when features would be disabled.

2023-11-16 Thread Tamar Christina
> -Original Message- > From: Richard Earnshaw > Sent: Thursday, November 16, 2023 9:27 AM > To: Tamar Christina ; gcc-patches@gcc.gnu.org > Cc: nd ; Richard Earnshaw ; > Marcus Shawcroft ; Kyrylo Tkachov > ; Richard Sandiford > > Subject: Re: [PATCH 6/6]AArch64: only emit mismatch error

[Bug tree-optimization/112374] [14 Regression] Failed bootstrap with `--with-arch=skylake-avx512 --with-cpu=skylake-avx512`, causes a comparison failure since r14-5076-g01c18f58d37865d5f3bbe93e666183b

2023-11-16 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112374 --- Comment #41 from Richard Biener --- (In reply to Jakub Jelinek from comment #39) > Created attachment 56601 [details] > gcc14-pr112374.patch > > So the following then? LGTM. Refactoring to more explicitly handle debug stmts like with

RE: [PATCH 6/6]AArch64: only emit mismatch error when features would be disabled.

2023-11-16 Thread Tamar Christina
> -Original Message- > From: Richard Earnshaw > Sent: Thursday, November 16, 2023 9:42 AM > To: Tamar Christina ; gcc-patches@gcc.gnu.org > Cc: nd ; Richard Earnshaw ; > Marcus Shawcroft ; Kyrylo Tkachov > ; Richard Sandiford > > Subject: Re: [PATCH 6/6]AArch64: only emit mismatch error

[Bug tree-optimization/112374] [14 Regression] Failed bootstrap with `--with-arch=skylake-avx512 --with-cpu=skylake-avx512`, causes a comparison failure since r14-5076-g01c18f58d37865d5f3bbe93e666183b

2023-11-16 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112374 --- Comment #43 from Jakub Jelinek --- (In reply to Robin Dapp from comment #40) > (In reply to Jakub Jelinek from comment #37) > [..] > > > The above isn't complete, so one just has to guess what you mean outside of > > that, but the above

[committed 1/2] libstdc++: Adjust feature test in and

2023-11-16 Thread Jonathan Wakely
Tested x86_64-linux. Pushed to trunk. -- >8 -- We don't need any library concepts to define the constraints for rvalue stream overloads, only compiler support. So change the test from using __cpp_lib_concepts to __cpp_concepts >= 201907L. libstdc++-v3/ChangeLog: * include/std/istream

[committed 2/2] libstdc++: Use 202100L as feature test check for C++23

2023-11-16 Thread Jonathan Wakely
Tested x86_64-linux. Pushed to trunk. -- >8 -- I noticed that our C++23 features were not being defined when using Clang 16 with -std=c++2b, because it only defines __cplusplus=202101L but uses 202302L since my r14-3252-g0c316669b092fb change. This changes to use 202100 instead of the final

[Bug tree-optimization/112325] Missed vectorization of reduction after unrolling

2023-11-16 Thread liuhongt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112325 liuhongt at gcc dot gnu.org changed: What|Removed |Added CC||liuhongt at gcc dot

[Bug target/112561] New: [14 Regression] Segfault only on RISC-V vector

2023-11-16 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112561 Bug ID: 112561 Summary: [14 Regression] Segfault only on RISC-V vector Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[committed] libstdc++: Implement std::out_ptr and std::inout_ptr for C++23 [PR111667]

2023-11-16 Thread Jonathan Wakely
Tested x86_64-linux. Pushe to trunk. -- >8 -- This implements that changes from P1132R8, including optimized paths for std::shared_ptr and std::unique_ptr. For std::shared_ptr we pre-allocate a new control block in the std::out_ptr_t constructor so that the destructor is non-throwing. This

[Bug libstdc++/111667] [C++23] Implement P1132R8, out_ptr - a scalable output pointer abstraction

2023-11-16 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111667 Jonathan Wakely changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug libstdc++/106749] Implement C++23 library features

2023-11-16 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106749 Bug 106749 depends on bug 111667, which changed state. Bug 111667 Summary: [C++23] Implement P1132R8, out_ptr - a scalable output pointer abstraction https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111667 What|Removed

Re: [PATCH] aarch64: costs: update for TARGET_CSSC

2023-11-16 Thread Philipp Tomsich
Thanks for the quick turnaround on the review. I'll send a v2 after the mcpu=ampere1b change has landed, as the extra-costs change will have an interaction with that change (due to the extra fields in the structure). Philipp. On Thu, 16 Nov 2023 at 15:12, Kyrylo Tkachov wrote: > > > > >

Re: [PATCH 6/6]AArch64: only emit mismatch error when features would be disabled.

2023-11-16 Thread Richard Earnshaw
On 15/11/2023 17:08, Tamar Christina wrote: Hi All, At the moment we emit a warning whenever you specify both -march and -mcpu and the architecture of them differ. The idea originally was that the user may not be aware of this change. However this has a few problems: 1. Architecture

[Bug tree-optimization/112374] [14 Regression] Failed bootstrap with `--with-arch=skylake-avx512 --with-cpu=skylake-avx512`, causes a comparison failure since r14-5076-g01c18f58d37865d5f3bbe93e666183b

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

[Bug tree-optimization/112374] [14 Regression] Failed bootstrap with `--with-arch=skylake-avx512 --with-cpu=skylake-avx512`, causes a comparison failure since r14-5076-g01c18f58d37865d5f3bbe93e666183b

2023-11-16 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112374 --- Comment #44 from Jakub Jelinek --- (In reply to Andrew Pinski from comment #42) > Just one suggestion for the testcases, add: > /* { dg-additional-options "-march=armv9-a" { target aarch64*-*-* } } */ > > So it at least it will be tested

Re: [PATCH V11] : tree-ssa-sink: Improve code sinking pass

2023-11-16 Thread Richard Biener
On Mon, Oct 30, 2023 at 1:10 PM Ajit Agarwal wrote: > > Hello Richard: > > Currently, code sinking will sink code at the use points with loop having same > nesting depth. The following patch improves code sinking by placing the sunk > code in immediate dominator with same loop nest depth. > >

[Bug target/112561] [14 Regression] Segfault only on RISC-V vector

2023-11-16 Thread juzhe.zhong at rivai dot ai via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112561 JuzheZhong changed: What|Removed |Added CC||juzhe.zhong at rivai dot ai --- Comment

Re: [PATCH 6/6]AArch64: only emit mismatch error when features would be disabled.

2023-11-16 Thread Richard Earnshaw
On 16/11/2023 09:33, Tamar Christina wrote: -Original Message- From: Richard Earnshaw Sent: Thursday, November 16, 2023 9:27 AM To: Tamar Christina ; gcc-patches@gcc.gnu.org Cc: nd ; Richard Earnshaw ; Marcus Shawcroft ; Kyrylo Tkachov ; Richard Sandiford Subject: Re: [PATCH

[PATCH] libphobos: Fix static build.

2023-11-16 Thread Yang Yujie
This is a temporary solution to https://forum.dlang.org/thread/bug-1226...@https.d.puremagic.com%2Fissues%2F libphobos/ChangeLog: * libdruntime/gcc/sections/elf.d: Removes reference to __tls_get_addr for static libdruntime. --- libphobos/libdruntime/gcc/sections/elf.d | 4 +++-

Re: Re: [PATCH] libsanitizer: adjust triplet pattern to allow loongarch64-linux* targets.

2023-11-16 Thread Yang Yujie
> ${target} in there shouldn't be what user specified, but what config.sub > canonicalized it to. > And > ./config.sub x86_64-linux; ./config.sub loongarch64-linux > x86_64-pc-linux-gnu > loongarch64-unknown-linux-gnu > so I really don't see why you want to change it. OK, I see. Thanks. Yujie

[Bug tree-optimization/112325] Missed vectorization of reduction after unrolling

2023-11-16 Thread liuhongt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112325 --- Comment #4 from liuhongt at gcc dot gnu.org --- (In reply to liuhongt from comment #3) > BB vectorizer relies on the backend support of .REDUC_PLUS for reduction, > but loop vectorizer can manually do reduction. That's why it's not >

[PATCH 1/2] LoongArch: Increase cost of vector aligned store/load.

2023-11-16 Thread Jiahao Xu
Based on SPEC2017 performance evaluation results, it's better to make them equal to the cost of unaligned store/load so as to avoid odd alignment peeling. gcc/ChangeLog: * config/loongarch/loongarch.cc (loongarch_builtin_vectorization_cost): Adjust. diff --git

[Bug tree-optimization/112374] [14 Regression] Failed bootstrap with `--with-arch=skylake-avx512 --with-cpu=skylake-avx512`, causes a comparison failure since r14-5076-g01c18f58d37865d5f3bbe93e666183b

2023-11-16 Thread rdapp at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112374 --- Comment #34 from Robin Dapp --- (In reply to Jakub Jelinek from comment #29) > --- gcc/tree-vect-loop.cc.jj 2023-11-14 10:35:52.0 +0100 > +++ gcc/tree-vect-loop.cc 2023-11-15 22:42:32.782007408 +0100 > @@ -4105,9 +4105,9 @@

[Bug tree-optimization/112374] [14 Regression] Failed bootstrap with `--with-arch=skylake-avx512 --with-cpu=skylake-avx512`, causes a comparison failure since r14-5076-g01c18f58d37865d5f3bbe93e666183b

2023-11-16 Thread rdapp at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112374 --- Comment #35 from Robin Dapp --- What does get rid of the comparison failures in the three last posted reduced examples is: gcall *call = dyn_cast (op_use_stmt); internal_fn ifn; if (call &&

[Bug tree-optimization/112374] [14 Regression] Failed bootstrap with `--with-arch=skylake-avx512 --with-cpu=skylake-avx512`, causes a comparison failure since r14-5076-g01c18f58d37865d5f3bbe93e666183b

2023-11-16 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112374 --- Comment #36 from Jakub Jelinek --- Actually, while i386-expand.o compilation fails with -fcompare-debug even after the above patch, seems that is only because of the discriminator issue, the *.gkd difference is then: --- i386-expand.cc.gkd

Re: [PATCH 2/6]AArch64: Remove special handling of generic cpu.

2023-11-16 Thread Richard Earnshaw
On 15/11/2023 17:07, Tamar Christina wrote: Hi All, In anticipation of adding new generic turning values this removes the hardcoding of the "generic" CPU and instead just specifies it as a normal CPU. No change in behavior is expected. Bootstrapped Regtested on aarch64-none-linux-gnu and

[Bug tree-optimization/112325] Missed vectorization of reduction after unrolling

2023-11-16 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112325 --- Comment #5 from Richard Biener --- Yes, as I said in comment#2. Note I specifically ended up not open-coding the reduction because of concerns of efficiency. So a target should only provide reduc_*_scal patterns when they are more

Re: [PATCH 3/6]AArch64: Add new generic-armv8-a CPU and make it the default.

2023-11-16 Thread Richard Earnshaw
On 15/11/2023 17:07, Tamar Christina wrote: Hi All, This patch adds a new generic scheduling model "generic-armv8-a" and makes it the default for all Armv8 architectures. -mcpu=generic and -mtune=generic is kept around for those that really want the deprecated cost model. Rather than

[Bug tree-optimization/112374] [14 Regression] Failed bootstrap with `--with-arch=skylake-avx512 --with-cpu=skylake-avx512`, causes a comparison failure since r14-5076-g01c18f58d37865d5f3bbe93e666183b

2023-11-16 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112374 --- Comment #38 from Jakub Jelinek --- And the #c29 change actually seems to fix all the testcases here with -fcompare-debug -gno-statement-frontiers: $ ~/src/gcc/obj48/gcc/xg++ -B ~/src/gcc/obj48/gcc/ -fcompare-debug -gno-statement-frontiers

[Bug tree-optimization/112374] [14 Regression] Failed bootstrap with `--with-arch=skylake-avx512 --with-cpu=skylake-avx512`, causes a comparison failure since r14-5076-g01c18f58d37865d5f3bbe93e666183b

2023-11-16 Thread rdapp at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112374 --- Comment #40 from Robin Dapp --- (In reply to Jakub Jelinek from comment #37) [..] > The above isn't complete, so one just has to guess what you mean outside of > that, but the above doesn't seem to be correct. There are many internal >

[Bug tree-optimization/112374] [14 Regression] Failed bootstrap with `--with-arch=skylake-avx512 --with-cpu=skylake-avx512`, causes a comparison failure since r14-5076-g01c18f58d37865d5f3bbe93e666183b

2023-11-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112374 --- Comment #42 from Andrew Pinski --- Just one suggestion for the testcases, add: /* { dg-additional-options "-march=armv9-a" { target aarch64*-*-* } } */ So it at least it will be tested on another target.

[Bug tree-optimization/112374] [14 Regression] Failed bootstrap with `--with-arch=skylake-avx512 --with-cpu=skylake-avx512`, causes a comparison failure since r14-5076-g01c18f58d37865d5f3bbe93e666183b

2023-11-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112374 --- Comment #45 from Andrew Pinski --- (In reply to Jakub Jelinek from comment #44) > (In reply to Andrew Pinski from comment #42) > > Just one suggestion for the testcases, add: > > /* { dg-additional-options "-march=armv9-a" { target

[Bug sanitizer/112562] New: [14 regression] asan_interceptors_memintrinsics.cpp doesn't assemble with Solaris/x86 as

2023-11-16 Thread ro at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112562 Bug ID: 112562 Summary: [14 regression] asan_interceptors_memintrinsics.cpp doesn't assemble with Solaris/x86 as Product: gcc Version: 14.0 Status: UNCONFIRMED

[PATCH 3/5] LoongArch: Take the advantage of -mdiv32 if it's enabled

2023-11-16 Thread Xi Ruoyao
With -mdiv32, we can assume div.w[u] and mod.w[u] works on low 32 bits of a 64-bit GPR even if it's not sign-extended. gcc/ChangeLog: * config/loongarch/loongarch.md (DIV): New mode iterator. (3): Don't expand if TARGET_DIV32. (di3_fake): Disable if TARGET_DIV32.

[PATCH 0/5] LoongArch: Initial LA664 support

2023-11-16 Thread Xi Ruoyao
Loongson 3A6000 processor will be shipped to general users in this month and it features 4 cores with the new LA664 micro architecture. Here is some changes from LA464: 1. The 32-bit division instruction now ignores the high 32 bits of the input registers. This is enumerated via CPUCFG word

[PATCH 1/5] LoongArch: Switch loongarch-def to C++

2023-11-16 Thread Xi Ruoyao
We'll use HOST_WIDE_INT in LoongArch static properties in following patches. Switch loongarch-def from C to C++ to make it possible. To keep the same readability as C99 designated initializers, create a std::array like data structure with position setter function, and add field setter functions

[PATCH 5/5] LoongArch: Add -march=la664 and -mtune=la664

2023-11-16 Thread Xi Ruoyao
Allow using -march=la664 and -mtune=la664. -march=la664 implies -mdiv32 and -mld-seq-sa. -mtune=la664 is currently same as -mtune=la464 and it may need an update later. gcc/ChangeLog: * config/loongarch/genopts/loongarch-strings: Add la664 as STR_CPU_LA664. *

[PATCH 4/5] LoongArch: Don't emit dbar 0x700 if -mld-seq-sa

2023-11-16 Thread Xi Ruoyao
This option (CPUCFG word 0x3 bit 23) means "the hardware guarantee that two loads on the same address won't be reordered with each other". Thus we can omit the "load-load" barrier dbar 0x700. This is only a micro-optimization because dbar 0x700 is already treated as nop if the hardware supports

[PATCH 2/5] LoongArch: genopts: Add infrastructure to generate code for new features in ISA evolution

2023-11-16 Thread Xi Ruoyao
LoongArch v1.10 introduced the concept of ISA evolution. During ISA evolution, many independent features can be added and enumerated via CPUCFG. Add a data file into genopts storing the CPUCFG word, bit, the name of the command line option controlling if this feature should be used for

RE: [PATCH 7/21]middle-end: update IV update code to support early breaks and arbitrary exits

2023-11-16 Thread Tamar Christina
> > > > > > > > > > > > Perhaps I'm missing something here? > > > > > > > > > > OK, so I refreshed my mind of what > > > > > vect_update_ivs_after_vectorizer > > > does. > > > > > > > > > > I still do not understand the (complexity of the) patch. > > > > > Basically the function computes the new

RE: [PATCH 7/21]middle-end: update IV update code to support early breaks and arbitrary exits

2023-11-16 Thread Richard Biener
On Thu, 16 Nov 2023, Tamar Christina wrote: > > > > > > > > > > > > > > Perhaps I'm missing something here? > > > > > > > > > > > > OK, so I refreshed my mind of what > > > > > > vect_update_ivs_after_vectorizer > > > > does. > > > > > > > > > > > > I still do not understand the (complexity of

[pushed] diagnostics: make m_lang_mask private

2023-11-16 Thread David Malcolm
No functional change intended. Successfully bootstrapped & regrtested on x86_64-pc-linux-gnu. Pushed to trunk as r14-5530-g4547c271c455dc. gcc/ChangeLog: * diagnostic.cc (diagnostic_context::set_option_hooks): Add "lang_mask" param. * diagnostic.h

[Bug driver/108865] gcc on Windows fails with Unicode path to source file

2023-11-16 Thread costas.argyris at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108865 --- Comment #42 from Costas Argyris --- Looks like what is being requested here is a windows-host-specific configuration option similar to the existing --disable-win32-registry, like for example --disable-win32-utf8-manifest with its

[PATCH 1/2] libstdc++: Atomic wait/notify ABI stabilization

2023-11-16 Thread Jonathan Wakely
From: Thomas Rodgers These two patches were written by Tom earlier this year, before he left Red Hat. We should finish reviewing them for GCC 14 (and probably squash them into one?) Tom, you mentioned further work that changes the __platform_wait_t* to uintptr_t, is that ready, or likely to be

[PATCH 2/2] libstdc++: Pass __wait_args to internal API by const pointer

2023-11-16 Thread Jonathan Wakely
From: Thomas Rodgers Tested x86_64-linux, testing underway on powerpc-aix and sparc-solaris. -- >8 -- This change splits the __wait_args data members to a new struct __wait_args_base and then passes that type by const pointer to the low level implementation functions. libstdc++-v3/ChangeLog:

[Bug target/111170] [13/14 regression] Malformed manifest does not allow to run gcc on Windows XP (Accessing a corrupted shared library) since r13-6552-gd11e088210a551

2023-11-16 Thread costas.argyris at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70 --- Comment #7 from Costas Argyris --- Some ideas on how this could be implemented in case someone wants to try and fix this sooner than me: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108865#c42

[PATCH COMMITTED] gcc.c-torture/execute/931004-13.c: Fix declaration of main

2023-11-16 Thread Florian Weimer
gcc/testsuite/ * gcc.c-torture/execute/931004-13.c (main): Fix mistakenly swapped int/void types. --- gcc/testsuite/gcc.c-torture/execute/931004-13.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/gcc.c-torture/execute/931004-13.c

[Bug target/112567] [14 regression] ICE in RTL pass: split2: Segmentation fault

2023-11-16 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112567 David Binderman changed: What|Removed |Added CC||dcb314 at hotmail dot com ---

[Bug target/112568] [14 Regression] Miscompilation of radeonsi (mesa) with -march=raptorlake (-mavx) since r14-5355-g3cd3a09b3f91a1

2023-11-16 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112568 Sam James changed: What|Removed |Added CC||sjames at gcc dot gnu.org --- Comment #4

[Bug debug/112565] New: Abnormal Jump in Execution using 'stepi' Command in GDB under O2 optimization

2023-11-16 Thread iamanonymous.cs at gmail dot com via Gcc-bugs
) = When using the 'stepi' command in GDB, an abnormal jump in the execution occurs when reaching line 7 of the code. The execution unexpectedly jumps to line 13. $ gcc --version gcc (GCC) 14.0.0 20231116 (experimental) Copyright (C) 2023 Free Software Foundation, Inc. This is free software

[Bug debug/112565] Abnormal Jump in Execution using 'stepi' Command in GDB under O2 optimization

2023-11-16 Thread iamanonymous.cs at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112565 --- Comment #2 from Anonymous --- (In reply to Tom de Vries from comment #1) > (In reply to Anonymous from comment #0) > > Tom de Vries suggests that this issue may be attributed to a GCC > > optimization bug. > > I do not. Thanks for the

[Bug tree-optimization/111878] [14 Regression] ICE: in get_loop_exit_edges, at cfgloop.cc:1204 with -O3 -fgraphite-identity -fsave-optimization-record/-fdump-tree-graphite/-fopt-info since r14-4708-gd

2023-11-16 Thread tnfchris at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111878 Tamar Christina changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug tree-optimization/112566] New: Some ctz/popcount/parity/ffs optimizations

2023-11-16 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112566 Bug ID: 112566 Summary: Some ctz/popcount/parity/ffs optimizations Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

RE: [PATCH 7/21]middle-end: update IV update code to support early breaks and arbitrary exits

2023-11-16 Thread Richard Biener
On Thu, 16 Nov 2023, Tamar Christina wrote: > > -Original Message- > > From: Richard Biener > > Sent: Thursday, November 16, 2023 11:28 AM > > To: Tamar Christina > > Cc: gcc-patches@gcc.gnu.org; nd ; j...@ventanamicro.com > > Subject: RE: [PATCH 7/21]middle-end: update IV update code

Re: [PATCH] LoongArch: Fix scan-assembler-times of lasx/lsx test case.

2023-11-16 Thread Jiahao Xu
Okay, thank you for your suggestion. 在 2023/11/16 下午8:11, Xi Ruoyao 写道: The change should be OK, I've seen these test failures for a while. But it would be better to provide some explanations in the commit message (does these test fails since they were added first day or something has changed

[PATCH] LoongArch: Fix scan-assembler-times of lasx/lsx test case.

2023-11-16 Thread Jiahao Xu
These tests fail when they are first added,this patch adjusts the scan-assembler-times to fix them. gcc/testsuite/ChangeLog: * gcc.target/loongarch/vector/lasx/lasx-vcond-1.c: Adjust assembler times. * gcc.target/loongarch/vector/lasx/lasx-vcond-2.c: Ditto. *

  1   2   3   4   >