[PATCH] Update array address space in c_build_qualified_type

2023-06-20 Thread SenthilKumar.Selvaraj--- via Gcc-patches
Hi, When c-typeck.cc:c_build_qualified_type builds an array type from its element type, it does not copy the address space of the element type to the array type itself. This is unlike tree.cc:build_array_type_1, which explicitly does TYPE_ADDR_SPACE (t) = TYPE_ADDR_SPACE (elt_type);

[Bug rtl-optimization/110237] gcc.dg/torture/pr58955-2.c is miscompiled by RTL scheduling after reload

2023-06-20 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110237 --- Comment #7 from Hongtao.liu --- > So it looks like a generic problem and better to be handled in > expand_partial_{load, store}_optab_fn? There're many other places with assumption MEM_SIZE is equal to MODE_SIZE even !MEM_SIZE_KNOWN_P,

[Bug tree-optimization/110332] [14 regression] ICE in dominated_by_p when building LLVM with -O3

2023-06-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110332 --- Comment #3 from Andrew Pinski --- Reducing ...

[PATCH] Refine maskloadmn pattern with UNSPEC_MASKLOAD.

2023-06-20 Thread liuhongt via Gcc-patches
If mem_addr points to a memory region with less than whole vector size bytes of accessible memory and k is a mask that would prevent reading the inaccessible bytes from mem_addr, add UNSPEC_MASKLOAD to prevent it to be transformed to vpblendd. Bootstrapped and regtested on

[Bug tree-optimization/110332] [14 regression] ICE in dominated_by_p when building LLVM with -O3

2023-06-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110332 --- Comment #2 from Andrew Pinski --- Either r14-1981 or r14-1951

[Bug tree-optimization/110332] [14 regression] ICE in dominated_by_p when building LLVM with -O3

2023-06-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110332 Andrew Pinski changed: What|Removed |Added CC||pinskia at gcc dot gnu.org Target

[Bug tree-optimization/110332] [14 regression] ICE in dominated_by_p when building LLVM with -O3

2023-06-20 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110332 --- Comment #1 from Sam James --- g++ -O3 -c ... is enough to repro

[Bug tree-optimization/110332] New: [14 regression] ICE in dominated_by_p when building LLVM with -O3

2023-06-20 Thread sjames at gcc dot gnu.org via Gcc-bugs
ude the complete backtrace with any bug report. See <https://bugs.gentoo.org/> for instructions. ``` ``` gcc (Gentoo 14.0.0 p, commit 6cb33e2f39e289ec4f25f845d8153053147c5c49) 14.0.0 20230620 (experimental) f5d0cec170d6d5496edf4038499d288c07d79b18 Copyright (C) 2023 Free Software Founda

[Bug tree-optimization/85741] [meta-bug] bogus/missing -Wformat-overflow

2023-06-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85741 Bug 85741 depends on bug 83733, which changed state. Bug 83733 Summary: -Wformat-overflow false positive for %d on bounded integer when inlining https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83733 What|Removed

[Bug tree-optimization/83733] -Wformat-overflow false positive for %d on bounded integer when inlining

2023-06-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83733 Andrew Pinski changed: What|Removed |Added Resolution|--- |FIXED Target Milestone|---

[Bug tree-optimization/85741] [meta-bug] bogus/missing -Wformat-overflow

2023-06-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85741 Bug 85741 depends on bug 94021, which changed state. Bug 94021 Summary: -Wformat-truncation false positive due to excessive integer range https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94021 What|Removed |Added

[Bug tree-optimization/94021] -Wformat-truncation false positive due to excessive integer range

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

Re: [pushed] aarch64: Robustify stack tie handling

