public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Testsuite, Darwin: skip PIE test
@ 2023-10-30 11:43 FX Coudert
  2023-10-30 11:46 ` Iain Sandoe
  0 siblings, 1 reply; 2+ messages in thread
From: FX Coudert @ 2023-10-30 11:43 UTC (permalink / raw)
  To: GCC Patches; +Cc: Iain Sandoe

[-- Attachment #1: Type: text/plain, Size: 264 bytes --]

Hi,

The recent commit of https://gcc.gnu.org/pipermail/gcc-patches/2023-October/634347.html has made this test invalid. We now don’t emit __PIE__, and the test should be skipped on darwin.

Fixes the new failure on x86_64-apple-darwin21. OK to push?
FX


[-- Attachment #2: 0001-Testsuite-Darwin-skip-PIE-test.patch --]
[-- Type: application/octet-stream, Size: 871 bytes --]

From a0c557690c8d5327deda6e21f8d1deca8451a4cb Mon Sep 17 00:00:00 2001
From: Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Date: Mon, 30 Oct 2023 12:41:17 +0100
Subject: [PATCH] Testsuite, Darwin: skip PIE test

gcc/testsuite/ChangeLog:

	* gcc.dg/pie-2.c: Skip test on darwin.
---
 gcc/testsuite/gcc.dg/pie-2.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/testsuite/gcc.dg/pie-2.c b/gcc/testsuite/gcc.dg/pie-2.c
index 1838745a11a..0a1cc27a503 100644
--- a/gcc/testsuite/gcc.dg/pie-2.c
+++ b/gcc/testsuite/gcc.dg/pie-2.c
@@ -2,6 +2,7 @@
 /* { dg-options "-fPIE" } */
 /* { dg-require-effective-target pie } */
 /* { dg-skip-if "__PIC__ is always 1 for MIPS" { mips*-*-* } } */
+/* { dg-skip-if "__PIE__ is often not defined on darwin" { *-*-darwin* } } */
 
 #if __PIC__ != 2
 # error __PIC__ is not 2!
-- 
2.39.3 (Apple Git-145)


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

* Re: [PATCH] Testsuite, Darwin: skip PIE test
  2023-10-30 11:43 [PATCH] Testsuite, Darwin: skip PIE test FX Coudert
@ 2023-10-30 11:46 ` Iain Sandoe
  0 siblings, 0 replies; 2+ messages in thread
From: Iain Sandoe @ 2023-10-30 11:46 UTC (permalink / raw)
  To: FX Coudert; +Cc: GCC Patches

HI FX,

> On 30 Oct 2023, at 11:43, FX Coudert <fxcoudert@gmail.com> wrote:

> The recent commit of https://gcc.gnu.org/pipermail/gcc-patches/2023-October/634347.html has made this test invalid. We now don’t emit __PIE__, and the test should be skipped on darwin.
> 
> Fixes the new failure on x86_64-apple-darwin21. OK to push?

OK, thanks,
Iain



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

end of thread, other threads:[~2023-10-30 11:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-30 11:43 [PATCH] Testsuite, Darwin: skip PIE test FX Coudert
2023-10-30 11:46 ` Iain Sandoe

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