[Bug other/98375] [meta bug] GCC 12 pending patches

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

[Bug middle-end/98525] potential error in expand_call_inline error handling

2021-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98525 --- Comment #1 from Andrew Pinski --- successfully_inlined = expand_call_inline (bb, stmt, id, to_purge); maybe_remove_unused_call_args (cfun, stmt); /* This used to return true even though we do fail to inline in some

[Bug middle-end/98548] missing warning on strcmp with a nonstring member

2021-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98548 Andrew Pinski changed: What|Removed |Added Keywords||needs-bisection Known to fail|

[Bug tree-optimization/69289] Compiling without --profile-generate causes longer execution time (-O3)

2021-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69289 Andrew Pinski changed: What|Removed |Added Keywords||needs-bisection Known to work|

[Bug c++/89870] C++ suggest header for abort()

2021-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89870 Andrew Pinski changed: What|Removed |Added Resolution|--- |FIXED Depends on|

[Bug c++/89055] wrong location with macros

2021-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89055 Andrew Pinski changed: What|Removed |Added Summary|wrong location with |wrong location with macros

[Bug c++/103659] Declared function template can be deleted later

2021-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103659 --- Comment #2 from Andrew Pinski --- (In reply to Andrew Pinski from comment #1) > Dup of bug 90703. The only reason I knew there was a dup is because I just saw it today when I was going through the C++ bug reports. So I was not doing any

[Bug c++/90703] `=delete` accepted on a second declaration of the same function

2021-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90703 Andrew Pinski changed: What|Removed |Added CC||fchelnokov at gmail dot com --- Comment

[Bug c++/103659] Declared function template can be deleted later

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

[Bug c++/103659] New: Declared function template can be deleted later

2021-12-10 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103659 Bug ID: 103659 Summary: Declared function template can be deleted later Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug c++/87429] Strange overload resolution with decltype in template function

2021-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87429 Andrew Pinski changed: What|Removed |Added Keywords||needs-bisection See Also|

[Bug c++/85493] decltype can use deleted constructor and deleted template function in template function

2021-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85493 Andrew Pinski changed: What|Removed |Added Known to fail||10.1.0, 10.3.0, 7.2.0 Known to

[Bug c++/86697] decltype for lambda capture gives wrong type

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

Re: [PR100843] store by mult pieces: punt on max_len < min_len

2021-12-10 Thread Alexandre Oliva via Gcc-patches
On Dec 10, 2021, Jeff Law wrote: > The patch is clearly safe.  My question is should we have caught this > earlier in the call chain? Callers will call try_store_by_multiple_pieces if set_storage_via_setmem fails. setmem doesn't necessarily need min and max len to do its job, so if we were to

[Bug c++/81202] Concept parsing error for default template arguments

2021-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81202 --- Comment #2 from Andrew Pinski --- Full testcase: #include #include template constexpr bool IsPtrC=std::is_pointer_v&&(std::is_same_v ||std::is_same_v>); template concept IsPtrC2=IsPtrC; template using TEST=int; int main(int

[Bug c++/103534] [12 regression] Spurious -Wstringop-overflow warning with std::string concatencation

2021-12-10 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103534 --- Comment #10 from CVS Commits --- The master branch has been updated by Jason Merrill : https://gcc.gnu.org/g:2e8067041d1d69da02bd7578f58abc11eb35a04b commit r12-5906-g2e8067041d1d69da02bd7578f58abc11eb35a04b Author: Jason Merrill Date:

[Bug c++/91622] Compiler internal error DJGPP GCC

2021-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91622 Andrew Pinski changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

[Bug c++/67491] [meta-bug] concepts issues

2021-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67491 Bug 67491 depends on bug 68858, which changed state. Bug 68858 Summary: Cannot use fold expression in requirements with two parameters packs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68858 What|Removed

[Bug c++/68858] Cannot use fold expression in requirements with two parameters packs

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

