[Bug target/99217] [MIPS] wrong function entry with -fpatchable-function-entry

2021-12-03 Thread huangpei at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99217 --- Comment #5 from huangpei at loongson dot cn --- Hi, with this fix and bug 93242 fixed, a.c with mips16 is OK, ambrosehua@3A1000-800M:~$ gcc -fpatchable-function-entry=3 -mips16 -mabi=32 -c a.c -S -o a.1.s ambrosehua@3A1000-800M:~$ cat

[Bug c++/97222] GCC discards attributes aligned and may_alias for typedefs passed as template arguments

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

[Bug c++/100742] False positive -Wignored-attributes with std::map and aligned(8) attribute

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

[Bug c++/97222] GCC discards attributes aligned and may_alias for typedefs passed as template arguments

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

[Bug c++/84055] warning: ignoring attributes on template argument ‘cl_uint {aka unsigned int}’ [-Wignored-attributes]

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

[Bug c++/97222] GCC discards attributes aligned and may_alias for typedefs passed as template arguments

2021-12-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97222 Andrew Pinski changed: What|Removed |Added CC||paul.groke at dynatrace dot com ---

[Bug c++/82270] incorrect warning [-Wignored-attributes]

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

[Bug c++/60402] [DR 1395] const overload with variadics declared ambiguous according to standard

2021-12-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60402 Andrew Pinski changed: What|Removed |Added Status|SUSPENDED |NEW --- Comment #3 from Andrew Pinski

[Bug rtl-optimization/103550] 2 more instructions generated by gcc than clang

2021-12-03 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103550 --- Comment #7 from cqwrteur --- (In reply to Andrew Pinski from comment #5) > (In reply to cqwrteur from comment #4) > > (In reply to Andrew Pinski from comment #2) > > > Looks like it is a register allocation/scheduling issue. The extra > > >

[Bug rtl-optimization/103550] 2 more instructions generated by gcc than clang

2021-12-03 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103550 --- Comment #6 from cqwrteur --- (In reply to Andrew Pinski from comment #5) > (In reply to cqwrteur from comment #4) > > (In reply to Andrew Pinski from comment #2) > > > Looks like it is a register allocation/scheduling issue. The extra > > >

[Bug rtl-optimization/103550] 2 more instructions generated by gcc than clang

2021-12-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103550 --- Comment #5 from Andrew Pinski --- (In reply to cqwrteur from comment #4) > (In reply to Andrew Pinski from comment #2) > > Looks like it is a register allocation/scheduling issue. The extra > > instructions are mov. > > Are there good

[Bug c++/59704] Wrong overload chosen, compiler errornously thinks non-constant zero expression is implicitly castable to null pointer

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

[Bug rtl-optimization/103550] 2 more instructions generated by gcc than clang

2021-12-03 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103550 --- Comment #4 from cqwrteur --- (In reply to Andrew Pinski from comment #2) > Looks like it is a register allocation/scheduling issue. The extra > instructions are mov. Are there good algos that can allocate registers optimal?

[Bug rtl-optimization/103550] 2 more instructions generated by gcc than clang

2021-12-03 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103550 --- Comment #3 from cqwrteur --- (In reply to Andrew Pinski from comment #2) > Looks like it is a register allocation/scheduling issue. The extra > instructions are mov. yeah. I feel gcc generally has issues with register allocations.

[Bug rtl-optimization/103550] 2 more instructions generated by gcc than clang

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

[Bug rtl-optimization/103550] 2 more instructions generated by gcc than clang

2021-12-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103550 --- Comment #1 from Andrew Pinski --- #include #include inline constexpr std::uint_least64_t s0(std::uint_least64_t x) noexcept { return std::rotr(x,1)^std::rotr(x,8)^(x>>7); } inline constexpr std::uint_least64_t s1(auto x) noexcept

[Bug c++/59704] Wrong overload chosen, compiler errornously thinks non-constant zero expression is implicitly castable to null pointer

2021-12-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59704 --- Comment #3 from Andrew Pinski --- (In reply to Arthur O'Dwyer from comment #2) > Here is another example: > https://wandbox.org/permlink/UYsLyMaLcBb6sjJa That is PR 52145.

[Bug rtl-optimization/103550] New: 2 more instructions generated by gcc than clang

2021-12-03 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103550 Bug ID: 103550 Summary: 2 more instructions generated by gcc than clang Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug c++/52145] [C++11] [DR 903] zero-valued integer constant expression should prefer conversion to pointer

