[Bug tree-optimization/109327] New: ICE on valid code at -O1 and above with "-fno-tree-ccp": Segmentation fault

2023-03-28 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109327 Bug ID: 109327 Summary: ICE on valid code at -O1 and above with "-fno-tree-ccp": Segmentation fault Product: gcc Version: unknown Status: UNCONFIRMED

Re: [Patch] c-c++-common/Warray-bounds.c: fix excess warnings on LLP64

2023-03-28 Thread Jonathan Yong via Gcc-patches
On 2/27/23 10:29, Jonathan Yong wrote: Attached patch OK?     Excess errors on x86_64-w64-mingw32: /home/user/p/gcc/src/gcc-git/gcc/testsuite/c-c++-common/Warray-bounds.c:50:3: warning: array subscript 4611686018427387902 is above array bounds of 'struct S16[]' [-Warray-bounds=]

[PATCH] RISC-V: Fix reload fail issue on vector mac instructions

2023-03-28 Thread juzhe . zhong
From: Juzhe-Zhong Co-authored-by: kito-cheng Co-authored-by: kito-cheng This path fix ICE of ternary intrinsic: bug.C:144:2: error: unable to find a register to spill 144 | } | ^ bug.C:144:2: error: this is the insn: (insn 462 972 919 24 (set (reg/v:VNx8DI 546 [orig:192 var_10 ]

[PATCH] RISC-V: Fix ICE && codegen error of scalar move in RV32 system.

2023-03-28 Thread juzhe . zhong
From: Juzhe-Zhong bug.C:144:2: error: unrecognizable insn: 144 | } | ^ (insn 684 683 685 26 (set (reg:SI 513) (and:SI (const_int 4 [0x4]) (const_int 1 [0x1]))) "bug.C":115:47 -1 (nil)) andi a4,a4,1 ===> sgtu a4,a4,zero vsetlvi tuvsetvli tu vlse

[Bug middle-end/109326] Bad assembler code generation for valid C on 886-64

2023-03-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109326 --- Comment #4 from Andrew Pinski --- (In reply to Steve Thompson from comment #3) > However I don't understand why olock_reset_op() is so large. It's > a trivial initializer for a descriptor with an array of olock_op_element > structures

[PATCH v2 3/3] c++: Improve location information in constexpr evaluation

2023-03-28 Thread Nathaniel Shead via Gcc-patches
This patch caches the current expression's location information in the constexpr_global_ctx struct, which allows subexpressions that have lost location information to still provide accurate diagnostics. Also rewrites a number of 'error' calls as 'error_at' to provide more specific location

[PATCH v2 1/3] c++: Track lifetimes in constant evaluation [PR70331, PR96630, PR98675]

2023-03-28 Thread Nathaniel Shead via Gcc-patches
This adds rudimentary lifetime tracking in C++ constexpr contexts, allowing the compiler to report errors with using values after their backing has gone out of scope. We don't yet handle other ways of ending lifetimes (e.g. explicit destructor calls). PR c++/96630 PR c++/98675

[PATCH v2 0/3] c++: Track lifetimes in constant evaluation [PR70331, ...]

2023-03-28 Thread Nathaniel Shead via Gcc-patches
This is an update of the patch series at https://gcc.gnu.org/pipermail/gcc-patches/2023-March/614759.html The main change is modifying the first patch to store the "expired" flag in the C++-specific lang_decl_base struct instead of tree_decl_common. The second and third patches to improve

[PATCH v2 2/3] c++: Improve constexpr error for dangling local variables

2023-03-28 Thread Nathaniel Shead via Gcc-patches
Currently, when typeck discovers that a return statement will refer to a local variable it rewrites to return a null pointer. This causes the error messages for using the return value in a constant expression to be unhelpful, especially for reference return values. This patch removes this

[Bug middle-end/109326] Bad assembler code generation for valid C on 886-64

2023-03-28 Thread susurrus.of.qualia at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109326 --- Comment #3 from Steve Thompson --- (In reply to Andrew Pinski from comment #1) > init_olock_op_element_struct asm output looks fine to me: > > movzwl .LC0(%rip), %eax > movq$0, (%rdi) > movq$0, 8(%rdi) >

[Bug c++/109321] [13 Regression] ICE in iterative_hash_template_arg, at cp/pt.cc:1727

2023-03-28 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109321 Jason Merrill changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/109320] [13 Regression] ICE in coerce_template_parameter_pack, at cp/pt.cc:8795

2023-03-28 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109320 Jason Merrill changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/109321] [13 Regression] ICE in iterative_hash_template_arg, at cp/pt.cc:1727