2023-06-20 Thread Jeff Law via Gcc-patches
On 6/20/23 14:49, Richard Sandiford via Gcc-patches wrote: The SVE handling of stack clash protection copied the stack pointer to X11 before the probe and set up X11 as the CFA for unwind purposes: /* This is done to provide unwinding information for the stack adjustments we're

[Bug tree-optimization/80776] -Wformat-overflow false positive for %d on integer bounded by __builtin_unreachable

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

[Bug tree-optimization/85741] [meta-bug] bogus/missing -Wformat-overflow

2023-06-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85741 Bug 85741 depends on bug 80776, which changed state. Bug 80776 Summary: -Wformat-overflow false positive for %d on integer bounded by __builtin_unreachable https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80776 What|Removed

[Bug tree-optimization/80776] -Wformat-overflow false positive for %d on integer bounded by __builtin_unreachable

2023-06-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80776 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |13.0 --- Comment #8 from Andrew Pinski

[Bug tree-optimization/79161] possibly lost DCE / invariant motion optimization

2023-06-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79161 --- Comment #2 from Andrew Pinski --- I think this is fixed for GCC 10 by r10-1052-gc29c92c789d9 (and the related patch after that which disable it for the C front-end but enables it for C++11+)

[Bug tree-optimization/55906] suboptimal code generated for post-inc on Thumb1

2023-06-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55906 Andrew Pinski changed: What|Removed |Added Resolution|--- |FIXED Known to work|

[Bug other/16996] [meta-bug] code size improvements

2023-06-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=16996 Bug 16996 depends on bug 11180, which changed state. Bug 11180 Summary: [avr-gcc] Optimization decrease performance of struct assignment. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=11180 What|Removed |Added

[Bug target/11180] [avr-gcc] Optimization decrease performance of struct assignment.

2023-06-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=11180 Andrew Pinski changed: What|Removed |Added Status|NEW |RESOLVED Target Milestone|---

[Bug tree-optimization/36127] bad choice of loop IVs above -Os on x86

2023-06-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36127 --- Comment #8 from Andrew Pinski --- So what seems to be happening is PRE is pull out the following from the loop: pretmp_250 = MEM[(float *)_2 + 4294933760B + ivtmp.159_57 * 1]; _22 = (void *) ivtmp.140_79; pretmp_253 = MEM[(float *)_22

Re: [gofrontend-dev] Re: libgo patch committed: Use a C function to call mmap

2023-06-20 Thread Cherry Mui via Gcc-patches
On Tue, Jun 20, 2023 at 3:37 PM Ian Lance Taylor wrote: > On Tue, Jun 20, 2023 at 11:35 AM Andreas Schwab > wrote: > > > > On Jun 20 2023, Ian Lance Taylor via Gcc-patches wrote: > > > > > This libgo patches changes the runtime pacakge to use a C function to > call mmap. > > > > > > The final

[Bug target/110331] New: ppc64 vec_extract with constant index is suboptimal on P8

2023-06-20 Thread guihaoc at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110331 Bug ID: 110331 Summary: ppc64 vec_extract with constant index is suboptimal on P8 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal

[Bug middle-end/110018] Missing vectorizable_conversion(unsigned char -> double) for BB vectorizer

2023-06-20 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110018 Hongtao.liu changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

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

2023-06-20 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53947 Bug 53947 depends on bug 110018, which changed state. Bug 110018 Summary: Missing vectorizable_conversion(unsigned char -> double) for BB vectorizer https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110018 What|Removed

[Bug middle-end/110018] Missing vectorizable_conversion(unsigned char -> double) for BB vectorizer

2023-06-20 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110018 --- Comment #6 from CVS Commits --- The master branch has been updated by hongtao Liu : https://gcc.gnu.org/g:6f19cf7526168f840fd22f6af3f0cb67efb90dc8 commit r14-2007-g6f19cf7526168f840fd22f6af3f0cb67efb90dc8 Author: liuhongt Date: Wed May

[Bug target/54089] [SH] Refactor shift patterns

2023-06-20 Thread olegendo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54089 --- Comment #85 from Oleg Endo --- (In reply to Alexander Klepikov from comment #83) > Created attachment 55367 [details] > Collapsed libcall and additional loop move invariants patch v3 Thanks for staying on it! I've looked through the latest

[Bug target/110313] [14 Regression] GCN Fiji reload ICE in 'process_alt_operands'

2023-06-20 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110313 --- Comment #8 from Tobias Burnus --- Adding this debug code : __builtin_fprintf (stderr, "DEBUG:>> %d - %d - %d\n", get_lra_reg_info_size () , max_reg_num (), ORIGINAL_REGNO (operand_reg[nop])); shows for the failing case: DEBUG:

[Bug c++/82894] [10/11/12/13/14 Regression] Inherited member functions do not create ambiguity

2023-06-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82894 Andrew Pinski changed: What|Removed |Added CC||csaba_22 at yahoo dot co.uk --- Comment

[Bug c++/110330] GCC does not diagnose ambiguous function introduced from base class

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

[Bug c++/110330] GCC does not diagnose ambiguous function introduced from base class

2023-06-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110330 Andrew Pinski changed: What|Removed |Added Depends on||82894 --- Comment #1 from Andrew

[Bug bootstrap/110324] [14 Regression][build][nvptx] build/genpreds: Internal error: RTL check: expected elt 2 type 'T', have 's' due to r14-1949-g957ae904065917

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

[Bug bootstrap/110324] [14 Regression][build][nvptx] build/genpreds: Internal error: RTL check: expected elt 2 type 'T', have 's' due to r14-1949-g957ae904065917

2023-06-20 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110324 --- Comment #6 from CVS Commits --- The master branch has been updated by Tamar Christina : https://gcc.gnu.org/g:f5d0cec170d6d5496edf4038499d288c07d79b18 commit r14-2005-gf5d0cec170d6d5496edf4038499d288c07d79b18 Author: Tamar Christina

[Bug c++/110330] New: GCC does not diagnose ambiguous function introduced from base class

2023-06-20 Thread csaba_22 at yahoo dot co.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110330 Bug ID: 110330 Summary: GCC does not diagnose ambiguous function introduced from base class Product: gcc Version: 13.1.0 Status: UNCONFIRMED Severity: normal

Re: [PATCH] RISC-V: Implement autovec copysign.

2023-06-20 Thread 钟居哲
You should remove all "unspec" related of "n" ncopysign including riscv-vector-builtins-bases.cc vector.md/ vector-iterators.md juzhe.zh...@rivai.ai From: Robin Dapp Date: 2023-06-20 20:47 To: gcc-patches; palmer; Kito Cheng; juzhe.zh...@rivai.ai; jeffreyalaw CC: rdapp.gcc Subject: [PATCH]

[Bug fortran/100650] Passing a derived-type array constructor to the reshape intrinsic gives incorrect results

2023-06-20 Thread damian at archaeologic dot codes via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100650 Damian Rouson changed: What|Removed |Added CC||damian at archaeologic dot codes ---

[Bug c++/66290] wrong location for -Wunused-macros

2023-06-20 Thread lhyatt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66290 Lewis Hyatt changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug c++/66290] wrong location for -Wunused-macros

2023-06-20 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66290 --- Comment #9 from CVS Commits --- The master branch has been updated by Lewis Hyatt : https://gcc.gnu.org/g:4f3be7cbebce8ec9e0c5d9340b2772581454b862 commit r14-2004-g4f3be7cbebce8ec9e0c5d9340b2772581454b862 Author: Lewis Hyatt Date: Wed

[Bug modula2/110284] [14 Regression] Bootstrap failures with m2

2023-06-20 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110284 Iain Sandoe changed: What|Removed |Added CC||iains at gcc dot gnu.org --- Comment #11

Re: [Patch, fortran] PR107900 Select type with intrinsic type inside associate causes ICE / Segmenation fault

2023-06-20 Thread Harald Anlauf via Gcc-patches
Hi Paul, On 6/20/23 12:54, Paul Richard Thomas via Gcc-patches wrote: Hi Harald, Fixing the original testcase in this PR turned out to be slightly more involved than I expected. However, it resulted in an open door to fix some other PRs and the attached much larger patch. This time, I did

[Bug target/110313] [14 Regression] GCN Fiji reload ICE in 'process_alt_operands'

2023-06-20 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110313 --- Comment #7 from Tobias Burnus --- Correction with regards to reg_info_size: I claimed that reg_info_size = 3659 > 3483 – but that's not quite true. That's the result when doing 'p reg_info_size' in lra-constraints.cc. When going 'up' in

[Bug rtl-optimization/110305] Incorrect optimization with -O3 -fsignaling-nans -fno-signed-zeros

2023-06-20 Thread mmorrell at tachyum dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110305 --- Comment #9 from Michael Morrell --- And what about when -frounding-math is used? The transformation will still occur in simplify_binary_operation_1 if -frounding-math -fno-signed-zeros -fno-signaling-nans is used. Note that

[Bug rtl-optimization/110307] ICE in move_insn, at haifa-sched.cc:5473 when building Ruby on alpha with -fPIC -O2 (or -fpeephole2 -fschedule-insns2)

2023-06-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110307 --- Comment #7 from Andrew Pinski --- (In reply to Alexander Monakov from comment #6) > Note the REG_EH_REGION. This is relevant because can_nonlocal_goto checks > it, so for insn 25 we knew it wouldn't return to the setjmp receiver. >

[Bug other/110329] [14 regression] build fails building documentation after r14-1949-g957ae904065917

2023-06-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110329 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug target/110132] aarch64: Bogus -Wbuiltin-declaration-mismatch with ls64 builtins

2023-06-20 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110132 --- Comment #5 from CVS Commits --- The releases/gcc-13 branch has been updated by Alex Coplan : https://gcc.gnu.org/g:4eb01f987606e82ba4b7696f6cf79266d9e242ad commit r13-7462-g4eb01f987606e82ba4b7696f6cf79266d9e242ad Author: Alex Coplan

[Bug target/110100] __builtin_aarch64_st64b stores to the wrong address

2023-06-20 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110100 --- Comment #7 from CVS Commits --- The releases/gcc-13 branch has been updated by Alex Coplan : https://gcc.gnu.org/g:9df688cbf908adc43e92bd012dafa88680ea11dc commit r13-7461-g9df688cbf908adc43e92bd012dafa88680ea11dc Author: Alex Coplan

[Bug target/110100] __builtin_aarch64_st64b stores to the wrong address

2023-06-20 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110100 --- Comment #6 from CVS Commits --- The releases/gcc-13 branch has been updated by Alex Coplan : https://gcc.gnu.org/g:ff00fa1914e42d6b9c45cb36a5c99f94c4133cba commit r13-7460-gff00fa1914e42d6b9c45cb36a5c99f94c4133cba Author: Alex Coplan

Re: libgo patch committed: Use a C function to call mmap

2023-06-20 Thread Andreas Schwab
On Jun 20 2023, Ian Lance Taylor wrote: > OK, but I think that it does have something to do with big-endian. > The bug was that on some 32-bit systems it was passing a 64-bit value > to a function that expected a 32-bit value. The problem didn't show > up on 32-bit x86 because it is

[Bug testsuite/101002] Some powerpc tests fail with -mlong-double-64

2023-06-20 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101002 Peter Bergner changed: What|Removed |Added CC||linkw at gcc dot gnu.org Ever

[Bug other/110329] New: [14 regression] build fails building documentation after r14-1949-g957ae904065917

2023-06-20 Thread seurer at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110329 Bug ID: 110329 Summary: [14 regression] build fails building documentation after r14-1949-g957ae904065917 Product: gcc Version: 14.0 Status: UNCONFIRMED

[Bug ada/110314] Gnat failed assertion and Allocators with discriminant

2023-06-20 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110314 Eric Botcazou changed: What|Removed |Added CC||ebotcazou at gcc dot gnu.org ---

[Bug c++/110304] __builtin_adcs missing and jakub you miss the point of builtin_adcb

2023-06-20 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110304 --- Comment #19 from cqwrteur --- (In reply to cqwrteur from comment #18) > Would you mind if I clarified a few points regarding your query? I'm > referring to implementing "sub borrow" with sub_overflow, as demonstrated in > the code snippet

[Bug target/110313] [14 Regression] GCN Fiji reload ICE in 'process_alt_operands'

2023-06-20 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110313 --- Comment #6 from Tobias Burnus --- Some more debugging: We have: (gdb) p debug_rtx(curr_id->insn) (insn 106 3450 3080 4 (parallel [ (set (reg/f:DI 1433) (plus:DI (reg/f:DI 16 s16 [3483])

[Bug c++/110304] __builtin_adcs missing and jakub you miss the point of builtin_adcb

2023-06-20 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110304 --- Comment #18 from cqwrteur --- Would you mind if I clarified a few points regarding your query? I'm referring to implementing "sub borrow" with sub_overflow, as demonstrated in the code snippet at https://godbolt.org/z/ev3TfeTvd , correct?

[pushed] aarch64: Fix gcc.target/aarch64/sve/pcs failures

2023-06-20 Thread Richard Sandiford via Gcc-patches
Several gcc.target/aarch64/sve/pcs tests started failing after 6a2e8dcbbd4, because the tests weren't robust against whether an indirect argument register or the stack pointer was used as the base for stores. The patch allows either base register when there is only one indirect argument. It

[pushed] aarch64: Robustify stack tie handling

2023-06-20 Thread Richard Sandiford via Gcc-patches
The SVE handling of stack clash protection copied the stack pointer to X11 before the probe and set up X11 as the CFA for unwind purposes: /* This is done to provide unwinding information for the stack adjustments we're about to do, however to prevent the optimizers from

Re: [PATCH] tree-optimization/110243 - kill off IVOPTs split_offset

2023-06-20 Thread Richard Sandiford via Gcc-patches
Richard Biener writes: > On Mon, 19 Jun 2023, Richard Sandiford wrote: > >> Jeff Law writes: >> > On 6/16/23 06:34, Richard Biener via Gcc-patches wrote: >> >> IVOPTs has strip_offset which suffers from the same issues regarding >> >> integer overflow that split_constant_offset did but the

Re: [committed] amdgcn: minimal V64TImode vector support

2023-06-20 Thread Thomas Schwinge
Hi! On 2023-06-19T12:37:52+0100, Andrew Stubbs wrote: > This patch adds just enough TImode vector support to use them for moving > data about. Andrew tells me this need not be worried about, but -- for my future self searching email archives for FAILs/ICEs -- I'd like to at least document here

Re: [Patch, fortran] PR108961 - Segfault when associating to pointer from C_F_POINTER

2023-06-20 Thread Mikael Morin
Le 20/06/2023 à 18:30, Tobias Burnus a écrit : On 20.06.23 18:19, Paul Richard Thomas via Fortran wrote: Is there a better way to detect a type(c_ptr) formal argument? u.derived->intmod_sym_id == ISOCBINDING_PTR ? && u.derived->from_intmod == INTMOD_ISO_C_BINDING ?

[Bug ada/110314] Gnat failed assertion and Allocators with discriminant

2023-06-20 Thread franckbehaghel_gcc at protonmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110314 --- Comment #2 from Franck Behaghel --- >This is new in 14, was OK when forking 13. >https://ada.godbolt.org/z/TvbPxYfnP >Currently bisecting. Marc, Released version may have checks disabled : If the file gcc/DEV-PHASE contains experimental,

Re: [PATCH] Add scalar_storage_order support to C++

2023-06-20 Thread Andrew Pinski via Gcc-patches
On Thu, May 25, 2023 at 2:32 AM naveenh--- via Gcc-patches wrote: > > From: Naveen H S > > This patch adds support scalar_storage_order attribute to C++ front-end. > It treats the opposite order fields similar as the packed fields are > treated such that they will not bind to references. > For

Re: [PATCH][gensupport] drop suppport for define_cond_exec from compact syntac

2023-06-20 Thread Richard Sandiford via Gcc-patches
Tamar Christina writes: > Hi All, > > define_cond_exec does not support the special @@ syntax > and so can't support {@. As such just remove support > for it. > > Bootstrapped and no issues. > > Ok for master? > > Thanks, > Tamar > > gcc/ChangeLog: > > PR bootstrap/110324 > *

Re: [COMMITTED] ada: Add CHERI intrinsic bindings and helper functions.

2023-06-20 Thread Alex Coplan via Gcc-patches
Hi Marc, On 20/06/2023 15:47, Marc Poulhiès wrote: > Hi, > > >> The package Interfaces.CHERI provides intrinsic bindings and > >> helper functions to allow software to query, create, and > >> manipulate CHERI capabilities. > > > > I'm curious what the motivation for these intrinsic wrappers is,

Re: [PATCH, V6] Fix power10 fusion and -fstack-protector, PR target/105325

2023-06-20 Thread Segher Boessenkool
Hi! The patch looks great now, thanks you! But the commit message needs some work: First off, the subject, which is a short (50 character max!) summary of what the patch is about. Fix power10 fusion and -fstack-protector, PR target/105325 There is absolutely nothing to do with stack protector,

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

2023-06-20 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 #55364|0 |1 is obsolete|

[Bug c++/110304] __builtin_adcs missing and jakub you miss the point of builtin_adcb

2023-06-20 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110304 --- Comment #17 from Jakub Jelinek --- Maybe later, I'm currently busy with _BitInt support.

Re: [PATCH v6 1/4] libcpp: reject codepoints above 0x10FFFF

2023-06-20 Thread Ben Boeckel via Gcc
On Tue, Jun 20, 2023 at 21:16:40 +0200, Damien Guibouret wrote: > I think the comparison should be ">" instead of ">=" as 0x10 seems a > valid value (Unicode says value above 0x10 is invalid). > Other tests around same value in this file are using ">". Ah, good catch. I'll make a

[Bug c++/110304] __builtin_adcs missing and jakub you miss the point of builtin_adcb

2023-06-20 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110304 --- Comment #16 from cqwrteur --- ok Would you mind looking at the following link, https://godbolt.org/z/z7K79YMWr, and sharing your thoughts? I would greatly appreciate your feedback. Thank you very much.

Re: [PATCH v5 3/5] p1689r5: initial support

2023-06-20 Thread Ben Boeckel via Gcc-patches
On Tue, Feb 14, 2023 at 16:50:27 -0500, Jason Merrill wrote: > On 1/25/23 13:06, Ben Boeckel wrote: > > - header-unit information fields > > > > Header units (including the standard library headers) are 100% > > unsupported right now because the `-E` mechanism wants to import their > > BMIs. A

Re: [PATCH v5 3/5] p1689r5: initial support

2023-06-20 Thread Ben Boeckel via Gcc
On Tue, Feb 14, 2023 at 16:50:27 -0500, Jason Merrill wrote: > On 1/25/23 13:06, Ben Boeckel wrote: > > - header-unit information fields > > > > Header units (including the standard library headers) are 100% > > unsupported right now because the `-E` mechanism wants to import their > > BMIs. A

[Bug c++/110304] __builtin_adcs missing and jakub you miss the point of builtin_adcb

2023-06-20 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110304 --- Comment #15 from Jakub Jelinek --- (In reply to cqwrteur from comment #13) > See this: > https://godbolt.org/z/eozPahn9G > > > addcarry pattern it recognizes but not subcarry. And see this:

Re: [V1][PATCH 1/3] Provide element_count attribute to flexible array member field (PR108896)

2023-06-20 Thread Qing Zhao via Gcc-patches
> On Jun 16, 2023, at 5:35 PM, Joseph Myers wrote: > > On Fri, 16 Jun 2023, Qing Zhao via Gcc-patches wrote: > >>> So for >>> >>> struct foo { int c; int buf[(struct { int d; }){ .d = .c }]; }; >>> >>> one knows during parsing that the .d is a designator >>> and that .c is not. >> >>

[Bug c++/110304] __builtin_adcs missing and jakub you miss the point of builtin_adcb

2023-06-20 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110304 --- Comment #14 from cqwrteur --- https://godbolt.org/z/4ej4dnr4b I find a bug here: f0 = __builtin_subcl(f0,v,0,); f1 = __builtin_subcl(f1,zero,carry,); The compiler generates: setb %cl//redundant movzbl %cl, %ecx//redundant

[Bug target/91804] [10/11/12/13/14 regression] r265398 breaks gcc.target/powerpc/vec-rlmi-rlnm.c

2023-06-20 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91804 Peter Bergner changed: What|Removed |Added Status|NEW |RESOLVED CC|

Re: libgo patch committed: Use a C function to call mmap

2023-06-20 Thread Ian Lance Taylor via Gcc-patches
On Tue, Jun 20, 2023 at 11:35 AM Andreas Schwab wrote: > > On Jun 20 2023, Ian Lance Taylor via Gcc-patches wrote: > > > This libgo patches changes the runtime pacakge to use a C function to call > > mmap. > > > > The final argument to mmap, of type off_t, varies. In > > https://go.dev/cl/445375

[Bug c++/110304] __builtin_adcs missing and jakub you miss the point of builtin_adcb

2023-06-20 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110304 --- Comment #13 from cqwrteur --- See this: https://godbolt.org/z/eozPahn9G addcarry pattern it recognizes but not subcarry. You can see it does not recognize the following: template inline constexpr T sub_carry(T x,T y,T carryin,T&

Re: [PATCH v6 1/4] libcpp: reject codepoints above 0x10FFFF

2023-06-20 Thread Damien Guibouret
Le 19/06/2023 à 23:34, Jason Merrill a écrit : On 6/6/23 16:50, Ben Boeckel wrote: Unicode does not support such values because they are unrepresentable in UTF-16. Pushed. libcpp/ * charset.cc: Reject encodings of codepoints above 0x10. UTF-16 does not support such codepoints

Re: libgo patch committed: Use a C function to call mmap

2023-06-20 Thread Andreas Schwab
On Jun 20 2023, Ian Lance Taylor via Gcc-patches wrote: > This libgo patches changes the runtime pacakge to use a C function to call > mmap. > > The final argument to mmap, of type off_t, varies. In > https://go.dev/cl/445375 > (https://gcc.gnu.org/pipermail/gcc-patches/2022-October/604158.html)

[Bug c++/110328] New: Module related optimization is too aggressive

2023-06-20 Thread m-matti-a.lehtonen at iki dot fi via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110328 Bug ID: 110328 Summary: Module related optimization is too aggressive Product: gcc Version: 12.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug middle-end/79173] add-with-carry and subtract-with-borrow support (x86_64 and others)

2023-06-20 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79173 --- Comment #25 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:f8f68c4ca622a24c2e8cf2b5f2f9fdcd47a7b369 commit r14-2001-gf8f68c4ca622a24c2e8cf2b5f2f9fdcd47a7b369 Author: Jakub Jelinek Date:

Re: [PATCH] tree-ssa-math-opts: Small uaddc/usubc pattern matching improvement [PR79173]

2023-06-20 Thread Richard Biener via Gcc-patches
> Am 20.06.2023 um 18:46 schrieb Jakub Jelinek via Gcc-patches > : > > Hi! > > In the following testcase we fail to pattern recognize the least significant > .UADDC call. The reason is that arg3 in that case is > _3 = .ADD_OVERFLOW (...); > _2 = __imag__ _3; > _1 = _2 != 0; > arg3 =

[committed] calls: Change return type of predicate function from int to bool

2023-06-20 Thread Uros Bizjak via Gcc-patches
Also change some internal variables and some function arguments to bool. gcc/ChangeLog: * calls.h (setjmp_call_p): Change return type from int to bool. * calls.cc (struct arg_data): Change "pass_on_stack" to bool. (store_one_arg): Change return type from int to bool and adjust

[Bug fortran/110311] [14 Regression] gfortran 14.0 regression

2023-06-20 Thread juergen.reuter at desy dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110311 --- Comment #5 from Jürgen Reuter --- (In reply to anlauf from comment #4) > Jürgen, > > I'm afraid we need a reproducer. Or can you bisect the regression further? In principle, I could. But I just undid this commit of yours which is just

[Bug fortran/110311] [14 Regression] gfortran 14.0 regression

2023-06-20 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110311 anlauf at gcc dot gnu.org changed: What|Removed |Added CC||anlauf at gcc dot gnu.org

[Bug go/110297] [13/14 Regression] all libgo tests fail on arm-linux-gnueabi and arm-linxu-gnueabihf

2023-06-20 Thread ian at airs dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110297 Ian Lance Taylor changed: What|Removed |Added Resolution|--- |FIXED

[Bug modula2/110284] [14 Regression] Bootstrap failures with m2

2023-06-20 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110284 --- Comment #10 from Jakub Jelinek --- gcc-consolidation.h is included by m2/m2.flex:#include "gm2-gcc/gcc-consolidation.h" m2/gm2-lang.cc:#include "gm2-gcc/gcc-consolidation.h" m2/m2pp.cc:#include "gm2-gcc/gcc-consolidation.h"

[Bug bootstrap/110324] [14 Regression][build][nvptx] build/genpreds: Internal error: RTL check: expected elt 2 type 'T', have 's' due to r14-1949-g957ae904065917

2023-06-20 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110324 --- Comment #5 from Tobias Burnus --- Patch by Tamar (thanks!): https://gcc.gnu.org/pipermail/gcc-patches/2023-June/622387.html

PING^2: Re: [PATCH 1/3] testsuite: move handle-multiline-outputs to before check for blank lines

2023-06-20 Thread David Malcolm via Gcc-patches
Does this testsuite patch look OK? https://gcc.gnu.org/pipermail/gcc-patches/2023-May/620275.html Thanks David On Mon, 2023-06-12 at 19:11 -0400, David Malcolm wrote: > Please can someone review this testsuite patch: >   https://gcc.gnu.org/pipermail/gcc-patches/2023-May/620275.html > >

[Bug bootstrap/110324] [14 Regression][build][nvptx] build/genpreds: Internal error: RTL check: expected elt 2 type 'T', have 's' due to r14-1949-g957ae904065917

2023-06-20 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110324 Tobias Burnus changed: What|Removed |Added Summary|[14 Regression][bootstrap, |[14 |nvptx]

[PATCH][gensupport] drop suppport for define_cond_exec from compact syntac

2023-06-20 Thread Tamar Christina via Gcc-patches
Hi All, define_cond_exec does not support the special @@ syntax and so can't support {@. As such just remove support for it. Bootstrapped and no issues. Ok for master? Thanks, Tamar gcc/ChangeLog: PR bootstrap/110324 * gensupport.cc (convert_syntax): Explicitly check for RTX

[Bug bootstrap/110324] [14 Regression][bootstrap, nvptx] build/genpreds: Internal error: RTL check: expected elt 2 type 'T', have 's' due to r14-1949-g957ae904065917

2023-06-20 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110324 --- Comment #3 from Tobias Burnus --- (gdb) p ((enum rtx_code) (x)->code) $3 = DEFINE_COND_EXEC (gdb) p (int)((enum rtx_code) (x)->code) $4 = 172 and hence: (gdb) p rtx_format[172] $6 = 0x4bcda0 "EssV" where we take the index 2 => 's'. The

[Bug bootstrap/110325] [14 regression] Build failure on arm64 (libiberty/physmem.c:83:1: error: ‘+nofp’ feature modifier is incompatible with the use of floating-point types)

2023-06-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110325 --- Comment #8 from Andrew Pinski --- (In reply to Sam James from comment #7) > Ugh, I just realised I was using --personality=arm which is almost certainly > it (used bash history without checking). Sorry for the noise. I'll reopen if > it

[Bug tree-optimization/110327] New: [12/13/14 Regression] Missed Dead Code Elimination when using __builtin_unreachable since r12-4790-g4b3a325f07a

2023-06-20 Thread theodort at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110327 Bug ID: 110327 Summary: [12/13/14 Regression] Missed Dead Code Elimination when using __builtin_unreachable since r12-4790-g4b3a325f07a Product: gcc Version:

[Bug middle-end/110318] Unused string literal is retained in assembler file

2023-06-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110318 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement

[Bug modula2/110284] [14 Regression] Bootstrap failures with m2

2023-06-20 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110284 Jakub Jelinek changed: What|Removed |Added Status|CLOSED |REOPENED Resolution|FIXED

[Bug bootstrap/110324] [14 Regression][bootstrap, nvptx] build/genpreds: Internal error: RTL check: expected elt 2 type 'T', have 's' due to r14-1949-g957ae904065917

2023-06-20 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110324 --- Comment #2 from Tobias Burnus --- BTW, regarding: type 'T', have 's' /* Indexed by rtx code, gives a sequence of operand-types for rtx's of that code. The sequence is a C string in which each character describes one operand. */