2021-12-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52145 Andrew Pinski changed: What|Removed |Added Blocks|88655 |94404 Alias|

[Bug c++/52145] [C++11] [DR 903] zero-valued integer constant expression should prefer conversion to pointer

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

[Bug c++/77712] [DR903] int() is incorrectly treated as a null pointer constant in C++11 and later

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

[Bug c++/52145] [C++11] [DR 903] zero-valued integer constant expression should prefer conversion to pointer

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

[Bug c++/88655] Different overloaded function being called depending on which compiler is used

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

Re: [power-ieee128] What should the math functions be annotated with?

2021-12-03 Thread Michael Meissner via Gcc
On Fri, Dec 03, 2021 at 08:57:54AM -0600, Bill Schmidt wrote: > Hi! > > On 12/3/21 5:56 AM, Thomas Koenig wrote: > > > > Hi Jakub, > > > >> Note, we want to test both building gcc on ppc64le with older glibc > >> and newer glibc (and that libgfortran will have the same ABI between both > >> and

[Bug c++/65707] internal compiler error: in unify, at cp/pt.c:18577

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

[Bug c++/60223] [c++11] ICE with C++11-style default template parameter

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

Re: [PATCH] libgccjit: Add support for types used by atomic builtins [PR96066] [PR96067]

2021-12-03 Thread Antoni Boucher via Gcc-patches
David: PING In case you missed it, that's the last patch left to review for now. Le dimanche 21 novembre 2021 à 16:44 -0500, Antoni Boucher a écrit : > Thanks for the review! > I updated the patch. > > See notes below. > > Le samedi 20 novembre 2021 à 13:50 -0500, David Malcolm a écrit : > >

[Bug rtl-optimization/103028] ICE in extract_constrain_insn, at recog.c:2670

2021-12-03 Thread aoliva at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103028 Alexandre Oliva changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug rtl-optimization/103028] ICE in extract_constrain_insn, at recog.c:2670

2021-12-03 Thread aoliva at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103028 --- Comment #8 from Alexandre Oliva --- Fixed

[Bug c++/90391] nonconforming value initialization when type T has a base class with a user-defined default constructor

2021-12-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90391 Andrew Pinski changed: What|Removed |Added Last reconfirmed|2019-06-12 00:00:00 |2021-12-3 --- Comment #2 from Andrew

[Bug c++/86473] a problem in member lookup?

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

[Bug c++/90412] g++ suggest did you mean for namespace

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

[Bug c++/70438] result type of vector operations

2021-12-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70438 --- Comment #4 from Andrew Pinski --- The documentation says: The result of the comparison is a vector of the same width and number of elements as the comparison operands with a signed integral element type. But it is obviously not true.

[Bug rtl-optimization/103028] ICE in extract_constrain_insn, at recog.c:2670

2021-12-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103028 --- Comment #7 from CVS Commits --- The master branch has been updated by Alexandre Oliva : https://gcc.gnu.org/g:daca416fc2816a5e481b26c8d2010127101d77ce commit r12-5787-gdaca416fc2816a5e481b26c8d2010127101d77ce Author: Alexandre Oliva

[Bug c++/65994] auto deduces object instead of initializer_list

2021-12-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65994 --- Comment #4 from Andrew Pinski --- CWG2038 : http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#2038 Looks like it is explicit that there should be a difference between C++11/14 and C++17 But I can't find a compiler which

[Bug c++/85589] Non type template parameter should allow object with no linkage

2021-12-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85589 --- Comment #3 from Andrew Pinski --- I suspect r9-3836-g4be5c72cf3ea3 fixed this (maybe on accident).

[Bug c++/77950] GCC produces un-demanglable symbols with [] (auto&) { ... } lambdas in templates

2021-12-03 Thread ian at airs dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77950 --- Comment #2 from Ian Lance Taylor --- Just a note that my Go demangler does demangle this symbol now, producing ossia::vec_merger_impl<2>::operator() > >, ossia::strong_value > >, ossia::strong_value > >, ossia::strong_value > >,

[Bug c++/83258] Rejecting function pointer non-type template parameter without linkage

2021-12-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83258 --- Comment #11 from Andrew Pinski --- (In reply to Jonathan Wakely from comment #4) > Testcase from Bug 85589: > > template struct foo {}; > > int main() { > static auto v = "str"; > (void) foo {}; > } Note comment #4

[Bug libstdc++/103549] [12 regression] Uninitialized member warning from regex header

2021-12-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103549 Jonathan Wakely changed: What|Removed |Added Last reconfirmed||2021-12-04 Ever confirmed|0