2023-03-28 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109321 --- Comment #2 from CVS Commits --- The trunk branch has been updated by Jason Merrill : https://gcc.gnu.org/g:91293ffb6af18705ab7857dc47656bdd74a9ce31 commit r13-6922-g91293ffb6af18705ab7857dc47656bdd74a9ce31 Author: Jason Merrill Date:

[Bug c++/109320] [13 Regression] ICE in coerce_template_parameter_pack, at cp/pt.cc:8795

2023-03-28 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109320 --- Comment #2 from CVS Commits --- The trunk branch has been updated by Jason Merrill : https://gcc.gnu.org/g:91293ffb6af18705ab7857dc47656bdd74a9ce31 commit r13-6922-g91293ffb6af18705ab7857dc47656bdd74a9ce31 Author: Jason Merrill Date:

[pushed] c++: alias ctad refinements [PR109321]

2023-03-28 Thread Jason Merrill via Gcc-patches
Tested x86_64-pc-linux-gnu, applying to trunk. -- 8< -- The two hunks fix missing handling demonstrated by the two testcases: first, if we omit one alias template parm but include another, we need to rewrite the deduced template args to reflect the new position of the included parm. Second, if

[Bug tree-optimization/109274] [13 Regression] ice in in_chain_p, at gimple-range-gori.cc:119 starting with r13-6787-g0963cb5fde158cce986

2023-03-28 Thread sam at gentoo dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109274 Sam James changed: What|Removed |Added CC||sam at gentoo dot org --- Comment #15 from

[Bug tree-optimization/109325] ICE in range_def_chain::in_chain_ when building opencv

2023-03-28 Thread sam at gentoo dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109325 Sam James changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug middle-end/109326] Bad assembler code generation for valid C on 886-64

2023-03-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109326 --- Comment #2 from Andrew Pinski --- Note if you are disassemblying the object file with objdump -d, you might want to add the -r option to enable dumping of the relocations that are produced too. In the init_olock_op_struct case you miss the

[Bug middle-end/109326] Bad assembler code generation for valid C on 886-64

2023-03-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109326 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug c/109326] New: Bad assembler code generation for valid C on 886-64

2023-03-28 Thread susurrus.of.qualia at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109326 Bug ID: 109326 Summary: Bad assembler code generation for valid C on 886-64 Product: gcc Version: og10 (devel/omp/gcc-10) Status: UNCONFIRMED Severity: normal Priority:

Go patch committed: Mark Call_expression multi-results as result struct

2023-03-28 Thread Ian Lance Taylor via Gcc-patches
This patch to the Go frontend marks a Call_expression multiple results struct as a result struct. In https://go.dev/cl/343873 we stopped padding zero-sized trailing fields in functions that return multiple results where the last result is zero-sized. This CL makes the corresponding change on the

[Bug target/109256] Error: failed to link 'linked_maps2.bpf.o': Cannot allocate memory (12)

2023-03-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109256 Andrew Pinski changed: What|Removed |Added Resolution|FIXED |MOVED --- Comment #4 from Andrew

[Bug tree-optimization/109325] ICE in range_def_chain::in_chain_ when building opencv

2023-03-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109325 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug tree-optimization/109325] ICE in range_def_chain::in_chain_ when building opencv

2023-03-28 Thread sam at gentoo dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109325 --- Comment #1 from Sam James --- Created attachment 54781 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54781=edit warpers.cpp.ii.xz Originally reported by Adrien Dessemond at https://bugs.gentoo.org/903505. ```

[Bug tree-optimization/109325] New: ICE in range_def_chain::in_chain_ when building opencv

