Re: [PATCH v7] Add retain attribute to place symbols in SHF_GNU_RETAIN section

2021-02-20 Thread H.J. Lu via Gcc-patches
On Sat, Feb 20, 2021 at 1:49 AM Andreas Schwab wrote: > > FAIL: c-c++-common/attr-retain-5.c -Wc++-compat (test for excess errors) > Excess errors: > /opt/gcc/gcc-20210220/gcc/testsuite/c-c++-common/attr-retain-5.c:23:1: > warning: 'retain' attribute ignored [-Wattributes] > https://gcc.gnu.or

Re: [PATCH v7] Add retain attribute to place symbols in SHF_GNU_RETAIN section

2021-02-20 Thread Andreas Schwab
FAIL: c-c++-common/attr-retain-5.c -Wc++-compat (test for excess errors) Excess errors: /opt/gcc/gcc-20210220/gcc/testsuite/c-c++-common/attr-retain-5.c:23:1: warning: 'retain' attribute ignored [-Wattributes] Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB47 D

Re: [PATCH v7] Add retain attribute to place symbols in SHF_GNU_RETAIN section

2021-02-18 Thread H.J. Lu via Gcc-patches
On Thu, Feb 18, 2021 at 7:15 AM Richard Biener wrote: > > On Thu, Feb 18, 2021 at 4:01 PM H.J. Lu wrote: > > > > On Thu, Feb 18, 2021 at 2:25 AM Richard Biener > > wrote: > > > > > > On Thu, Feb 18, 2021 at 5:15 AM H.J. Lu via Gcc-patches > > > wrote: > > > > > > > > On Wed, Feb 17, 2021 at 12:

Re: [PATCH v7] Add retain attribute to place symbols in SHF_GNU_RETAIN section

2021-02-18 Thread Richard Biener via Gcc-patches
On Thu, Feb 18, 2021 at 4:01 PM H.J. Lu wrote: > > On Thu, Feb 18, 2021 at 2:25 AM Richard Biener > wrote: > > > > On Thu, Feb 18, 2021 at 5:15 AM H.J. Lu via Gcc-patches > > wrote: > > > > > > On Wed, Feb 17, 2021 at 12:50 PM H.J. Lu wrote: > > > > > > > > On Wed, Feb 17, 2021 at 12:14 PM Jaku

[PATCH v7] Add retain attribute to place symbols in SHF_GNU_RETAIN section

2021-02-18 Thread H.J. Lu via Gcc-patches
&& !(DECL_PRESERVE_P (decl) > > > > > +&& lookup_attribute ("retain", DECL_ATTRIBUTES (decl > > > > > { > > > > >/* If the decl has been given an explicit section name, or it > > > &