[Bug c++/85589] Non type template parameter should allow object with no linkage

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

[PATCH v2] c++: Handle auto(x) in parameter-declaration-clause [PR103401]

2021-12-03 Thread Marek Polacek via Gcc-patches
On Thu, Dec 02, 2021 at 12:56:38PM -0500, Jason Merrill wrote: > On 12/2/21 10:27, Marek Polacek wrote: > > On Wed, Dec 01, 2021 at 11:24:58PM -0500, Jason Merrill wrote: > > > On 12/1/21 10:16, Marek Polacek wrote: > > > > In C++23, auto(x) is valid, so decltype(auto(x)) should also be valid, > >

List-Unsubscribe

2021-12-03 Thread Joseph Ayers via Gcc
List-Unsubscribe

Re: odd internal failure

2021-12-03 Thread Gabriel Ravier via Gcc
On 12/4/21 00:54, Gary Oblock via Gcc wrote: David, Thanks, I've bookmarked your advice. I do use gdb but I've always found the macros in common use are the biggest hurdle. In addition C++ has its own associated difficulties. Note, in the past working on other compilers I've always tried to

[Bug c++/57570] Deduction succeeds despite type mismatch of non-type template parameter and deduced argument

2021-12-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57570 Andrew Pinski changed: What|Removed |Added Known to fail||5.1.0, 6.1.0, 7.1.0, 7.5.0 Ever

Re: [PATCH] fix up compute_objsize (including PR 103143)

2021-12-03 Thread Jeff Law via Gcc-patches
On 11/8/2021 7:34 PM, Martin Sebor via Gcc-patches wrote: The pointer-query code that implements compute_objsize() that's in turn used by most middle end access warnings now has a few warts in it and (at least) one bug.  With the exception of the bug the warts aren't behind any user-visible

Re: odd internal failure

2021-12-03 Thread Gary Oblock via Gcc
David, Thanks, I've bookmarked your advice. I do use gdb but I've always found the macros in common use are the biggest hurdle. In addition C++ has its own associated difficulties. Note, in the past working on other compilers I've always tried to have a function version of the macros available.

[Bug libstdc++/103549] New: [12 regression] Uninitialized member warning from regex header

2021-12-03 Thread sss--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103549 Bug ID: 103549 Summary: [12 regression] Uninitialized member warning from regex header Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

Re: [PATCH] rs6000: Builtins test changes for test_fpscr_[d]rn_builtin_error.c

2021-12-03 Thread Peter Bergner via Gcc-patches
On 12/2/21 4:24 PM, Segher Boessenkool wrote: > On Thu, Dec 02, 2021 at 10:43:24AM -0600, Bill Schmidt wrote: >> The new built-in infrastructure is now enabled! > > Congratulations, and thanks for all the work! A big +1! Peter

Re: [PATCH v2] rs6000: Fix some issues in rs6000_can_inline_p [PR102059]

2021-12-03 Thread Peter Bergner via Gcc-patches
On 12/2/21 9:46 PM, Kewen.Lin via Gcc-patches wrote: > on 2021/11/30 上午12:57, Segher Boessenkool wrote: >> On Wed, Sep 01, 2021 at 02:55:51PM +0800, Kewen.Lin wrote: >>> This patch is to fix the inconsistent behaviors for non-LTO mode >>> and LTO mode. As Martin pointed out, currently the

[Bug target/103271] ICE in assign_stack_temp_for_type with -ftrivial-auto-var-init=pattern and VLAs and -mno-strict-align on riscv64

2021-12-03 Thread wilson at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103271 Jim Wilson changed: What|Removed |Added CC||kito.cheng at gmail dot com --- Comment

Re: [PATCH] libcpp: Fix up handling of deferred pragmas [PR102432]

2021-12-03 Thread Marek Polacek via Gcc-patches
On Fri, Dec 03, 2021 at 11:27:27AM +0100, Jakub Jelinek wrote: > Hi! > > The https://gcc.gnu.org/pipermail/gcc-patches/2020-November/557903.html > change broke the following testcases. The problem is when a pragma > namespace allows expansion (i.e. p->is_nspace && p->allow_expansion), > e.g. the

[Bug c++/70932] flexible array member with non-trivial destructor

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

[Bug c++/70932] flexible array member with non-trivial destructor

2021-12-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70932 Andrew Pinski changed: What|Removed |Added Known to fail||8.1.0, 9.1.0, 9.4.0 Keywords|