[Bug c++/61726] Ambiguous overload resolution with inherited op()s

2021-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61726 Andrew Pinski changed: What|Removed |Added Blocks||12944 --- Comment #3 from Andrew Pinski

[Bug c++/78722] noexcept and function pointers

2021-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78722 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |7.0 Status|UNCONFIRMED

[Bug analyzer/101962] Analyzer NULL false positive with pointer manipulation

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

[Bug jit/103562] Jitted code produces incorrect result when returning 3-member struct from internal function

2021-12-10 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103562 --- Comment #8 from CVS Commits --- The releases/gcc-11 branch has been updated by David Malcolm : https://gcc.gnu.org/g:1250dcee74985eaeacae3b85e5ec78937225d322 commit r11-9375-g1250dcee74985eaeacae3b85e5ec78937225d322 Author: David Malcolm

[Bug analyzer/101962] Analyzer NULL false positive with pointer manipulation

2021-12-10 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101962 --- Comment #5 from CVS Commits --- The releases/gcc-11 branch has been updated by David Malcolm : https://gcc.gnu.org/g:de0656f98640a57cd9dfdb090264afaa06ba46cc commit r11-9374-gde0656f98640a57cd9dfdb090264afaa06ba46cc Author: David Malcolm

[Bug middle-end/103614] Modulo equality optimization

2021-12-10 Thread getchar_gnu at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103614 --- Comment #1 from getchar_gnu at hotmail dot com --- Not sure if related, but something like x%13==8 && x>17 && x<146 can also reduce some code

[Bug c++/96207] GCC accepts "delete" function definition inside a class member function

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

[Bug c++/86430] ambiguous overload?

2021-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86430 Andrew Pinski changed: What|Removed |Added Keywords||needs-bisection Known to fail|

[Bug c++/90529] suggest struct or class

2021-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90529 Andrew Pinski changed: What|Removed |Added Last reconfirmed|2019-05-20 00:00:00 |2021-12-10 Severity|normal

[Bug c++/70077] noexcept, inheriting constructors and the invalid use of an incomplete type that is actually complete

2021-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70077 Andrew Pinski changed: What|Removed |Added Keywords||needs-bisection --- Comment #6 from

[Bug c++/82171] Cant use std::declval in concept testing map operator[]

2021-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82171 Andrew Pinski changed: What|Removed |Added Known to fail||11.1.0 Known to work|

[Bug c++/89367] Constexpr expression is not constexpr in template, but is constexpr in non-template.

2021-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89367 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug c++/97077] Missed loop unrolling with range for over initializer list

2021-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97077 Andrew Pinski changed: What|Removed |Added Last reconfirmed|2020-09-17 00:00:00 |2021-12-10 --- Comment #3 from Andrew

[Bug c++/87680] Small program produces 160 meg .o file

2021-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87680 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug middle-end/103483] context-sensitive ranges change triggers stringop-overread

2021-12-10 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103483 --- Comment #13 from Martin Sebor --- The warning for the test case in comment #12 isn't directly related to ranges: it's issued simply because the invalid statement is in the IL and not eliminated by DCE (the secret functions don't let it).

[Bug inline-asm/98096] Inconsistent operand numbering for asm goto with in-out operands

2021-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98096 --- Comment #6 from Andrew Pinski --- (In reply to Nick Desaulniers from comment #5) > Was it ever consider that the behavior should be changed, rather than > documented? Seems like changing an already documented and released feature seems

[Bug inline-asm/98096] Inconsistent operand numbering for asm goto with in-out operands

2021-12-10 Thread ndesaulniers at google dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98096 --- Comment #5 from Nick Desaulniers --- While the changes to gcc/stmt.c and the second asm goto statement in gcc/testsuite/gcc.c-torture/compile/pr98096.c in

[PATCH] configure: Account CXXFLAGS in gcc-plugin.m4.

