[Bug c/69960] "initializer element is not constant"

2023-02-22 Thread daniel.lundin.mail at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69960 --- Comment #23 from Daniel Lundin --- (In reply to jos...@codesourcery.com from comment #21) > On Wed, 22 Feb 2023, daniel.lundin.mail at gmail dot com via Gcc-bugs wrote: > > > First of all, it is questionable if gcc is still conforming after

[Bug d/106977] [13 regression] d21 dies with SIGBUS on 32-bit Darwin

2023-02-22 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106977 --- Comment #7 from Iain Sandoe --- (In reply to ibuclaw from comment #6) > There's r13-1113 with introduced the use of visible(). > > Can't see anything odd about the virtual function declaration that would > suggest there's a mismatch

[Bug testsuite/108899] New: [13 Regression] ERROR: can't rename to "saved-unsupported": command already exists on i386

2023-02-22 Thread haochen.jiang at intel dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108899 Bug ID: 108899 Summary: [13 Regression] ERROR: can't rename to "saved-unsupported": command already exists on i386 Product: gcc Version: 13.0 Status: UNCONFIRMED

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

2023-02-22 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108273 --- Comment #3 from Kewen Lin --- The attached patch can be bootstrapped and regress-tested and solve the reported issue right after r13-5107-g6224db0e4d6d3b, but I can not reproduce the failure with the latest trunk, interesting... I suspected

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

2023-02-22 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108273 --- Comment #2 from Kewen Lin --- Created attachment 54512 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54512=edit Consider debug insn in no_real_insns_p

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

2023-02-22 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108273 Kewen Lin changed: What|Removed |Added Last reconfirmed||2023-02-23 Assignee|unassigned

[PATCH] ipa-prop: Fix another case of missing BUILT_IN_UNREACHABLE_TRAP handling [PR106258]

2023-02-22 Thread Jakub Jelinek via Gcc-patches
On Wed, Feb 22, 2023 at 07:46:46PM +0100, Richard Biener wrote: > Ok for stage1 Thanks. In that case, can we get at least following into GCC 13, another spot that handles in IPA just BUILT_IN_UNREACHABLE and not BUILT_IN_UNREACHABLE_TRAP? Bootstrapped/regtested on x86_64-linux and i686-linux.

[Bug testsuite/108898] New: [13 Regression] Test introduced by r13-6278-g3da77f217c8b2089ecba3eb201e727c3fcdcd19d failed on i386

2023-02-22 Thread haochen.jiang at intel dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108898 Bug ID: 108898 Summary: [13 Regression] Test introduced by r13-6278-g3da77f217c8b2089ecba3eb201e727c3fcdcd19d failed on i386 Product: gcc Version: 13.0

Re: [PATCH] vect: Check that vector factor is a compile-time constant