2023-03-28 Thread sam at gentoo dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109325 Bug ID: 109325 Summary: ICE in range_def_chain::in_chain_ when building opencv Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug target/109324] New: Genrecog reports "source missing a mode?" for H8

2023-03-28 Thread jdx at o2 dot pl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109324 Bug ID: 109324 Summary: Genrecog reports "source missing a mode?" for H8 Product: gcc Version: 13.0 Status: UNCONFIRMED Keywords: build Severity: normal

[Bug libstdc++/108118] std::weak_ptr lacks a self-usurp check on move

2023-03-28 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108118 --- Comment #7 from CVS Commits --- The releases/gcc-12 branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:629ed996f32cb03dd712789eede1f7f2036e497b commit r12-9351-g629ed996f32cb03dd712789eede1f7f2036e497b Author: Jonathan

[Bug libstdc++/108554] [12 Regression] Warning "null pointer dereferece" raised when extracting a unique_ptr from a map and any "-O" flag

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

[Bug libstdc++/108554] [12 Regression] Warning "null pointer dereferece" raised when extracting a unique_ptr from a map and any "-O" flag

2023-03-28 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108554 --- Comment #8 from CVS Commits --- The releases/gcc-12 branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:2fdfa3768b25c85df39eaf9b850e130e42a4dd6f commit r12-9345-g2fdfa3768b25c85df39eaf9b850e130e42a4dd6f Author: Jonathan

[Bug libstdc++/109299] [12 Regression] wrong warning on std::wstring with -O2 -std=c++20 -D_FORTIFY_SOURCE=2

2023-03-28 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109299 --- Comment #11 from CVS Commits --- The releases/gcc-12 branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:00ac6fa3f2a54fb9cc17b7b7f51eae3c6bf7a1bd commit r12-9330-g00ac6fa3f2a54fb9cc17b7b7f51eae3c6bf7a1bd Author: Jonathan

[Bug libstdc++/109299] [12 Regression] wrong warning on std::wstring with -O2 -std=c++20 -D_FORTIFY_SOURCE=2

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

Re: [GSoC] Conflicted Built-in Trait Name

2023-03-28 Thread Ken Matsui via Gcc
Oooh, thank you for your help! On Tue, Mar 28, 2023 at 4:25 PM Jonathan Wakely wrote: > > On Tue, 28 Mar 2023 at 22:30, Ken Matsui via Libstdc++ > wrote: > > > > Hi François, > > > > I tried to use `make check-debug`, but my Makefile does not include > > the target. Could you please tell me how

[Bug other/108413] copyrights for gcc 2023

2023-03-28 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108413 --- Comment #10 from CVS Commits --- The releases/gcc-12 branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:83487e1f0c380859ed2dab2892afa8651d267fb3 commit r12-9327-g83487e1f0c380859ed2dab2892afa8651d267fb3 Author: Jonathan

[Bug c++/109320] [13 Regression] ICE in coerce_template_parameter_pack, at cp/pt.cc:8795

2023-03-28 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109320 Jason Merrill changed: What|Removed |Added Priority|P3 |P1

[Bug c++/109320] [13 Regression] ICE in coerce_template_parameter_pack, at cp/pt.cc:8795

2023-03-28 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109320 Jason Merrill changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

Re: [GSoC] Conflicted Built-in Trait Name

2023-03-28 Thread Jonathan Wakely via Gcc
On Tue, 28 Mar 2023 at 22:30, Ken Matsui via Libstdc++ wrote: > > Hi François, > > I tried to use `make check-debug`, but my Makefile does not include > the target. Could you please tell me how you generated your Makefile? It's a target in the libstdc++ makefile, so you need to run it from the

[Bug libstdc++/103387] powerpc64le: segmentation fault on std::cout with ieee128 long double variable

2023-03-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103387 --- Comment #11 from Jonathan Wakely --- Fixed on trunk now.

[committed] libstdc++: Do not use facets cached in ios for ATL128 build [PR103387]

2023-03-28 Thread Jonathan Wakely via Gcc-patches
Tested powerpc64le-linux. Pushed to trunk. -- >8 -- For the powerpc64le build with two different long double representations, we cannot use the ios_base::_M_num_put and ios_base::_M_num_get pointers, because they might have been initialized in a translation unit using the other long double type.