2021-12-10 Thread Iain Sandoe via Gcc-patches
While doing tests of the PCH changes, I noticed that all the plugin tests were being omitted from m32 Darwin under some permutations of flags. It turned out to be a broken config test - it was not removing -mdynamic-no-pic properly. We now use a C++ compiler so that we need to process CXXFLAGS

[pushed] libgcc, Darwin: Update darwin10 unwinder shim dependencies.

2021-12-10 Thread Iain Sandoe via Gcc-patches
We include libgcc_tm.h to provide a prototype for this shim so add that to the make dependencies. tested on x86_64-darwin, pushed to master, thanks Iain Signed-off-by: Iain Sandoe libgcc/ChangeLog: * config/t-darwin: Add libgcc_tm.h to the dependencies for

[Bug jit/103562] Jitted code produces incorrect result when returning 3-member struct from internal function

2021-12-10 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103562 --- Comment #7 from David Malcolm --- Should be fixed by the above commit on trunk for gcc 12. Probably should backport this; keeping this open until that's done.

[committed] jit: set DECL_CONTEXT of RESULT_DECL [PR103562]

2021-12-10 Thread David Malcolm via Gcc-patches
libgccjit was failing to set the DECL_CONTEXT of function RESULT_DECLs, leading to them failing to be properly handled by the inlining machinery. Fixed thusly. Successfully bootstrapped & regrtested on x86_64-pc-linux-gnu. Pushed to trunk as r12-5903-ga2f4b4b76cdd0a4150e82e69fae4a70c54b523d2.

[Bug jit/103562] Jitted code produces incorrect result when returning 3-member struct from internal function

2021-12-10 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103562 --- Comment #6 from CVS Commits --- The master branch has been updated by David Malcolm : https://gcc.gnu.org/g:a2f4b4b76cdd0a4150e82e69fae4a70c54b523d2 commit r12-5903-ga2f4b4b76cdd0a4150e82e69fae4a70c54b523d2 Author: David Malcolm Date:

testsuite: Be more informative for ICEs

2021-12-10 Thread Thomas Schwinge
Hi! OK to push the attached "testsuite: Be more informative for ICEs"? Grüße Thomas - Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas Heurung, Frank Thürauf; Sitz der

gcc-10-20211210 is now available

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

Re: [PR100518] store by mult pieces: keep addr in Pmode

2021-12-10 Thread Jeff Law via Gcc-patches
On 12/9/2021 3:18 PM, Alexandre Oliva via Gcc-patches wrote: The conversion of a MEM address to ptr_mode in try_store_by_multiple_pieces was misguided: copy_addr_to_reg expects Pmode for addresses. Regstrapped on x86_64-linux-gnu, testcase verified with a cross to aarch64. Ok to install?

Re: [PR100843] store by mult pieces: punt on max_len < min_len

2021-12-10 Thread Jeff Law via Gcc-patches
On 12/9/2021 3:16 PM, Alexandre Oliva via Gcc-patches wrote: The testcase confuses the code that detects min and max len for the memset, so max_len ends up less than min_len. That shouldn't be possible, but the testcase requires us to handle this case. The store-by-mult-pieces algorithm

[PATCH] c++: Allow constexpr decltype(auto) [PR102229]

2021-12-10 Thread Marek Polacek via Gcc-patches
My r11-2202 was trying to enforce [dcl.type.auto.deduct]/4, which says "If the placeholder-type-specifier is of the form type-constraint[opt] decltype(auto), T shall be the placeholder alone." But this made us reject 'constexpr decltype(auto)', which, after clarification from CWG, should be

[Bug c++/79493] Bad diagnostic when referring to inner type that does not exist

2021-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79493 Andrew Pinski changed: What|Removed |Added Keywords||needs-bisection Known to work|

[Bug c++/88493] Inconsistent error messages for unknown types

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

[Bug c++/88118] GCC keeps unnecessary calls to new

2021-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88118 --- Comment #8 from Andrew Pinski --- (In reply to Andrew Pinski from comment #7) > Fixed in GCC 10 by r10-2105-gcb50701ec2c7a (I found a slight missed > optimization but I will file that as a seperate issue). The slight missed optimization is