[committed] libstdc++: Simplify emplace member functions in _Rb_tree

2021-12-03 Thread Jonathan Wakely via Gcc-patches
Tested powerpc64le-linux, pushed to trunk. This introduces a new RAII type to simplify the emplace members which currently use try-catch blocks to deallocate a node if an exception is thrown by the comparisons done during insertion. The new type is created on the stack and manages the allocation

[Bug libstdc++/92300] Useless allocator call in std::map, when insert does not perform any insertion.

2021-12-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92300 --- Comment #5 from Jonathan Wakely --- Created attachment 51924 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51924=edit Patch to avoid creating a node if inserting something key-like into a map This avoids the allocate/deallocate pair

[Bug libstdc++/92300] Useless allocator call in std::map, when insert does not perform any insertion.

2021-12-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92300 --- Comment #4 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #3) > This inserts the correct value type, and doesn't perform an addition > allocation: > > assert(a.insert(std::pair(1, 1)).second); >

[Bug c++/82873] Generated copy constructor calls constructors for 0-sized array members

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

Re: std::basic_string<_Tp> constructor point of instantiation woes?

2021-12-03 Thread Jonathan Wakely via Gcc-patches
On Mon, 22 Nov 2021 at 16:31, Stephan Bergmann via Libstdc++ wrote: > > When using recent libstc++ trunk with Clang in C++20 mode, > std::u16string literals as in > > > #include > > int main() { > > using namespace std::literals; > > u""s; > > } > > started to cause linker failures due to

gcc-10-20211203 is now available

2021-12-03 Thread GCC Administrator via Gcc
Snapshot gcc-10-20211203 is now available on https://gcc.gnu.org/pub/gcc/snapshots/10-20211203/ 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

[Bug target/101324] powerpc64le: hashst appears before mflr at -O1 or higher

2021-12-03 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101324 --- Comment #23 from Peter Bergner --- (In reply to Peter Bergner from comment #22) > So this is also broken in GCC11, so I'm testing the simple backport. Regression testing of the backport was clean. Just need approval for the backport.

Re: rs6000: Fix up flag_shrink_wrap handling in presence of -mrop-protect [PR101324]

2021-12-03 Thread Peter Bergner via Gcc-patches
On 12/3/21 3:27 PM, Peter Bergner wrote: > On 12/3/21 2:39 PM, Peter Bergner wrote: >> On 10/29/21 4:45 PM, Segher Boessenkool wrote: >>> On Wed, Oct 27, 2021 at 10:17:39PM -0500, Peter Bergner wrote: 2021-10-27 Martin Liska gcc/ PR target/101324 *

[Bug c++/82873] Generated copy constructor calls constructors for 0-sized array members

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

[Bug c++/57977] zero-length const array in union prohibits default copy ctor

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

[Bug c++/82873] Generated copy constructor calls constructors for 0-sized array members

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

[pushed] c++: avoid redundant scope in diagnostics

2021-12-03 Thread Jason Merrill via Gcc-patches
We can make some function signatures shorter to print by omitting redundant nested-name-specifiers in the rest of the declarator. Tested x86_64-pc-linux-gnu, applying to trunk. gcc/cp/ChangeLog: * error.c (current_dump_scope): New variable. (dump_scope): Check it.

[Bug libstdc++/70692] No warning when std::function binds a reference to a temporary

2021-12-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70692 --- Comment #5 from Jonathan Wakely --- "A type trait to detect reference binding to temporary" https://wg21.link/p2255r2 is the current direction to resolve this.

[Bug c++/103540] diagnosting concept depends on itself

2021-12-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103540 Jonathan Wakely changed: What|Removed |Added Keywords||diagnostic --- Comment #1 from

[Bug c++/97222] GCC discards attributes aligned and may_alias for typedefs passed as template arguments

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

[Bug c++/84415] Using __m128 as a template parameter causes warnings

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

[Bug bootstrap/103547] [12 Regression] Bootstrap failure with --with-cpu=skylake-avx512

2021-12-03 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103547 --- Comment #3 from H.J. Lu --- r12-5778 builds now. It has happened once before. I will leave it open until we find out exactly what is going on.

[PATCH] pru: Fixup flags for .pru_irq_map section

2021-12-03 Thread Dimitar Dimitrov
I intend to merge this patch next week, unless I hear objections. I consider it a bug fix which fits the Stage 3 criteria. It fixes the RPMSG firmware examples in the latest version 6.0 of TI's PRU Software Package. The .pru_irq_map section has been introduced by Linux kernel 5.10:

[Bug target/101324] powerpc64le: hashst appears before mflr at -O1 or higher

2021-12-03 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101324 Peter Bergner changed: What|Removed |Added Known to fail||11.0 Target Milestone|12.0

Re: rs6000: Fix up flag_shrink_wrap handling in presence of -mrop-protect [PR101324]

2021-12-03 Thread Peter Bergner via Gcc-patches
On 12/3/21 2:39 PM, Peter Bergner wrote: > On 10/29/21 4:45 PM, Segher Boessenkool wrote: >> On Wed, Oct 27, 2021 at 10:17:39PM -0500, Peter Bergner wrote: >>> 2021-10-27 Martin Liska >>> >>> gcc/ >>> PR target/101324 >>> * config/rs6000/rs6000.c (rs6000_option_override_internal): Move

[Bug fortran/103505] ICE in compare_bound_mpz_t, at fortran/resolve.c:4587 since r8-7594-g078c5aff5ed83e9c

2021-12-03 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103505 --- Comment #11 from anlauf at gcc dot gnu.org --- (In reply to Steve Kargl from comment #10) > On Thu, Dec 02, 2021 at 09:51:23PM +, anlauf at gcc dot gnu.org wrote: > > > > Submitted as: > >

[Bug fortran/103283] ICE in gfc_trans_array_constructor_subarray, at fortran/trans-array.c:1972

2021-12-03 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103283 anlauf at gcc dot gnu.org changed: What|Removed |Added Keywords||wrong-code --- Comment #4

[Bug bootstrap/103547] [12 Regression] Bootstrap failure with --with-cpu=skylake-avx512

2021-12-03 Thread tnfchris at gcc dot gnu.org via Gcc-bugs
ead model: posix Supported LTO compression algorithms: zlib zstd gcc version 12.0.0 20211203 (experimental) (GCC) with a base gcc of 7.5.0, what bootstrap gcc are you using?

[Bug target/101324] powerpc64le: hashst appears before mflr at -O1 or higher

2021-12-03 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101324 --- Comment #21 from Peter Bergner --- Fixed on trunk.

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

2021-12-03 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98939 --- Comment #7 from Jason Merrill --- (In reply to Andrew Pinski from comment #6) > Note I think this paper applies to C++20 too or at least part of it. > > From CWG1291: > [Accepted at the November, 2020 meeting as part of paper P1787R6 and

[PATCH 2/2] Use dominators to reduce ranger cache-flling.

2021-12-03 Thread Andrew MacLeod via Gcc-patches
When a request is made for the range of an ssa_name at some location, the first thing we do is invoke range_of_stmt() to ensure we have looked at the definition and have an evaluation for the name at a global level.  I recently added a patch which dramatically reduces the call stack

[PATCH 1/2] - Add BB option for outgoing_edge_range_p.

2021-12-03 Thread Andrew MacLeod via Gcc-patches
has_edge_range_p() and may_recompute_p() currently only take an optional edge as a parameter.  They only indicate if a range *might* be calculated for a name, but they do not do any calculations. To determine the results, they always consult the exports for the edge->src block. the value is

Re: rs6000: Fix up flag_shrink_wrap handling in presence of -mrop-protect [PR101324]

2021-12-03 Thread Peter Bergner via Gcc-patches
On 10/29/21 4:45 PM, Segher Boessenkool wrote: > On Wed, Oct 27, 2021 at 10:17:39PM -0500, Peter Bergner wrote: >> 2021-10-27 Martin Liska >> >> gcc/ >> PR target/101324 >> * config/rs6000/rs6000.c (rs6000_option_override_internal): Move the >> disabling of shrink-wrapping when

[Bug rtl-optimization/103541] unnecessary spills around const functions calls

2021-12-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103541 --- Comment #3 from Andrew Pinski --- (In reply to Andrew Pinski from comment #2) > PR 5739 is related (though I have not looked fully). comment #10 which points out IRA was doing worse.

Re: [PATCH] rs6000: testsuite: Add rop_ok effective-target function

2021-12-03 Thread Peter Bergner via Gcc-patches
On 12/2/21 5:15 PM, Segher Boessenkool wrote: >> Tested on powerpc64le*-linux with no regressions. Ok for mainline? > > What can "*" be there other than the empty string? Which valuse of "*" > did you test? :-) Heh, too used to typing powerpc64*-linux. Yeah, in this case * == "". > Okay

[Bug rtl-optimization/103541] unnecessary spills around const functions calls

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