[Bug libstdc++/103387] powerpc64le: segmentation fault on std::cout with ieee128 long double variable

2023-03-28 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103387 --- Comment #10 from CVS Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:ec12639c82e944d37200a744156e183ea19add00 commit r13-6918-gec12639c82e944d37200a744156e183ea19add00 Author: Jonathan Wakely

[Bug debug/109161] Bad CTF generated for stub in function scope

2023-03-28 Thread nix at esperi dot org.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109161 Nix changed: What|Removed |Added CC||nix at esperi dot org.uk --- Comment #2 from Nix

[Bug tree-optimization/109318] csmith: -fipa-cp seems to cause trouble

2023-03-28 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109318 David Binderman changed: What|Removed |Added Keywords||needs-bisection, |

[Bug c++/109323] No error when neither of return_value or return_void is defined

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

[Bug tree-optimization/104970] [12 Regression] ICE in execute_todo, at passes.cc:2133 since r12-6480-gea19c8f33a3a8d2b

2023-03-28 Thread muecker at gwdg dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104970 Martin Uecker changed: What|Removed |Added CC||muecker at gwdg dot de --- Comment #13

[Bug c++/109323] New: No error when neither of return_value or return_void is defined

2023-03-28 Thread enricomaria.dean6elis at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109323 Bug ID: 109323 Summary: No error when neither of return_value or return_void is defined Product: gcc Version: 12.2.1 Status: UNCONFIRMED Severity: normal

Re: [GSoC] Discussion of warnings and of a first patch (name-hiding)

2023-03-28 Thread Martin Jambor
Hello, it feels like I have read only a small part of your conversation and so may be missing quite some context, but... On Wed, Mar 22 2023, Benjamin Priour via Gcc wrote: > Hi Jason, > > Sorry for the delayed answer, I was in my exam period! > > I've almost finished the patch (PR12341 >

Re: [GSoC] Conflicted Built-in Trait Name

2023-03-28 Thread Ken Matsui via Gcc
Hi François, I tried to use `make check-debug`, but my Makefile does not include the target. Could you please tell me how you generated your Makefile? FYI, I did this command: `../configure --enable-languages=c++ --disable-error --disable-bootstrap`. Sincerely, Ken Matsui On Mon, Mar 27, 2023

[Bug fortran/109322] New: -fc-prototypes does not correctly translate INTEGER(KIND=C_SIZE_T), and other sizes

2023-03-28 Thread emr-gnu at hev dot psu.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109322 Bug ID: 109322 Summary: -fc-prototypes does not correctly translate INTEGER(KIND=C_SIZE_T), and other sizes Product: gcc Version: 12.2.0 Status: UNCONFIRMED

[Bug tree-optimization/109154] [13 regression] jump threading de-optimizes nested floating point comparisons

2023-03-28 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109154 --- Comment #37 from Andrew Macleod --- Created attachment 54780 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54780=edit in progress patch Well call me a liar. It took me a while to understand why, but if we leave it to single

[Bug c++/109321] [13 Regression] ICE in iterative_hash_template_arg, at cp/pt.cc:1727

2023-03-28 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109321 Jason Merrill changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

Enable 'gfortran.dg/weak-2.f90' for nvptx target (was: Support for WEAK attribute, part 2)

2023-03-28 Thread Thomas Schwinge
Hi! On 2023-02-24T07:16:51+0200, Rimvydas Jasinskas via Fortran wrote: > From 5b83226c714b17780334b5bad9b17c2266af8232 Mon Sep 17 00:00:00 2001 > From: Rimvydas Jasinskas > Date: Fri, 24 Feb 2023 04:41:00 + > Subject: Fortran: Add support for WEAK attribute for variables > > Add the rest

[Patch, fortran] PR87477 - [meta-bug] [F03] issues concerning the ASSOCIATE statement

2023-03-28 Thread Paul Richard Thomas via Gcc-patches
Hi All, I have made a start on ASSOCIATE issues. Some of the low(-ish) hanging fruit are already fixed but I have yet to check that they a really fixed and to close them: pr102106, pr102111, pr104430, pr106048, pr85510, pr87460, pr92960 & pr93338 The attached patch picks up those PRs involving