[Bug c++/88118] GCC keeps unnecessary calls to new

2021-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88118 Andrew Pinski changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug tree-optimization/102958] std::u8string suboptimal compared to std::string, triggers warnings

2021-12-10 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102958 --- Comment #5 from Jason Merrill --- Let's focus on the missed-optimization issues in this PR, and address the broader diagnostic issues in PR 103483.

[Bug middle-end/103483] context-sensitive ranges change triggers stringop-overread

2021-12-10 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103483 Jason Merrill changed: What|Removed |Added CC||jason at gcc dot gnu.org See

[Bug c++/88118] GCC keeps unnecessary calls to new

2021-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88118 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement See Also|

[Bug c++/38172] warn_unused_result does not work with structs not containing a copy constructor

2021-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38172 --- Comment #16 from Andrew Pinski --- (In reply to Martin Liška from comment #15) > Can the bug be marked as resolved? Not exactly with an empty struct we warn twice. That is take: struct MyClass{}; typedef struct MyClass MyClass; MyClass

[Bug fortran/103606] [9/10/11/12 Regression] ICE in resolve_fl_procedure, at fortran/resolve.c:13297 since r9-3324-g2b03b800d866d345

2021-12-10 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103606 anlauf at gcc dot gnu.org changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |anlauf at gcc dot

[PATCH] PR fortran/103606 - [9/10/11/12 Regression] ICE in resolve_fl_procedure, at fortran/resolve.c:13297

2021-12-10 Thread Harald Anlauf via Gcc-patches
Dear all, when accessing CLASS components we need to ensure that the corresponding class container has already been built. Invalid code, e.g. the testcase in PR103606, may otherwise generate segfaults due to invalid reads. Regtested on x86_64-pc-linux-gnu. OK for mainline / branches? Thanks,

[Bug analyzer/103658] missing -Wanalyzer-use-of-uninitialized-value at -O1 and below for an array access

2021-12-10 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103658 --- Comment #1 from Martin Sebor --- Actually, what I was really after is trying to see if the analyzer would print the conditionals involved in the subscript expressions. But in the simple test case in comment #0 there are no conditionals.

[Bug c++/58950] Missing "statement has no effect"

2021-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58950 --- Comment #26 from Andrew Pinski --- (In reply to Andrew Pinski from comment #25) > (In reply to Marc Glisse from comment #6) > > For: > > > > void f(){ > > int i = 2; > > (i+i); > > } > > This case is fixed on the trunk: > > : In

[Bug c++/58950] Missing "statement has no effect"

2021-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58950 Andrew Pinski changed: What|Removed |Added Keywords||needs-bisection --- Comment #25 from

Re: [PATCH] Replace gnu::unique_ptr with std::unique_ptr

2021-12-10 Thread Jonathan Wakely via Gcc-patches
On 10/12/21 21:20 +, Jonathan Wakely wrote: Ping Oh sorry, Jakub already replied to this (after I mentioned it on IRC) and approved it. Un-ping! On 09/11/21 17:51 +, Jonathan Wakely wrote: Now that GCC is compiled as C++11 there is no need to keep the C++03 implementation of

[Bug analyzer/103658] New: missing -Wanalyzer-use-of-uninitialized-value at -O1 and below for an array access

2021-12-10 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103658 Bug ID: 103658 Summary: missing -Wanalyzer-use-of-uninitialized-value at -O1 and below for an array access Product: gcc Version: 12.0 Status: UNCONFIRMED

[Bug c++/86870] Declaration disambiguation is too greedy

2021-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86870 --- Comment #2 from Andrew Pinski --- GCC, clang, MSVC and ICC all reject it.

Re: [PATCH] pch: Small cleanup