2023-02-22 Thread Michael Collison
Hi Jeff, We do not have two independent implementations: my work is 100% based on the vector intrinsic foundation in upstream GCC. In fact I have only added two core patterns, vector add and subtract, that are based on the existing vector intrinsics implementation: (define_expand "add3"  

Re: Re: [PATCH] vect: Check that vector factor is a compile-time constant

2023-02-22 Thread juzhe.zh...@rivai.ai
>> I would object to anyone trying to push forward an autovec implementation >> into >> gcc-13. We're well past that point IMHO, even if the changes only >> affected the RISC-V backend. Yes, I am agree with Jeff's opinion. I finished infrastructure (intrinsic and VSETVL PASS) of RVV now. Now,

Re: [PATCH] vect: Check that vector factor is a compile-time constant

2023-02-22 Thread Jeff Law via Gcc-patches
On 2/22/23 10:54, Michael Collison wrote: Juzhe, I disagree with this comment. There are many stakeholders for autovectorization and waiting until GCC 14 is not a viable solution for us as well as other stakeholders ready to begin work on autovectorization. As we discussed I have been

[PATCH 2/2] xtensa: Fix missing mode warnings in machine description

2023-02-22 Thread Takayuki 'January June' Suwa via Gcc-patches
gcc/ChangeLog: * config/xtensa/xtensa.md (zero_cost_loop_start, zero_cost_loop_end, loop_end): Add missing "SI:" to PLUS RTXes. --- gcc/config/xtensa/xtensa.md | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gcc/config/xtensa/xtensa.md

[PATCH 1/2] xtensa: Fix non-fatal regression introduced by b2ef02e8cbbaf95fee98be255f697f47193960ec

2023-02-22 Thread Takayuki 'January June' Suwa via Gcc-patches
In commit b2ef02e8cbbaf95fee98be255f697f47193960ec, the sibling call insn included (use (reg:SI A0_REG)) to fix the problem, which added a USE chain unconditionally to the data flow of register A0 during the sibling call. As a result, df_regs_ever_live_p (A0_REG) returns true, so even if register

[Bug c++/108897] Comparing pointer to field in rvalue class is not considered constant expression

2023-02-22 Thread danakj at orodu dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108897 --- Comment #2 from danakj at orodu dot net --- Thank you for the workaround!

[Bug c++/85944] Address of temporary bound to a function parameter at global scope not considered constexpr

2023-02-22 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85944 Patrick Palka changed: What|Removed |Added CC||danakj at orodu dot net --- Comment #8

[Bug c++/108897] Comparing pointer to field in rvalue class is not considered constant expression

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

[Bug c++/108897] New: Comparing pointer to field in rvalue class is not considered constant expression

2023-02-22 Thread danakj at orodu dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108897 Bug ID: 108897 Summary: Comparing pointer to field in rvalue class is not considered constant expression Product: gcc Version: 13.0 Status: UNCONFIRMED

Re: Ping^2: [PATCH+wwwdocs 0/8] A small Texinfo refinement

2023-02-22 Thread Gerald Pfeifer
On Tue, 21 Feb 2023, Arsen Arsenović wrote: > Ping. Like last time, I rebased the series. Thank you! > The first two times around, I did not notice there's dedicated > maintainers for the documentation component, and so, I am adding Gerald, > Joseph and Sandra to CC this time. Apologies for

[Bug d/106977] [13 regression] d21 dies with SIGBUS on 32-bit Darwin

2023-02-22 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106977 ibuclaw at gcc dot gnu.org changed: What|Removed |Added CC||ibuclaw at gcc dot gnu.org

Re: [PATCH+wwwdocs 0/8] A small Texinfo refinement

2023-02-22 Thread Gerald Pfeifer
On Fri, 27 Jan 2023, Arsen Arsenović via Gcc-patches wrote: > Some patches from this patchset appear to have been dropped due to size > limits. I neglected to compress them last night. Here they are again: I pushed 2/8 after spot checking the huge patch. Just 2 out of 970 hunks FAILED (for

Re: [committed 034/103] gccrs: dump: Emit visibility when dumping items

2023-02-22 Thread Gerald Pfeifer
Just noticed this by chance: How does this patch constitute a functional change (that matches the ChangeLog)? It looks it only adds an empty line to the source code? Gerald On Tue, 21 Feb 2023, arthur.co...@embecosm.com wrote: > From: Arthur Cohen > > gcc/rust/ChangeLog: > > *

Re: [committed 034/103] gccrs: dump: Emit visibility when dumping items

2023-02-22 Thread Gerald Pfeifer
Just noticed this by chance: How does this patch constitute a functional change (that matches the ChangeLog)? It looks it only adds an empty line to the source code? Gerald On Tue, 21 Feb 2023, arthur.co...@embecosm.com wrote: > From: Arthur Cohen > > gcc/rust/ChangeLog: > > *

Re: [PATCH 3/7] **/*.texi: Reorder index entries

2023-02-22 Thread Gerald Pfeifer
Hi Arsen, On Fri, 27 Jan 2023, Arsen Arsenović via Gcc-patches wrote: > gcc/d/ChangeLog: > > * implement-d.texi: Reorder index entries around @items. > > gcc/ChangeLog: > > * doc/cfg.texi: Reorder index entries around @items. > * doc/cpp.texi: Ditto. > *

[Bug d/106977] [13 regression] d21 dies with SIGBUS on 32-bit Darwin

2023-02-22 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106977 Iain Sandoe changed: What|Removed |Added Status|UNCONFIRMED |NEW Keywords|

[PATCH] c++: variable template and targ deduction [PR108550]

2023-02-22 Thread Marek Polacek via Gcc-patches
In this test, we get a bogus error because we failed to deduce the auto in constexpr auto is_pointer_v = is_pointer::value; to bool. Then ensure_literal_type_for_constexpr_object thinks the object isn't literal and an error is reported. This is another case of the interaction between tf_partial

Re: Re: [PATCH] vect: Check that vector factor is a compile-time constant

2023-02-22 Thread juzhe.zhong
Besides, since GCC 13 currently is on stage 4. Unlike the infrastructure that I am building for intrinsic && auto-vec which is safe and will not affect the original RISC-V port functionality. Auto-vectorization will potentially affect the orignal RISC-V port functionality which is not safe to

Re: Re: [PATCH] vect: Check that vector factor is a compile-time constant

2023-02-22 Thread juzhe.zhong
Currently, upstream GCC is not ready to support auto-vec. I am building the basic infrastructure of RVV and need more testing. I can't support auto-vec now since it depends on the infrastructure tha I am building. I have open source "rvv-next" in RISC-V foundation repo which fully support

Re: [wwwdocs, patch] OpenMP update for gcc-13/changes.html + projects/gomp/

2023-02-22 Thread Gerald Pfeifer
On Wed, 22 Feb 2023, Tobias Burnus wrote: > Comments? Suggestions? OpenMP update for gcc-13/changes.html + projects/gomp/ --- a/htdocs/gcc-13/changes.html +++ b/htdocs/gcc-13/changes.html + Reverse offload is now supported with nvptx and AMD GCN devices. Would it make sense to sort AMD

[pushed] wwwdocs: gcc-9: Various changes around -flive-patching

2023-02-22 Thread Gerald Pfeifer
This is on top of what Qing nicely added back in 2018 - backlog on my disk. Pushed. Gerald --- htdocs/gcc-9/changes.html | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/gcc-9/changes.html b/htdocs/gcc-9/changes.html index 7dfae89c..89c20985 100644 ---

[Bug c/108880] [11/12 Regression] slow compilation with "-fsanitize=undefined"

2023-02-22 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108880 Marek Polacek changed: What|Removed |Added Summary|[11/12/13 Regression] slow |[11/12 Regression] slow

[Bug c/108880] [11/12/13 Regression] slow compilation with "-fsanitize=undefined"

2023-02-22 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108880 --- Comment #15 from CVS Commits --- The trunk branch has been updated by Marek Polacek : https://gcc.gnu.org/g:1370014f2ea02ec185cf1199027575916f79fe63 commit r13-6290-g1370014f2ea02ec185cf1199027575916f79fe63 Author: Marek Polacek Date:

Re: [PATCH] c-family: avoid compile-time-hog in c_genericize [PR108880]

2023-02-22 Thread Jakub Jelinek via Gcc-patches
On Wed, Feb 22, 2023 at 05:37:45PM -0500, Marek Polacek wrote: > This fixes a compile-time hog with UBSan. This only happened in cc1 but > not cc1plus. The problem is ultimately that c_genericize_control_stmt/ > STATEMENT_LIST -> walk_tree_1 doesn't use a hash_set to remember visited > nodes, so

[PATCH] c-family: avoid compile-time-hog in c_genericize [PR108880]

2023-02-22 Thread Marek Polacek via Gcc-patches
This fixes a compile-time hog with UBSan. This only happened in cc1 but not cc1plus. The problem is ultimately that c_genericize_control_stmt/ STATEMENT_LIST -> walk_tree_1 doesn't use a hash_set to remember visited nodes, so it kept on recursing for a long time. We should be able to use the

[Bug target/83670] [10/11/12/13 Regression] m32c ICE in leaf_function_p, at final.c:4368

2023-02-22 Thread mike at mnmoran dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83670 Michael N. Moran changed: What|Removed |Added CC||mike at mnmoran dot org --- Comment

[Bug sanitizer/108894] -fsanitize=bounds missing bounds provided by __builtin_dynamic_object_size()

2023-02-22 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108894 --- Comment #3 from Jakub Jelinek --- -fstrict-flex-array= option doesn't affect the sanitization, if you want strict sanitization of bounds, you should use -fsanitize=bounds-strict rather than -fsanitize=bounds. Furthermore, it is

[Bug c/108896] provide "element_count" attribute to give more context to __builtin_dynamic_object_size() and -fsanitize=bounds

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

[Bug c/108896] provide "element_count" attribute to give more context to __builtin_dynamic_object_size() and -fsanitize=bounds

2023-02-22 Thread kees at outflux dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108896 --- Comment #1 from Kees Cook --- The corresponding Clang feature request is here: https://github.com/llvm/llvm-project/issues/60928

[Bug c/108896] New: provide "element_count" attribute to give more context to __builtin_dynamic_object_size() and -fsanitize=bounds

2023-02-22 Thread kees at outflux dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108896 Bug ID: 108896 Summary: provide "element_count" attribute to give more context to __builtin_dynamic_object_size() and -fsanitize=bounds Product: gcc Version:

[Bug libgomp/108895] New: [13.0.1 (exp)] Fortran + gfx90a !$acc update device produces a segfault.

2023-02-22 Thread hberre3 at gatech dot edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108895 Bug ID: 108895 Summary: [13.0.1 (exp)] Fortran + gfx90a !$acc update device produces a segfault. Product: gcc Version: unknown Status: UNCONFIRMED Severity:

[Bug sanitizer/108894] -fsanitize=bounds missing bounds provided by __builtin_dynamic_object_size()

2023-02-22 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108894 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org Ever

[Bug sanitizer/108894] -fsanitize=bounds missing bounds provided by __builtin_dynamic_object_size()

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

[Bug sanitizer/108894] -fsanitize=bounds missing bounds provided by __builtin_dynamic_object_size()

2023-02-22 Thread kees at outflux dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108894 Kees Cook changed: What|Removed |Added Attachment #54508|0 |1 is obsolete|

[Bug sanitizer/108894] -fsanitize=bounds missing bounds provided by __builtin_dynamic_object_size()

2023-02-22 Thread kees at outflux dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108894 --- Comment #1 from Kees Cook --- The matching Clang bug is: https://github.com/llvm/llvm-project/issues/60926

[Bug sanitizer/108894] New: -fsanitize=bounds missing bounds provided by __builtin_dynamic_object_size()

2023-02-22 Thread kees at outflux dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108894 Bug ID: 108894 Summary: -fsanitize=bounds missing bounds provided by __builtin_dynamic_object_size() Product: gcc Version: unknown Status: UNCONFIRMED

[Bug c++/108893] attribute access read_only

2023-02-22 Thread jg at jguk dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108893 --- Comment #4 from Jonny Grant --- My apologies, I had understood attribute access read_only was different from the attribute nonnull. So I filed a different report for this. I didn't want to use __attribute__((nonnull)) because the optimizer

[Bug c/108880] [11/12/13 Regression] slow compilation with "-fsanitize=undefined"

2023-02-22 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108880 --- Comment #14 from Marek Polacek --- (In reply to Jakub Jelinek from comment #13) > (In reply to Marek Polacek from comment #12) > > Sure, it worked for the testcase because the STATEMENT_LIST only had two > > stmts. I'm testing: > > > >

[Bug c/108880] [11/12/13 Regression] slow compilation with "-fsanitize=undefined"

2023-02-22 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108880 --- Comment #13 from Jakub Jelinek --- (In reply to Marek Polacek from comment #12) > Sure, it worked for the testcase because the STATEMENT_LIST only had two > stmts. I'm testing: > > --- a/gcc/c-family/c-gimplify.cc > +++

[Bug c++/108893] attribute access read_only

2023-02-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108893 --- Comment #3 from Andrew Pinski --- (In reply to Jonny Grant from comment #0) > > void f(const char * const str) __attribute__((access(read_only, 1))); > void f(const char * const str) > { > __builtin_puts(str); > } > > int main() > {

[Bug c++/108893] attribute access read_only

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

[Bug ipa/108871] attribute nonnull does not spot nullptr O2 and above when function inlined

2023-02-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108871 --- Comment #3 from Andrew Pinski --- *** Bug 108893 has been marked as a duplicate of this bug. ***

[Bug c++/108893] attribute access read_only

2023-02-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108893 --- Comment #1 from Andrew Pinski --- Isn't this the same as PR 108871 ? Also, the access attribute does not imply the attribute nonnull; it may be appropriate to add both attributes at the declaration of a function that unconditionally

[Bug c++/108893] New: attribute access read_only

2023-02-22 Thread jg at jguk dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108893 Bug ID: 108893 Summary: attribute access read_only Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug c/108880] [11/12/13 Regression] slow compilation with "-fsanitize=undefined"

2023-02-22 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108880 --- Comment #12 from Marek Polacek --- Sure, it worked for the testcase because the STATEMENT_LIST only had two stmts. I'm testing: --- a/gcc/c-family/c-gimplify.cc +++ b/gcc/c-family/c-gimplify.cc @@ -516,7 +516,8 @@

[Bug c/108880] [11/12/13 Regression] slow compilation with "-fsanitize=undefined"

2023-02-22 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108880 --- Comment #11 from Jakub Jelinek --- (In reply to Marek Polacek from comment #10) > Another simple patch is > > --- a/gcc/c-family/c-gimplify.cc > +++ b/gcc/c-family/c-gimplify.cc > @@ -516,7 +516,7 @@ c_genericize_control_stmt (tree

Re: [PR100127] Test for coroutine header in clang-compatible tests

2023-02-22 Thread Alexandre Oliva via Gcc-patches
On Feb 17, 2023, Iain Sandoe wrote: > As a matter of interest, do you know of any other compiler claiming > “__clang__” (I have > treated that as safe so far). We've had (or found it more convenient, not sure) to do that to gcc on some recent combinations of version and target of vxworks, for

Re: C++ modules and AAPCS/ARM EABI clash on inline key methods

2023-02-22 Thread Alexandre Oliva via Gcc-patches
On Feb 21, 2023, Richard Earnshaw wrote: > Rather than scanning for the triplet, a better test would be > { xfail { arm_eabi } } Indeed, thanks. Here's the updated patch, retested. Ok to install? [PR105224] C++ modules and AAPCS/ARM EABI clash on inline key methods From: Alexandre Oliva

[Bug rtl-optimization/108892] New: [13 Regression] ICE: in curr_insn_transform, at lra-constraints.cc:4168 (unable to generate reloads for: {*mvconst_internal}) at -Og on riscv64

2023-02-22 Thread zsojka at seznam dot cz via Gcc-bugs
thms: zlib zstd gcc version 13.0.1 20230222 (experimental) (GCC)

[Bug c/108880] [11/12/13 Regression] slow compilation with "-fsanitize=undefined"

2023-02-22 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108880 --- Comment #10 from Marek Polacek --- Another simple patch is --- a/gcc/c-family/c-gimplify.cc +++ b/gcc/c-family/c-gimplify.cc @@ -516,7 +516,7 @@ c_genericize_control_stmt (tree *stmt_p, int *walk_subtrees, void *data, tree t =

[Bug c/108880] [11/12/13 Regression] slow compilation with "-fsanitize=undefined"

2023-02-22 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108880 --- Comment #9 from Jakub Jelinek --- (In reply to Richard Biener from comment #4) > It's not only "slow", it also produces a gigantic executable, the .original > dump was 7.1GB when I stopped the compilation ... Well, original dump for deeply

[Bug c/108880] [11/12/13 Regression] slow compilation with "-fsanitize=undefined"

2023-02-22 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108880 Marek Polacek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[PATCH] c++: unevaluated array new-expr size constantness [PR108219]

2023-02-22 Thread Patrick Palka via Gcc-patches
Here we're mishandling the unevaluated array new-expressions due to a supposed non-constant array size ever since r12-5253-g4df7f8c79835d569, made us no longer perform constant evaluation of non-manifestly-constant expressions within unevaluated contexts. This shouldn't make a difference here

[Bug fortran/108889] [12/13 Regression] (Re)Allocate in assignment shows used uninitialized memory warning with -Wall if LHS is unallocated

2023-02-22 Thread kargl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108889 kargl at gcc dot gnu.org changed: What|Removed |Added Depends on||106089

[Bug fortran/108889] [12/13 Regression] (Re)Allocate in assignment shows used uninitialized memory warning with -Wall if LHS is unallocated

2023-02-22 Thread kargl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108889 kargl at gcc dot gnu.org changed: What|Removed |Added CC||kargl at gcc dot gnu.org ---

[Bug libgcc/108891] New: libatomic: AArch64 SEQ_CST 16-byte load missing barrier

2023-02-22 Thread wilco at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108891 Bug ID: 108891 Summary: libatomic: AArch64 SEQ_CST 16-byte load missing barrier Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal

Re: [PATCH] tree, v2: Add 3 argument fndecl_built_in_p

2023-02-22 Thread Richard Biener via Gcc-patches
> Am 22.02.2023 um 19:34 schrieb Jakub Jelinek : > > On Wed, Feb 22, 2023 at 12:35:24PM +, Jonathan Wakely wrote: >> Yes, I was right, it doesn't work in gcc 4.8. This does though (with >> typos above fixed too, and actually tested on GCC 4.8.5): > > I think we don't need the

[Bug analyzer/108830] Excess warnings from -Wanalyzer-null-dereference

2023-02-22 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108830 --- Comment #3 from David Malcolm --- (In reply to David Malcolm from comment #0) > There are also a huge number of spammy "'new_vals' is NULL" messages. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105958#c1

[Bug analyzer/105958] Stray events emitted by state machine tests (e.g. "'VAR' is NULL")

2023-02-22 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105958 --- Comment #1 from David Malcolm --- A particularly bad example seems to be gcc.dg/analyzer/null-deref-pr108830.c: https://godbolt.org/z/rabfxeaxz which currently emits: : In function 'apr_hash_merge': :82:24: warning: dereference of NULL

Re: [PATCH 1/2]middle-end: Fix wrong overmatching of div-bitmask by using new optabs [PR108583]

2023-02-22 Thread Andrew MacLeod via Gcc-patches
On 2/22/23 13:03, Tamar Christina wrote: -Original Message- From: Andrew MacLeod Sent: Wednesday, February 22, 2023 4:42 PM To: Tamar Christina ; Richard Biener ; Richard Sandiford Cc: Tamar Christina via Gcc-patches ; nd ; j...@ventanamicro.com Subject: Re: [PATCH 1/2]middle-end:

[PATCH] tree, v2: Add 3 argument fndecl_built_in_p

2023-02-22 Thread Jakub Jelinek via Gcc-patches
On Wed, Feb 22, 2023 at 12:35:24PM +, Jonathan Wakely wrote: > Yes, I was right, it doesn't work in gcc 4.8. This does though (with > typos above fixed too, and actually tested on GCC 4.8.5): I think we don't need the DECL_FUNCTION_CODE (node) in every recursive call, we can just pass

[Bug c/108880] [11/12/13 Regression] slow compilation with "-fsanitize=undefined"

2023-02-22 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108880 --- Comment #8 from Marek Polacek --- We generate HUGE trees for the div sanitization, but I notice that c_genericize_control_r doesn't use pset, like cp_genericize_r does. So I think the fix would be to add a hash_set to

[Bug middle-end/108878] Mis-optimization with splitting floating point into a significand and exponent.

2023-02-22 Thread sgk at troutmask dot apl.washington.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108878 --- Comment #8 from Steve Kargl --- On Wed, Feb 22, 2023 at 08:48:07AM +, rguenth at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108878 > > --- Comment #6 from Richard Biener --- > For the specific testcase I

[Bug analyzer/108879] -Wanalyzer-malloc-leak false positive stl string in try catch block

2023-02-22 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108879 David Malcolm changed: What|Removed |Added Blocks||97110 --- Comment #1 from David

[Bug translation/108890] New: Translation mistakes 2023

2023-02-22 Thread roland.illig at gmx dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108890 Bug ID: 108890 Summary: Translation mistakes 2023 Product: gcc Version: 13.0 Status: UNCONFIRMED Keywords: diagnostic Severity: normal Priority: P3

Re: [PATCH 1/2] PR target/107299: Fix build issue when long double is IEEE 128-bit

2023-02-22 Thread Michael Meissner via Gcc-patches
On Wed, Feb 22, 2023 at 06:37:39PM +0800, Kewen.Lin wrote: > Thanks for working on this! If updating libgcc source to workaround this > issue > is the best option we can have at this moment, it's fine. Thanks. Yes, I agree that it does not fix the root issue. > Comparing to one > previous

[Bug fortran/108889] New: [12/13 Regression] (Re)Allocate in assignment shows used uninitialized memory warning with -Wall if LHS is unallocated

2023-02-22 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108889 Bug ID: 108889 Summary: [12/13 Regression] (Re)Allocate in assignment shows used uninitialized memory warning with -Wall if LHS is unallocated Product: gcc

RE: [PATCH 1/2]middle-end: Fix wrong overmatching of div-bitmask by using new optabs [PR108583]

2023-02-22 Thread Tamar Christina via Gcc-patches
> -Original Message- > From: Andrew MacLeod > Sent: Wednesday, February 22, 2023 4:42 PM > To: Tamar Christina ; Richard Biener > ; Richard Sandiford > Cc: Tamar Christina via Gcc-patches ; nd > ; j...@ventanamicro.com > Subject: Re: [PATCH 1/2]middle-end: Fix wrong overmatching of

New Romanian PO file for 'cpplib' (version 13.1-b20230212)

2023-02-22 Thread Translation Project Robot
Hello, gentle maintainer. This is a message from the Translation Project robot. A revised PO file for textual domain 'cpplib' has been submitted by the Romanian team of translators. The file is available at: https://translationproject.org/latest/cpplib/ro.po (This file,

Contents of PO file 'cpplib-13.1-b20230212.ro.po'

2023-02-22 Thread Translation Project Robot
cpplib-13.1-b20230212.ro.po.gz Description: Binary data The Translation Project robot, in the name of your translation coordinator.

Re: [PATCH 2/2] Rework 128-bit complex multiply and divide.

2023-02-22 Thread Michael Meissner via Gcc-patches
On Wed, Feb 22, 2023 at 06:13:07PM +0800, Kewen.Lin wrote: > These two above paragraphs look a bit out of date (two patches now). :) Thanks. > IIUC this patch actually fixes a latent issue, so it is independent of the one > fixing the bootstrapping issue, right? This updated version of patch

[Bug fortran/96024] [10/11/12/13 Regression] ICE in mio_name_expr_t, at fortran/module.c:2159

2023-02-22 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96024 --- Comment #12 from CVS Commits --- The master branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:31303c9b5bab200754cdb7ef8cd91ae4918f3018 commit r13-6289-g31303c9b5bab200754cdb7ef8cd91ae4918f3018 Author: Harald Anlauf Date:

Re: [PATCH] vect: Check that vector factor is a compile-time constant

2023-02-22 Thread Michael Collison
Juzhe, I disagree with this comment. There are many stakeholders for autovectorization and waiting until GCC 14 is not a viable solution for us as well as other stakeholders ready to begin work on autovectorization. As we discussed I have been moving forward with patches for

Sort-of ping for [PATCH] testsuite: Handle "packed" targets in c-c++-common/auto-init-7.c and -8.c

2023-02-22 Thread Hans-Peter Nilsson via Gcc-patches
> From: Qing Zhao > Date: Wed, 15 Feb 2023 20:30:00 +0100 > Thank you for fixing this issue. Thanks! Although you're not holding an approver position I'm tempted to take that as approval, as you're the author of that test. This being a patch of no particular significance and having seen no

[Bug tree-optimization/105329] [12/13 Regression] Bogus restrict warning when assigning 1-char string literal to std::string since r12-3347-g8af8abfbbace49e6

2023-02-22 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105329 --- Comment #29 from Jonathan Wakely --- It adds a new symbol to the library, which is not usually considered an ABI change, because it's backwards compatible. Compiling with a new GCC and linking to an old libstdc++ is never supported anyway.

New German PO file for 'cpplib' (version 13.1-b20230212)

2023-02-22 Thread Translation Project Robot
Hello, gentle maintainer. This is a message from the Translation Project robot. A revised PO file for textual domain 'cpplib' has been submitted by the German team of translators. The file is available at: https://translationproject.org/latest/cpplib/de.po (This file,

Contents of PO file 'cpplib-13.1-b20230212.de.po'

2023-02-22 Thread Translation Project Robot
cpplib-13.1-b20230212.de.po.gz Description: Binary data The Translation Project robot, in the name of your translation coordinator.

Re: [PATCH] Skip module_cmi_p and related unsupported module test

2023-02-22 Thread Alexandre Oliva via Gcc-patches
On Feb 20, 2023, Jason Merrill wrote: > This seems like an ugly kludge around that problem, but I don't have > any clever ideas of a better approach short of rewriting everything. > So, OK with a comment explaining the rationale above your overridden > "unsupported". > Also, your commit subject

Re: [PATCH] [arm] disable aes-1742098 mitigation for a72 combine tests

2023-02-22 Thread Alexandre Oliva via Gcc-patches
Hello, Kyrylo, On Feb 20, 2023, Kyrylo Tkachov wrote: > So rather than overriding this awkward part with > -mno-fix-cortex-a57-aes-1742098 I'd rather just select a different > CPU that enables that fusion and isn't afflicted by this workaround, > such as -mcpu=cortex-a53. Sounds good to me. >

[Bug tree-optimization/105329] [12/13 Regression] Bogus restrict warning when assigning 1-char string literal to std::string since r12-3347-g8af8abfbbace49e6

2023-02-22 Thread 49tbwddbqeazdawz at chyen dot cc via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105329 --- Comment #28 from yan12125 <49tbwddbqeazdawz at chyen dot cc> --- Thanks, so that commit changes ABI - objects built by patched GCC will not link to unpatched libstdc++. I will stick to -Wno-restrict for now.

[Bug c++/108219] [12/13 Regression] requirement fails on a valid expression since r12-5253-g4df7f8c79835d569

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

[Bug c/69960] "initializer element is not constant"

2023-02-22 Thread joseph at codesourcery dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69960 --- Comment #22 from joseph at codesourcery dot com --- I do however expect there may be cases in GCC 13 where constexpr initializers of floating type are accepted that do not meet the definition of arithmetic constant expressions, since GCC

[Bug c/69960] "initializer element is not constant"

2023-02-22 Thread joseph at codesourcery dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69960 --- Comment #21 from joseph at codesourcery dot com --- On Wed, 22 Feb 2023, daniel.lundin.mail at gmail dot com via Gcc-bugs wrote: > First of all, it is questionable if gcc is still conforming after the change > discussed here and implemented

[Bug tree-optimization/108888] [13 Regression] error: definition in block 26 follows the use

2023-02-22 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=10 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/108888] [13 Regression] error: definition in block 26 follows the use

2023-02-22 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=10 Marek Polacek changed: What|Removed |Added Keywords||ice-on-valid-code

Re: [PATCH] vect: Check that vector factor is a compile-time constant

2023-02-22 Thread Michael Collison
Richard how would I check for a full masked main vector loop? On 2/22/23 03:20, Richard Biener wrote: On Wed, Feb 22, 2023 at 12:03 AM Michael Collison wrote: While working on autovectorizing for the RISCV port I encountered an issue where vect_do_peeling assumes that the vectorization factor

Re: [PATCH 1/2]middle-end: Fix wrong overmatching of div-bitmask by using new optabs [PR108583]

2023-02-22 Thread Andrew MacLeod via Gcc-patches
On 2/15/23 13:42, Andrew MacLeod wrote: On 2/15/23 12:50, Andrew MacLeod wrote: On 2/15/23 12:13, Tamar Christina wrote: On 2/15/23 07:51, Tamar Christina wrote: void operator_plus::wi_fold (irange , tree type,     const wide_int _lb, const wide_int _ub,    

[Bug c++/108888] New: error: definition in block 26 follows the use

2023-02-22 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=10 Bug ID: 10 Summary: error: definition in block 26 follows the use Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

Re: GSOC 2023 Contribution Request

2023-02-22 Thread Kritika Rag via Gcc
Thank you for your response Martin. Actually I sent this mail a week ago and yeah now the wiki page of gcc has been updated (although I'm very much sure these topics were listed over there but that's totally fine) and so today itself I sent another mail with expressing an interest in working on

Re: GSOC 2023 Contribution Request

2023-02-22 Thread Martin Jambor
Hello Kritika, we are delighted that you decided to apply for GSoC and that you are interested in choosing GCC as the project to contribute to. On Mon, Feb 13 2023, Kritika Rag via Gcc wrote: > Hello Sir/Mam, > > I’m Kritika Rag, a Computer Science pre-final year undergraduate student > from

[Bug c/108880] [11/12/13 Regression] slow compilation with "-fsanitize=undefined"

2023-02-22 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108880 --- Comment #7 from Marek Polacek --- The C90/C99 difference is due to ubsan_instrument_shift: 193 /* For signed x << y, in C99 and later, the following: 194 (unsigned) x >> (uprecm1 - y) 195 if non-zero, is undefined. */ 196

[Bug ada/108858] Assert_Failure at exp_ch6.adb:6499

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

  1   2   3   >