GSoC Separate Host Process Offloading

2023-03-28 Thread Prasad, Adi via Gcc
Hi all, I’m Adi Prasad, a 2nd year Computing student at Imperial College London, interested in doing the Separate Host Process Offloading GSoC project this summer. First off, I’m aware I’m getting in touch very late; I have been busy up until now with a university project deadline. I am

[Bug libstdc++/109288] std/time/time_zone/get_info_local.cc failure with tzdata2023a

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

[committed] libstdc++: Tell GCC what basic_string::_M_is_local() means [PR109299]

2023-03-28 Thread Jonathan Wakely via Gcc-patches
Tested powerpc64le-linux. Pushed to trunk. -- >8 -- This avoids a bogus warning about overflowing a buffer, because GCC can't tell that we don't copy into the buffer unless it fits. By adding a __builtin_unreachable() hint we inform the compiler about the invariant that the buffer is only used

[committed] libstdc++: More fixes for null pointers used with std::char_traits

2023-03-28 Thread Jonathan Wakely via Gcc-patches
Tested powerpc64le-linux. Pushed to trunk. -- >8 -- The std::char_traits member functions require that [p,p+n) is a valid range, which is true for p==nullptr iff n==0. But we must not call memcpy, memset etc, in that case, as they require non-null pointers even when n==0. This std::char_traits

[committed] libstdc++: Update tzdata to 2023a [PR109288]

2023-03-28 Thread Jonathan Wakely via Gcc-patches
Tested powerpc64le-linux. Pushed to trunk. -- >8 -- Import the new 2023a tzdata.zi file and update the expiry dates of the hardcoded lists of leapseconds to 2023-12-28. With the new data, Africa/Egypt no longer has a single unbroken sys_info from 2014-09-25 to chrono::year::max(). Only check up

[Bug libstdc++/109299] [12/13 Regression] wrong warning on std::wstring with -O2 -std=c++20 -D_FORTIFY_SOURCE=2

2023-03-28 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109299 --- Comment #10 from CVS Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:bf78b43873b0b7e8f9a430df38749b8b61f9c9b8 commit r13-6915-gbf78b43873b0b7e8f9a430df38749b8b61f9c9b8 Author: Jonathan Wakely

[Bug libstdc++/109288] std/time/time_zone/get_info_local.cc failure with tzdata2023a

2023-03-28 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109288 --- Comment #2 from CVS Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:cf19ef9eca82b01dd0a3a0a8e4c8bcec236eb2d9 commit r13-6914-gcf19ef9eca82b01dd0a3a0a8e4c8bcec236eb2d9 Author: Jonathan Wakely

libbacktrace patch committed: Tweaks to zstd decompression

2023-03-28 Thread Ian Lance Taylor via Gcc-patches
In looking over the recently committed support for zstd decompression in libbacktrace, I found a few minor cases that needed fixing. Bootstrapped and tested on x86_64-pc-linux-gnu. Committed to mainline. Ian * elf.c (elf_zstd_read_fse): Call elf_fetch_bits after reading bits, not before. Add

[Bug c++/98939] [C++23] Implement P1787R6 "Declarations and where to find them"

2023-03-28 Thread alisdairm at me dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98939 Alisdair Meredith changed: What|Removed |Added CC||alisdairm at me dot com --- Comment

Open source contribution for Rust Front-End (GSoC)

2023-03-28 Thread Deepanshu Joshi via Gcc
Hello, Myself Deepanshu Joshi, pursuing Bachelors in Computer Science. I would like to display my interest towards the Rust Front End project. Currently I am working on my own compiler and hence contributing to this project will help me expand my knowledge. I would request you to brief me

[Bug tree-optimization/109318] csmith: -fipa-cp seems to cause trouble

2023-03-28 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109318 --- Comment #3 from David Binderman --- Seems broken with gcc-12-20211003. Git hashes seem to be g:c3d3bb0f03dbd025 and g:d91056851c5c60f2

Re: [GSoC] Interest and initial proposal for project on reimplementing cpychecker as -fanalyzer plugin