2021-12-10 Thread Jeff Law via Gcc-patches
On 12/10/2021 5:56 AM, Jakub Jelinek wrote: On Thu, Dec 09, 2021 at 05:59:54PM +0100, Jakub Jelinek via Gcc-patches wrote: /tmp/6140018_6.tmpdir/aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/config/aarch64/aarch64-sve-builtins.cc:3920:0: ./gt-aarch64-sve-builtins.h: In function 'void

Re: [PATCH] Replace gnu::unique_ptr with std::unique_ptr

2021-12-10 Thread Jonathan Wakely via Gcc-patches
Ping On 09/11/21 17:51 +, Jonathan Wakely wrote: Now that GCC is compiled as C++11 there is no need to keep the C++03 implementation of gnu::unique_ptr. This removes the unique-ptr.h header and replaces it with in system.h, and changes the INCLUDE_UNIQUE_PTR macro to INCLUDE_MEMORY. Uses

[Bug ipa/103601] [12 Regression] ICE in insert_kill, at ipa-modref-tree.c:84 since r12-5244-g64f3e71c302b4a13

2021-12-10 Thread roger at nextmovesoftware dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103601 Roger Sayle changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug fortran/103606] [9/10/11/12 Regression] ICE in resolve_fl_procedure, at fortran/resolve.c:13297 since r9-3324-g2b03b800d866d345

2021-12-10 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103606 anlauf at gcc dot gnu.org changed: What|Removed |Added CC||anlauf at gcc dot gnu.org

[Bug c++/92053] Compilation fails or succeeds depending on the optimization flags

2021-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92053 Andrew Pinski changed: What|Removed |Added Keywords||needs-bisection Last

Re: [PATCH] gengtype: remove "tree_exp" special attribute

2021-12-10 Thread Jeff Law via Gcc-patches
On 12/10/2021 8:41 AM, Patrick Palka via Gcc-patches wrote: The function comment for adjust_field_tree_exp says this special case is for handling trees whose operands may contain pointers to RTL instead of to trees. But ever since r0-59671, which fixed/removed the last two tree codes for

[Bug c++/78217] Duplicate decls handling with auto

2021-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78217 Andrew Pinski changed: What|Removed |Added CC||lebedev.ri at gmail dot com --- Comment

[Bug c++/85932] GCC incorrectly rejects mismatch of types, instead of retrying after type deduction.

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

[Bug target/103623] [12 Regression] error: unable to generate reloads (ICE in curr_insn_transform, at lra-constraints.c:4132), or error: insn does not satisfy its constraints (ICE in extract_constrain

2021-12-10 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103623 Peter Bergner changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug c/103645] Gimplifier does not remove empty struct stores in a few cases

2021-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103645 Andrew Pinski changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |pinskia at gcc dot gnu.org

[Bug objc/103639] [11/12 Regression] switch case with break in fast enumeration loop generates wrong code

2021-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103639 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |11.3 CC|

[Bug target/103657] GCC can no longer catch EH on x86_64-w64-mingw32 hosted 64 bits

2021-12-10 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103657 --- Comment #3 from cqwrteur --- https://sourceware.org/bugzilla/show_bug.cgi?id=28682

[Bug tree-optimization/103647] constant array comparison not always folded

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

[Bug tree-optimization/103647] constant array comparison not always folded

2021-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103647 --- Comment #1 from Andrew Pinski --- well f should be optimized to return true while g should be optimized to return false.

[Bug fortran/103610] ICE in gfc_convert_mpz_to_signed, at fortran/simplify.c:193

2021-12-10 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103610 --- Comment #6 from CVS Commits --- The releases/gcc-11 branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:3459ef2e9f9cd4d3ed64c9bc44282534a24987b8 commit r11-9372-g3459ef2e9f9cd4d3ed64c9bc44282534a24987b8 Author: Harald Anlauf

[Bug gcov-profile/100788] Internal compiler error related to #line macros(?)

2021-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100788 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |10.4 Known to work|