[Bug rtl-optimization/103541] unnecessary spills around const functions calls

2021-12-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103541 --- Comment #1 from Andrew Pinski --- I thought I had seen this before ...

[Bug target/101324] powerpc64le: hashst appears before mflr at -O1 or higher

2021-12-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101324 --- Comment #20 from CVS Commits --- The master branch has been updated by Peter Bergner : https://gcc.gnu.org/g:cff7879a381d3f5ed6556206896e6a6229800167 commit r12-5781-gcff7879a381d3f5ed6556206896e6a6229800167 Author: Martin Liska Date:

[Bug middle-end/103537] Using -fstack-protector-strong "without" optimization cause segmentation fault

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

[Bug fortran/103505] ICE in compare_bound_mpz_t, at fortran/resolve.c:4587 since r8-7594-g078c5aff5ed83e9c

2021-12-03 Thread sgk at troutmask dot apl.washington.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103505 --- Comment #10 from Steve Kargl --- On Thu, Dec 02, 2021 at 09:51:23PM +, anlauf at gcc dot gnu.org wrote: > > Submitted as: https://gcc.gnu.org/pipermail/fortran/2021-December/057102.html > Just saw the commit fly by. Thanks for

[Bug tree-optimization/103544] [11/12 Regression] compiler crashes when trying to vectorize loop

2021-12-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103544 Andrew Pinski changed: What|Removed |Added Component|c++ |tree-optimization Known to work|

[PATCH v3] elf: Add _dl_find_object function

2021-12-03 Thread Florian Weimer via Gcc-patches
It can be used to speed up the libgcc unwinder, and the internal _dl_find_dso_for_object function (which is used for caller identification in dlopen and related functions, and in dladdr). _dl_find_object is in the internal namespace due to bug 28503. If libgcc switches to _dl_find_object, this

[Bug middle-end/103537] Using -fstack-protector-strong "without" optimization cause segmentation fault

2021-12-03 Thread hedayat.fwd at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103537 --- Comment #2 from Hedayat Vatankhah --- With these options, the code runs a bit more but still crashes. The output of each option is given below: Output with -fsanitize=undefined: /home/hedayat/Projects/powerfake/powerfake.h:257:40: runtime

[Bug c++/103544] compiler crashes when trying to vectorize loop

2021-12-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103544 --- Comment #1 from Andrew Pinski --- Testcase: #include #include int crash_me(char* ptr, size_t size){ std::array result = {0}; size_t no_iters = 0; for(size_t i = 0; i < size - 12; i+= 13){ for(size_t j = 0; j < 12;

Re: Comment on web page https://gcc.gnu.org/projects/cxx-status.html#cxx11

2021-12-03 Thread Jonathan Wakely via Gcc
On Fri, 3 Dec 2021, 18:58 Dr. Jürgen Sauermann, wrote: > Hi, > > not sure if this matters or how int can be fixed, but today I observed > the following: > > Your web page says that "Static assertions" are supported by GCC since > version 4.3. > > Today I tried to use "Static assertions" on an

[Bug bootstrap/103547] [12 Regression] Bootstrap failure with --with-cpu=skylake-avx512

2021-12-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103547 Andrew Pinski changed: What|Removed |Added Keywords||build, wrong-code Target

[Bug fortran/103505] ICE in compare_bound_mpz_t, at fortran/resolve.c:4587 since r8-7594-g078c5aff5ed83e9c

2021-12-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103505 --- Comment #9 from CVS Commits --- The master branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:f46d32dd29b7623915e31b0508e2e925526fa7d8 commit r12-5779-gf46d32dd29b7623915e31b0508e2e925526fa7d8 Author: Harald Anlauf Date:

[Bug tree-optimization/103542] [10/11/12 Regregression] bogus -Warray-bounds while index is limited by switch/case

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

[Bug bootstrap/103547] [12 Regression] Bootstrap failure

2021-12-03 Thread tnfchris at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103547 Tamar Christina changed: What|Removed |Added CC||tnfchris at gcc dot gnu.org ---

[Bug target/103548] Identical MMA assemble quads are incorrectly combined

2021-12-03 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103548 Peter Bergner changed: What|Removed |Added Target||powerpc*-*-*

[Bug libstdc++/70692] No warning when std::function binds a reference to a temporary

2021-12-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70692 Andrew Pinski changed: What|Removed |Added CC||gcc at hazlewoods dot net --- Comment

[Bug c++/103543] Potential compiler warning for return of temporary with std::function converting from T(*)()

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

  1   2   3   >