[Bug target/54089] [SH] Refactor shift patterns

2023-06-20 Thread klepikov.alex+bugs at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54089 --- Comment #84 from Alexander Klepikov --- I've forgot to say that first I ran all tests with SH specific loop optimization enabled when condition 'optimize && flag_move_loop_invariants' is true. And only then I ran all tests with final (at

[Bug middle-end/110318] Unused string literal is retained in assembler file

2023-06-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110318 Andrew Pinski changed: What|Removed |Added Known to fail||7.1.0, 9.1.0 --- Comment #5 from

libgo patch committed: Use a C function to call mmap

2023-06-20 Thread Ian Lance Taylor via Gcc-patches
This libgo patches changes the runtime pacakge to use a C function to call mmap. The final argument to mmap, of type off_t, varies. In https://go.dev/cl/445375 (https://gcc.gnu.org/pipermail/gcc-patches/2022-October/604158.html) we changed it to always use the C off_t type, but that broke 32-bit

[Bug go/110297] [13/14 Regression] all libgo tests fail on arm-linux-gnueabi and arm-linxu-gnueabihf

2023-06-20 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110297 --- Comment #6 from CVS Commits --- The releases/gcc-13 branch has been updated by Ian Lance Taylor : https://gcc.gnu.org/g:4ac89ab35884906900cde8172d2db74e1d913fec commit r13-7459-g4ac89ab35884906900cde8172d2db74e1d913fec Author: Ian Lance

  1   2   3   4   >