2023-03-28 Thread David Malcolm via Gcc
On Tue, 2023-03-28 at 08:08 -0400, Eric Feng wrote: > My apologies. Forgot to CC the mailing list in my previous e-mail. > Original reply below: > > ___ > > > Hi David, > > Thank you for your feedback! > > > [...snip...] > > > > > > Error-handling checking: Various checks for common

[Bug c++/109321] [13 Regression] ICE in iterative_hash_template_arg, at cp/pt.cc:1727

2023-03-28 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109321 Marek Polacek changed: What|Removed |Added Target Milestone|--- |13.0 Status|UNCONFIRMED

[Bug c++/109320] [13 Regression] ICE in coerce_template_parameter_pack, at cp/pt.cc:8795

2023-03-28 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109320 Marek Polacek changed: What|Removed |Added Last reconfirmed||2023-03-28 CC|

Re: [PATCH, commited] Fortran: remove dead code [PR104321]

2023-03-28 Thread Thomas Koenig via Gcc-patches
On 26.03.23 08:52, Paul Richard Thomas via Fortran wrote: If you will excuse the British cultural reference, that's a Norwegian Blue alright! Good spot. Still pining for the fjords, I gather?

[Bug c++/109319] [13 Regression] ICE in build_min_non_dep_op_overload, at cp/tree.cc:3793

2023-03-28 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109319 Marek Polacek changed: What|Removed |Added Target Milestone|--- |13.0 Status|UNCONFIRMED

[Bug c++/109321] New: [13 Regression] ICE in iterative_hash_template_arg, at cp/pt.cc:1727

2023-03-28 Thread gscfq--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109321 Bug ID: 109321 Summary: [13 Regression] ICE in iterative_hash_template_arg, at cp/pt.cc:1727 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal

[Bug c++/109320] New: [13 Regression] ICE in coerce_template_parameter_pack, at cp/pt.cc:8795

2023-03-28 Thread gscfq--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109320 Bug ID: 109320 Summary: [13 Regression] ICE in coerce_template_parameter_pack, at cp/pt.cc:8795 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity:

[Bug c++/109319] New: [13 Regression] ICE in build_min_non_dep_op_overload, at cp/tree.cc:3793

2023-03-28 Thread gscfq--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109319 Bug ID: 109319 Summary: [13 Regression] ICE in build_min_non_dep_op_overload, at cp/tree.cc:3793 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity:

[Bug c/107002] [13 Regression] ICE in column_range, at diagnostic-show-locus.cc:2236 since r13-2386-gbedfca647a9e9c1a

2023-03-28 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107002 David Malcolm changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[pushed] Don't emit -Wxor-used-as-pow on macro expansions [PR107002]

2023-03-28 Thread David Malcolm via Gcc-patches
PR c/107002 reports an assertion failure from deep inside the diagnostic_shows_locus when attempting to print fix-it hints relating to -Wxor-used-as-pow. The case involves macro expansions with -ftrack-macro-expansion=0. It doesn't seem to make much sense to emit this warning for macro

[Bug tree-optimization/109318] csmith: -fipa-cp seems to cause trouble

2023-03-28 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109318 --- Comment #2 from David Binderman --- Program seems fine with gcc-11-20210404, but goes wrong with gcc-12-20220403. $ ~/gcc/results.20210404/bin/gcc -w -O1 -fipa-cp bug903.c $ ./a.out checksum = FC4F321 $ ~/gcc/results.20220403/bin/gcc -w

[Bug c/107002] [13 Regression] ICE in column_range, at diagnostic-show-locus.cc:2236 since r13-2386-gbedfca647a9e9c1a

2023-03-28 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107002 --- Comment #5 from CVS Commits --- The master branch has been updated by David Malcolm : https://gcc.gnu.org/g:22c3a6c3c118283dfef1b9928dd21110098679b7 commit r13-6912-g22c3a6c3c118283dfef1b9928dd21110098679b7 Author: David Malcolm Date:

[PATCH] LoongArch: Improve GAR store for va_list