[Bug gcov-profile/100788] Internal compiler error related to #line macros(?)

2021-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100788 Andrew Pinski changed: What|Removed |Added CC||andre.schackier at gmail dot com ---

[Bug gcov-profile/103651] Using "#Line 0" in a function with "-coverage" crashes the compiler

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

[Bug fortran/103607] [9/10/11/12 Regression] ICE in do_subscript, at fortran/frontend-passes.c:2927

2021-12-10 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103607 anlauf at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[Bug target/103657] GCC can no longer catch EH on x86_64-w64-mingw32 hosted 64 bits

2021-12-10 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103657 --- Comment #2 from cqwrteur --- D:\hg\fast_io\tests\0017.error>g++ -o error error.cc -Ofast -std=c++2b -s -march=native -I../../include -lntdll -fuse-ld=lld D:\hg\fast_io\tests\0017.error>error errc:no_such_file_or_directory clang++ -o

[Bug c++/103657] GCC can no longer catch EH on x86_64-w64-mingw32 hosted 64 bits

2021-12-10 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103657 --- Comment #1 from cqwrteur --- D:\hg\fast_io\tests\0017.error>g++ -o error error.cc -Ofast -std=c++2b -s -flto -march=native -I../../include -lntdll D:\hg\fast_io\tests\0017.error>error D:\hg\fast_io\tests\0017.error>clang++ -o error

[Bug c++/103657] New: GCC can no longer throw EH on x86_64-w64-mingw32 hosted 64 bits

2021-12-10 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103657 Bug ID: 103657 Summary: GCC can no longer throw EH on x86_64-w64-mingw32 hosted 64 bits Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug target/103656] make install-strip -j cannot find x86_64-w64-mingw32-strip for canadian compilation

2021-12-10 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103656 --- Comment #1 from cqwrteur --- rm -rf /home/cqwrteur/canadian/x86_64-w64-mingw32/libexec/gcc/x86_64-w64-mingw32/12.0.0/install-tools rm: cannot remove

[Bug target/103656] New: make install-strip -j cannot find x86_64-w64-mingw32-strip for canadian compilation

2021-12-10 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103656 Bug ID: 103656 Summary: make install-strip -j cannot find x86_64-w64-mingw32-strip for canadian compilation Product: gcc Version: 12.0 Status: UNCONFIRMED

Re: [PATCH] vect: Add bias parameter for partial vectorization

2021-12-10 Thread Richard Sandiford via Gcc-patches
Robin Dapp writes: > Hi Kewen, Richard, > > thanks for the comments, I addressed them in the attached v4. Sorry again for the slow review. I only have some very minor comments left: > Bootstrap and regtest are good as before. > > Regards > Robin > > diff --git a/gcc/config/rs6000/vsx.md

[PATCH] c++: processing_template_decl vs template depth [PR103408]

2021-12-10 Thread Patrick Palka via Gcc-patches
We use processing_template_decl in two slightly different ways: as a flag to signal that we're dealing with templated trees, and its magnitude is also used as a proxy for the current syntactic template depth. This overloaded meaning of p_t_d is conceptually confusing and leads to bugs that we end

Re: [PATCH] jit: Add support for global rvalue initialization and ctors

