public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-7378] Fix attr-retain-* tescases for 32-bit PowerPC.
@ 2022-02-24 21:35 Pat Haugen
  0 siblings, 0 replies; only message in thread
From: Pat Haugen @ 2022-02-24 21:35 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:ae3c4e521dd0b66db712639298cd08331d62f315

commit r12-7378-gae3c4e521dd0b66db712639298cd08331d62f315
Author: Pat Haugen <pthaugen@linux.ibm.com>
Date:   Thu Feb 24 15:33:42 2022 -0600

    Fix attr-retain-* tescases for 32-bit PowerPC.
    
            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.

Diff:
---
 gcc/testsuite/gcc.c-torture/compile/attr-retain-1.c | 2 ++
 gcc/testsuite/gcc.c-torture/compile/attr-retain-2.c | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/gcc/testsuite/gcc.c-torture/compile/attr-retain-1.c b/gcc/testsuite/gcc.c-torture/compile/attr-retain-1.c
index 6cab15547cc..84f489adb2c 100644
--- a/gcc/testsuite/gcc.c-torture/compile/attr-retain-1.c
+++ b/gcc/testsuite/gcc.c-torture/compile/attr-retain-1.c
@@ -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\"" } } */
diff --git a/gcc/testsuite/gcc.c-torture/compile/attr-retain-2.c b/gcc/testsuite/gcc.c-torture/compile/attr-retain-2.c
index 0208ffe37ab..692e07b08f9 100644
--- a/gcc/testsuite/gcc.c-torture/compile/attr-retain-2.c
+++ b/gcc/testsuite/gcc.c-torture/compile/attr-retain-2.c
@@ -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"


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-02-24 21:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-24 21:35 [gcc r12-7378] Fix attr-retain-* tescases for 32-bit PowerPC Pat Haugen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).