2023-03-28 Thread Xi Ruoyao via Gcc-patches
LoongArch backend used to save all GARs for a function with variable arguments. But sometimes a function only accepts variable arguments for a purpose like C++ function overloading. For example, POSIX defines open() as: int open(const char *path, int oflag, ...); But only two forms are

[Bug sanitizer/109313] Incorrect line number in Use-After-Scope report

2023-03-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109313 --- Comment #1 from Andrew Pinski --- When ccp3 changes (correctly): [local count: 958878296]: .ASAN_MARK (POISON, , 4); [/app/example.cpp:6:24] b.1_2 = b; [/app/example.cpp:6:24] _3 = b.1_2 + 1; [/app/example.cpp:6:24] b = _3;

[Bug tree-optimization/109318] csmith: -fipa-cp seems to cause trouble

2023-03-28 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109318 --- Comment #1 from David Binderman --- In gdb: gdb) r 1 Starting program: /home/dcb36/csmith/a.out 1 [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". Program received signal SIGSEGV,

[PATCH] c++: ICE on loopy var tmpl auto deduction [PR109300]

2023-03-28 Thread Patrick Palka via Gcc-patches
Now that we resolve non-dependent variable template-ids ahead of time, cp_finish_decl needs to handle a new invalid situation: we can end up trying to instantiate a variable template with deduced return type before we fully parsed (and attached) its initializer. Bootstrapped and regtested on

GSoC Project - Bypass Assembler for LTO Object Files

2023-03-28 Thread Hathik H via Gcc
Dear Jan Hubicka, My name is Hathik , and I'm a student . I'm writing to express my interest in the GCC LTO , and to ask for your guidance as I prepare my application. I have some experience in C/C++ programming and a strong interest in low-level systems programming, and I believe that this

[Bug tree-optimization/108357] [13 Regression] Dead Code Elimination Regression at -O2 since r13-4607-g2dc5d6b1e7ec88

2023-03-28 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108357 Xi Ruoyao changed: What|Removed |Added CC||chenglulu at loongson dot cn,

[PATCH v3] RISC-V: Add Z*inx imcompatible check in gcc

2023-03-28 Thread Jiawei
Z*inx is conflict with float extensions, add incompatible check when z*inx and f extension both enabled. Since all float extension imply f extension and all z*inx extension imply zfinx extension, so we just need to check f with zfinx extension as the base case. Co-Authored by: Kito Cheng

[Bug c/109318] New: csmith: -fipa-cp seems to cause trouble

2023-03-28 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109318 Bug ID: 109318 Summary: csmith: -fipa-cp seems to cause trouble Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c

[PATCH v2] rtl-optimization: ppc backend generates unnecessary extension.

2023-03-28 Thread Ajit Agarwal via Gcc-patches
Hello All: This patch makes REE pass as a default pass in rs6000 target. And add necessary subroutines to eliminate extensions across basic blocks. Bootstrapped and regtested on powerpc64-linu-gnu. Thanks & Regards Ajit rtl-optimization: ppc backend generates unnecessary

[Bug libstdc++/103387] powerpc64le: segmentation fault on std::cout with ieee128 long double variable

2023-03-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103387 --- Comment #9 from Jonathan Wakely --- This fixes the testcase, but I'll check for other problems using the cached facets: --- a/libstdc++-v3/include/bits/ostream.tcc +++ b/libstdc++-v3/include/bits/ostream.tcc @@ -69,7 +69,12 @@

[Bug tree-optimization/109154] [13 regression] jump threading de-optimizes nested floating point comparisons

2023-03-28 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109154 --- Comment #36 from Andrew Macleod --- (In reply to Jakub Jelinek from comment #35) > (In reply to Andrew Macleod from comment #34) > > I will poke at whether its possible to cheaply handle a second (or third) > > level for single dependency

[Bug libstdc++/109305] Allocator copy in basic_string::operator=

2023-03-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109305 --- Comment #9 from Jonathan Wakely --- (In reply to Charles-Henri Gros from comment #7) > For context, we're trying to detect cases where using "auto" unintentionally > creates a copy (it's regrettably common). > Here the copy is necessary to

[Bug libstdc++/109305] Allocator copy in basic_string::operator=

