Re: [PATCH] [wwwdocs] Added LoongArch support to the gcc12 changes.

2022-05-07 Thread Chenghua Xu
Hi Gerald, Thinks for your review. As your suggestion,  change the HTML ids to lowercase. And pushed. Thanks. Chenghua On 5/7/22 22:38, Gerald Pfeifer wrote: On Sat, 7 May 2022, xucheng...@loongson.cn wrote: +LoongArch I usually recommend all lowercase for HTML ids. That is only a recomme

[PATCH v2] c, c++: -Wswitch warning on [[maybe_unused]] enumerator [PR105497]

2022-05-07 Thread Marek Polacek via Gcc-patches
Corrected version that avoids an uninitialized warning: This PR complains that we emit the "enumeration value not handled in switch" warning even though the enumerator was marked with the [[maybe_unused]] attribute. The first snag was that I couldn't just check TREE_USED, because the enumerator c

[PATCH] c, c++: -Wswitch warning on [[maybe_unused]] enumerator [PR105497]

2022-05-07 Thread Marek Polacek via Gcc-patches
This PR complains that we emit the "enumeration value not handled in switch" warning even though the enumerator was marked with the [[maybe_unused]] attribute. The first snag was that I couldn't just check TREE_USED, because the enumerator could have been used earlier in the function, which doesn'

Re: [PATCH v3] c++: ICE with temporary of class type in DMI [PR100252]

2022-05-07 Thread Jason Merrill via Gcc-patches
On 5/7/22 15:11, Marek Polacek wrote: On Tue, May 03, 2022 at 04:59:38PM -0400, Jason Merrill wrote: Does this testcase still work with this patch? struct A { const A* p = this; }; struct B { A a = A{}; }; constexpr B b; static_assert (b.a.p == &b.a); Ouch, no. Thanks for catching th

Re: [PATCH] c++: constexpr init of union sub-aggr w/ base [PR105491]

2022-05-07 Thread Jason Merrill via Gcc-patches
On 5/6/22 16:46, Patrick Palka wrote: On Fri, 6 May 2022, Jason Merrill wrote: On 5/6/22 16:10, Patrick Palka wrote: On Fri, 6 May 2022, Patrick Palka wrote: On Fri, 6 May 2022, Jason Merrill wrote: On 5/6/22 14:00, Patrick Palka wrote: On Fri, 6 May 2022, Patrick Palka wrote: On Fri, 6

[PATCH v3] c++: ICE with temporary of class type in DMI [PR100252]

2022-05-07 Thread Marek Polacek via Gcc-patches
On Tue, May 03, 2022 at 04:59:38PM -0400, Jason Merrill wrote: > Does this testcase still work with this patch? > > struct A { > const A* p = this; > }; > > struct B { > A a = A{}; > }; > > constexpr B b; > static_assert (b.a.p == &b.a); Ouch, no. Thanks for catching this, it would have be

Re: [PATCH] [wwwdocs] Added LoongArch support to the gcc12 changes.

2022-05-07 Thread Gerald Pfeifer
On Sat, 7 May 2022, xucheng...@loongson.cn wrote: > +LoongArch I usually recommend all lowercase for HTML ids. That is only a recommendation, though, and if you strongly prefer "LoongArch" over "loong" or "loongarch" that is fine. Okay, thanks. Gerald

Re: libgo: Recognize off64_t / loff_t type definition of musl libc

2022-05-07 Thread Sören Tempel via Gcc-patches
PING. Summary: gcc-go currently assumes that both loff_t and off64_t are defined as a typedef. However, musl defines them as a CPP macro causing gccgo to not compile with musl libc. See: https://gcc.gnu.org/pipermail/gcc-patches/2022-April/593527.html If an alternative solution to the problem is

Re: [patch][gcc13][i386][pr101891]Adjust -fzero-call-used-regs to always use XOR

2022-05-07 Thread Uros Bizjak via Gcc-patches
On Fri, May 6, 2022 at 6:42 PM Qing Zhao wrote: > > > > > On May 6, 2022, at 10:58 AM, Uros Bizjak wrote: > > > > On Fri, May 6, 2022 at 4:29 PM Qing Zhao wrote: > >> > >> Hi, > >> > >> As Kee’s requested in this PR: > >> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101891 > >> > >> = > >>

Re: [PATCH] Reconstruct i386 testsuite with __builtin_cpu_supports

2022-05-07 Thread Uros Bizjak via Gcc-patches
On Sat, May 7, 2022 at 3:20 AM Jiang, Haochen wrote: > > Hi Uros, > > I understand that we always keep the old testcases there. It is always safe > to do that. > > But I have another question, if we add something new in one of the existing > files in the future, > should we use __builtin_cpu_sup

[PATCH] [wwwdocs] Added LoongArch support to the gcc12 changes.

2022-05-07 Thread xuchenghua
From: Chenghua Xu --- htdocs/gcc-12/changes.html | 13 + 1 file changed, 13 insertions(+) diff --git a/htdocs/gcc-12/changes.html b/htdocs/gcc-12/changes.html index c64827bd..995a1a42 100644 --- a/htdocs/gcc-12/changes.html +++ b/htdocs/gcc-12/changes.html @@ -695,6 +695,19 @@ funct