public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH, testsuite] Fix attr-retain-*.c testcases on 32-bit PowerPC [PR100407]
@ 2022-02-10 22:17 Pat Haugen
  2022-02-24 16:30 ` PING: " Pat Haugen
  2022-02-24 17:46 ` Segher Boessenkool
  0 siblings, 2 replies; 3+ messages in thread
From: Pat Haugen @ 2022-02-10 22:17 UTC (permalink / raw)
  To: GCC Patches; +Cc: Segher Boessenkool, David Edelsohn

Per Alan's comment in the bugzilla, fix attr-retain-* tescases for 32-bit PowerPC.

Bootstrapped and regression tested on powerpc64(32/64) and powerpc64le.
Ok for master?

-Pat


2022-02-10  Pat Haugen  <pthaugen@linux.ibm.com>

	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 --git a/gcc/testsuite/gcc.c-torture/compile/attr-retain-1.c b/gcc/testsuite/gcc.c-torture/compile/attr-retain-1.c
index 6cab155..4a366eb 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,5 @@
 /* { dg-do compile { target R_flag_in_section } } */
+/* { 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 0208ffe..d9fc150 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,6 @@
 /* { 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" } */
+/* { dg-options "-ffunction-sections -fdata-sections -G0" { target { powerpc*-*-* && ilp32 } } } */
 
 #include "attr-retain-1.c"

^ permalink raw reply	[flat|nested] 3+ messages in thread

* PING: [PATCH, testsuite] Fix attr-retain-*.c testcases on 32-bit PowerPC [PR100407]
  2022-02-10 22:17 [PATCH, testsuite] Fix attr-retain-*.c testcases on 32-bit PowerPC [PR100407] Pat Haugen
@ 2022-02-24 16:30 ` Pat Haugen
  2022-02-24 17:46 ` Segher Boessenkool
  1 sibling, 0 replies; 3+ messages in thread
From: Pat Haugen @ 2022-02-24 16:30 UTC (permalink / raw)
  To: GCC Patches; +Cc: David Edelsohn, Segher Boessenkool

Ping.

On 2/10/22 4:17 PM, Pat Haugen via Gcc-patches wrote:
> Per Alan's comment in the bugzilla, fix attr-retain-* tescases for 32-bit PowerPC.
> 
> Bootstrapped and regression tested on powerpc64(32/64) and powerpc64le.
> Ok for master?
> 
> -Pat
> 
> 
> 2022-02-10  Pat Haugen  <pthaugen@linux.ibm.com>
> 
> 	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 --git a/gcc/testsuite/gcc.c-torture/compile/attr-retain-1.c b/gcc/testsuite/gcc.c-torture/compile/attr-retain-1.c
> index 6cab155..4a366eb 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,5 @@
>   /* { dg-do compile { target R_flag_in_section } } */
> +/* { 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 0208ffe..d9fc150 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,6 @@
>   /* { 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" } */
> +/* { dg-options "-ffunction-sections -fdata-sections -G0" { target { powerpc*-*-* && ilp32 } } } */
>   
>   #include "attr-retain-1.c"


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH, testsuite] Fix attr-retain-*.c testcases on 32-bit PowerPC [PR100407]
  2022-02-10 22:17 [PATCH, testsuite] Fix attr-retain-*.c testcases on 32-bit PowerPC [PR100407] Pat Haugen
  2022-02-24 16:30 ` PING: " Pat Haugen
@ 2022-02-24 17:46 ` Segher Boessenkool
  1 sibling, 0 replies; 3+ messages in thread
From: Segher Boessenkool @ 2022-02-24 17:46 UTC (permalink / raw)
  To: Pat Haugen; +Cc: GCC Patches, David Edelsohn

On Thu, Feb 10, 2022 at 04:17:00PM -0600, Pat Haugen wrote:
> Per Alan's comment in the bugzilla, fix attr-retain-* tescases for 32-bit PowerPC.

> --- 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,5 @@
>  /* { dg-do compile { target R_flag_in_section } } */
> +/* { dg-options "-G0" { target { powerpc*-*-* && ilp32 } } } */

This needs a comment exokaining what it is for.  Okay for trunk with
that, thanks!


Segher

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-02-24 17:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-10 22:17 [PATCH, testsuite] Fix attr-retain-*.c testcases on 32-bit PowerPC [PR100407] Pat Haugen
2022-02-24 16:30 ` PING: " Pat Haugen
2022-02-24 17:46 ` Segher Boessenkool

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).