2021-12-10 Thread Marc Nieper-Wißkirchen via Gcc-patches
Hi, I would favor adding support for this kind of initialization to libgccjit. Does it also support the libgccjit equivalent of the following C module, which contains forward references in the struct initializers? struct bar bar; struct foo foo; struct foo { struct bar *b; }; struct bar {

Re: [PATCH] Replace gnu::unique_ptr with std::unique_ptr

2021-12-10 Thread Jakub Jelinek via Gcc-patches
On Tue, Nov 09, 2021 at 05:51:27PM +, Jonathan Wakely via Gcc-patches wrote: > Now that GCC is compiled as C++11 there is no need to keep the C++03 > implementation of gnu::unique_ptr. > > This removes the unique-ptr.h header and replaces it with in > system.h, and changes the

Re: pr103523: Check for PLUS/MINUS support

2021-12-10 Thread Richard Sandiford via Gcc-patches
Joel Hutton writes: > ok for backport to 11? Yes, thanks. Richard

[Bug fortran/103607] [9/10/11/12 Regression] ICE in do_subscript, at fortran/frontend-passes.c:2927

2021-12-10 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103607 --- Comment #6 from CVS Commits --- The releases/gcc-9 branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:8b1dae4d33285643c5f51d828aa6f31ffbfc33b7 commit r9-9863-g8b1dae4d33285643c5f51d828aa6f31ffbfc33b7 Author: Harald Anlauf

[Bug fortran/103607] [9/10/11/12 Regression] ICE in do_subscript, at fortran/frontend-passes.c:2927

2021-12-10 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103607 --- Comment #5 from CVS Commits --- The releases/gcc-10 branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:45cbfabe01878c3efd8b24f3fef06baf48983308 commit r10-10330-g45cbfabe01878c3efd8b24f3fef06baf48983308 Author: Harald Anlauf

[PATCH] Leverage sysroot for VxWorks

2021-12-10 Thread Olivier Hainque via Gcc-patches
Hello, The build of a VxWorks toolchain relies a lot on system headers and VxWorks has a few very specific features that require special processing. For example, different sets of headers for the kernel vs the rtp modes, which the compiler knows about by way of -mrtp on the command line. If we

Re: [PATCH] #undef isblank before def or decl in libstdc++ headers

2021-12-10 Thread Jonathan Wakely via Gcc-patches
On Fri, 10 Dec 2021 at 17:07, Olivier Hainque via Libstdc++ wrote: > > Hello, > > The attached patch helps fix a build failure of libstdc++ > on some variants of VxWorks where the system headers expose > an "isblank" macro. > > I understand this kind of thing normally is handled through >

[Bug libstdc++/103655] New: "x" does not exist on windows and dos

2021-12-10 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103655 Bug ID: 103655 Summary: "x" does not exist on windows and dos Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++

Re: [committed] libstdc++: Disable over-zealous warnings about std::string copies [PR103332]

2021-12-10 Thread Jonathan Wakely via Gcc-patches
On Fri, 10 Dec 2021 at 17:17, Jakub Jelinek wrote: > > On Fri, Dec 10, 2021 at 10:11:04AM -0700, Martin Sebor via Gcc-patches wrote: > > On 12/10/21 9:41 AM, Jakub Jelinek wrote: > > > On Fri, Dec 10, 2021 at 09:35:50AM -0700, Martin Sebor via Gcc-patches > > > wrote: > > > > The above was just a

[Bug jit/103562] Jitted code produces incorrect result when returning 3-member struct from internal function

2021-12-10 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103562 David Malcolm changed: What|Removed |Added Status|NEW |ASSIGNED --- Comment #5 from David

Re: [committed] libstdc++: Disable over-zealous warnings about std::string copies [PR103332]

2021-12-10 Thread Jonathan Wakely via Gcc-patches
On Fri, 10 Dec 2021 at 16:35, Martin Sebor wrote: > > On 12/10/21 3:12 AM, Jonathan Wakely wrote: > > On Fri, 10 Dec 2021 at 01:50, Martin Sebor via Libstdc++ > > wrote: > >> > >> On 12/9/21 5:38 PM, Martin Sebor wrote: > >>> On 12/9/21 4:24 PM, Jonathan Wakely via Gcc-patches wrote: >

[pushed] c++: Add test for C++23 auto(x)

2021-12-10 Thread Marek Polacek via Gcc-patches
I was curious if our auto(x) works in contexts like bit-field width and similar. It appears that it does. Might be worth adding a test for it. Tested x86_64-pc-linux-gnu, applying to trunk. gcc/testsuite/ChangeLog: * g++.dg/cpp23/auto-fncast10.C: New test. ---

  1   2   3   >