Require SHF_GNU_RETAIN support for retain tests

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.
	* c-c++-common/attr-retain-8.c: Likewise.
	* c-c++-common/attr-retain-9.c: Likewise.
This commit is contained in:
H.J. Lu 2021-02-19 15:44:38 -08:00
parent a65b9ad863
commit 609204abb8
5 changed files with 5 additions and 5 deletions

View file

@ -1,4 +1,4 @@
/* { dg-do compile } */
/* { dg-do compile { target R_flag_in_section } } */
/* { dg-skip-if "non-ELF target" { *-*-darwin* powerpc*-*-aix* } } */
/* { dg-options "-Wall -O2" } */

View file

@ -1,4 +1,4 @@
/* { dg-do compile } */
/* { dg-do compile { target R_flag_in_section } } */
/* { dg-skip-if "non-ELF target" { *-*-darwin* powerpc*-*-aix* } } */
/* { dg-options "-Wall -O2" } */

View file

@ -1,4 +1,4 @@
/* { dg-do compile } */
/* { dg-do compile { target R_flag_in_section } } */
/* { dg-skip-if "non-ELF target" { *-*-darwin* powerpc*-*-aix* } } */
/* { dg-options "-Wall -O2" } */

View file

@ -1,4 +1,4 @@
/* { dg-do compile } */
/* { dg-do compile { target R_flag_in_section } } */
/* { dg-skip-if "non-ELF target" { *-*-darwin* powerpc*-*-aix* } } */
/* { dg-options "-Wall -O2" } */

View file

@ -1,4 +1,4 @@
/* { dg-do compile } */
/* { dg-do compile { target R_flag_in_section } } */
/* { dg-skip-if "non-ELF target" { *-*-darwin* powerpc*-*-aix* } } */
/* { dg-options "-Wall -O2" } */