]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix attr-retain-* tescases for 32-bit PowerPC.
authorPat Haugen <pthaugen@linux.ibm.com>
Thu, 24 Feb 2022 21:33:42 +0000 (15:33 -0600)
committerPat Haugen <pthaugen@linux.ibm.com>
Thu, 24 Feb 2022 21:33:42 +0000 (15:33 -0600)
PR testsuite/100407

gcc/testsuite/
* gcc.c-torture/compile/attr-retain-1.c: Add -G0 for 32-bit PowerPC.
* gcc.c-torture/compile/attr-retain-2.c: Likewise.

gcc/testsuite/gcc.c-torture/compile/attr-retain-1.c
gcc/testsuite/gcc.c-torture/compile/attr-retain-2.c

index 6cab15547ccaf24bf58c29d5946d11ff5f919dff..84f489adb2c66cdfa0011a002bb0e18b6b0724f5 100644 (file)
@@ -1,4 +1,6 @@
 /* { dg-do compile { target R_flag_in_section } } */
+/* Prevent readonly data from being put in writable sdata for 32-bit powerpc. */
+/* { dg-options "-G0" { target { powerpc*-*-* && ilp32 } } } */
 /* { dg-final { scan-assembler ".text.*,\"axR\"" } } */
 /* { dg-final { scan-assembler ".bss.*,\"awR\"" } } */
 /* { dg-final { scan-assembler ".data.*,\"awR\"" } } */
index 0208ffe37ab5e847595770309c252b99ecb29dd7..692e07b08f9d89399d7379be765e0bccee55270d 100644 (file)
@@ -11,5 +11,7 @@
 /* { dg-final { scan-assembler ".bss.used_lcomm2,\"awR\"" { target arm-*-* } } } */
 /* { dg-final { scan-assembler ".data.used_foo_sec,\"awR\"" } } */
 /* { dg-options "-ffunction-sections -fdata-sections" } */
+/* Prevent readonly data from being put in writable sdata for 32-bit powerpc. */
+/* { dg-options "-ffunction-sections -fdata-sections -G0" { target { powerpc*-*-* && ilp32 } } } */
 
 #include "attr-retain-1.c"