]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Require SHF_GNU_RETAIN support for retain tests
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 19 Feb 2021 23:44:38 +0000 (15:44 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 22 Feb 2021 23:27:01 +0000 (15:27 -0800)
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.

gcc/testsuite/c-c++-common/attr-retain-5.c
gcc/testsuite/c-c++-common/attr-retain-6.c
gcc/testsuite/c-c++-common/attr-retain-7.c
gcc/testsuite/c-c++-common/attr-retain-8.c
gcc/testsuite/c-c++-common/attr-retain-9.c

index ee6e2c4e054235b1d1b74ca94e053d181ab0b146..1f3f8bfb5c5dab941d52f0cdd8ac2bbeedf792b1 100644 (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" } */
 
index 9aead148ec8059e901650d5c11eec5db67c2071f..ed6cfae294857356ebc7c8e97dec0b402884c5ac 100644 (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" } */
 
index 4c1673583db39aa0589a91c3d90180312a1bdca3..c56d18a88e0dad2d42a47b9a764dd1cb4471932e 100644 (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" } */
 
index 7e067f562740d9eb6a0276c26be089071624cb69..c1a9b52972e8f6c4d3727609ec83a5ddd15e4888 100644 (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" } */
 
index 81accc0ee915e6a22d13481146d67287166b7fca..e6d7c0b43daf339ec1bbdde053946c8c9d468521 100644 (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" } */