2023-03-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109305 --- Comment #8 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #5) > Removing it would make the code less efficient and more complex. In fact, I don't even see how it would be possible, except by making *another* copy, e.g.

[Bug c/107002] [13 Regression] ICE in column_range, at diagnostic-show-locus.cc:2236 since r13-2386-gbedfca647a9e9c1a

2023-03-28 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107002 --- Comment #4 from David Malcolm --- Created attachment 54778 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54778=edit Untested patch (In reply to Jakub Jelinek from comment #3) > David, any progress here? I've currently testing the

[Bug target/109317] New: -Os generates bigger code than -O2 on 32-bit ARM

2023-03-28 Thread pali at kernel dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109317 Bug ID: 109317 Summary: -Os generates bigger code than -O2 on 32-bit ARM Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug libstdc++/109305] Allocator copy in basic_string::operator=

2023-03-28 Thread chgros at synopsys dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109305 --- Comment #7 from Charles-Henri Gros --- For context, we're trying to detect cases where using "auto" unintentionally creates a copy (it's regrettably common). Here the copy is necessary to get a non-const value; that's definitely something

[Bug libstdc++/109305] Allocator copy in basic_string::operator=

2023-03-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109305 --- Comment #6 from Jonathan Wakely --- For your reproducer, the allocator is std::allocator which is an empty class and copying is a no-op. There is no efficiency concern whatsoever.

[Bug libstdc++/109305] Allocator copy in basic_string::operator=

2023-03-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109305 Jonathan Wakely changed: What|Removed |Added Resolution|--- |INVALID Status|WAITING

[Bug libstdc++/109305] Allocator copy in basic_string::operator=

2023-03-28 Thread marc-andre.laverdiere at synopsys dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109305 --- Comment #4 from Marc-André Laverdière --- The comment is "If this allocation throws there are no effects:" and I didn't understand the implications. Thanks for you spelled it out the logic behind it. May I encourage you to update the

[V6][PATCH 0/2] Handle component_ref to a structure/union field including FAM for builtin_object_size

2023-03-28 Thread Qing Zhao via Gcc-patches
Hi, Joseph and Jakub, this is the 6th version of the patch. compared to the 5th version, the major changes are: 1. Update the documentation Per Joseph's comments; 2. Change the name of the new warning option per Jakub's suggestions. 3. Update testing case per the above change. these changes

[V6][PATCH 1/2] Handle component_ref to a structre/union field including flexible array member [PR101832]

2023-03-28 Thread Qing Zhao via Gcc-patches
the C front-end has been approved by Joseph. Jacub, could you please eview the middle end part of the changes of this patch? The major change is in tree-object-size.cc (addr_object_size). (To use the new TYPE_INCLUDE_FLEXARRAY info). This patch is to fix

[Bug tree-optimization/109154] [13 regression] jump threading de-optimizes nested floating point comparisons

2023-03-28 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109154 --- Comment #35 from Jakub Jelinek --- (In reply to Andrew Macleod from comment #34) > I will poke at whether its possible to cheaply handle a second (or third) > level for single dependency defs. Will those include also binary ops which have

[Bug tree-optimization/109154] [13 regression] jump threading de-optimizes nested floating point comparisons

2023-03-28 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109154 --- Comment #34 from Andrew Macleod --- (In reply to Jakub Jelinek from comment #33) > (In reply to Andrew Macleod from comment #32) > > We could in theory expand it to look at 2 levels if its a single operand... > > Yeah, that would help here

Re: [PATCH] c++: Make diagnostic translatable [PR109309]

2023-03-28 Thread Jonathan Wakely via Gcc-patches
Ignore this one - jakub just committed a fix.

[Bug c++/109309] Untranslated text in diagnostic

2023-03-28 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109309 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org

[PATCH] c++: Make diagnostic translatable [PR109309]

2023-03-28 Thread Jonathan Wakely via Gcc-patches
Tested x86_64-linux. OK for trunk? -- >8 -- gcc/cp/ChangeLog: PR c++/109309 * contracts.cc (check_postcondition_result): Use complete strings for diagnostics, so they can be translated. --- gcc/cp/contracts.cc | 8 1 file changed, 4 insertions(+), 4

  1   2   3   >