Re: [PATCH] Require SHF_GNU_RETAIN support for retain test

2021-02-22 Thread Jakub Jelinek via Gcc-patches
On Mon, Feb 22, 2021 at 03:06:58PM -0800, H.J. Lu via Gcc-patches wrote: > Since retain attribute requires SHF_GNU_RETAIN, run retain tests only > if SHF_GNU_RETAIN is supported. > > PR testsuite/99173 > * c-c++-common/attr-retain-5.c: Require R_flag_in_section. > * c-c++-common/

[PATCH] Require SHF_GNU_RETAIN support for retain test

2021-02-22 Thread H.J. Lu via Gcc-patches
Since retain attribute requires SHF_GNU_RETAIN, run retain tests only if SHF_GNU_RETAIN is supported. PR testsuite/99173 * c-c++-common/attr-retain-5.c: Require R_flag_in_section. * c-c++-common/attr-retain-6.c: Likewise. * c-c++-common/attr-retain-7.c: Likewise.