public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Darwin, testsuite: -bind_at_load is deprecated
@ 2024-02-10 11:58 FX Coudert
  2024-02-10 12:02 ` Iain Sandoe
  0 siblings, 1 reply; 2+ messages in thread
From: FX Coudert @ 2024-02-10 11:58 UTC (permalink / raw)
  To: GCC Patches; +Cc: Iain Sandoe

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

With Xcode 15, gcc.dg/darwin-ld-2.c fails due to a warning:
ld: warning: -bind_at_load is deprecated on macOS

The patches ignores the warning when present.
OK to push?

FX



[-- Attachment #2: 0001-Darwin-testsuite-bind_at_load-is-deprecated.patch --]
[-- Type: application/octet-stream, Size: 844 bytes --]

From f88219333e85a05a98468f67d2f2190fc330044e Mon Sep 17 00:00:00 2001
From: Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Date: Sat, 10 Feb 2024 12:55:29 +0100
Subject: [PATCH] Darwin, testsuite: -bind_at_load is deprecated

gcc/testsuite/ChangeLog:

	* gcc.dg/darwin-ld-2.c: Ignore warning
	that -bind_at_load is deprecated.
---
 gcc/testsuite/gcc.dg/darwin-ld-2.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/testsuite/gcc.dg/darwin-ld-2.c b/gcc/testsuite/gcc.dg/darwin-ld-2.c
index 5de19524f0b..2a6b491da5b 100644
--- a/gcc/testsuite/gcc.dg/darwin-ld-2.c
+++ b/gcc/testsuite/gcc.dg/darwin-ld-2.c
@@ -3,6 +3,7 @@
 
 /* { dg-options "-bind_at_load" } */
 /* { dg-do link { target *-*-darwin* } } */
+/* { dg-prune-output "-bind_at_load is deprecated" } */
 
 int main()
 {
-- 
2.39.3 (Apple Git-145)


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

* Re: [PATCH] Darwin, testsuite: -bind_at_load is deprecated
  2024-02-10 11:58 [PATCH] Darwin, testsuite: -bind_at_load is deprecated FX Coudert
@ 2024-02-10 12:02 ` Iain Sandoe
  0 siblings, 0 replies; 2+ messages in thread
From: Iain Sandoe @ 2024-02-10 12:02 UTC (permalink / raw)
  To: FX Coudert; +Cc: GCC Patches

Hi FX,

> On 10 Feb 2024, at 11:58, FX Coudert <fxcoudert@gmail.com> wrote:
> 
> With Xcode 15, gcc.dg/darwin-ld-2.c fails due to a warning:
> ld: warning: -bind_at_load is deprecated on macOS
> 
> The patches ignores the warning when present.
> OK to push?

Yes, thanks.

Iain

I guess for GCC-15 we might need to see which options should now be
stripped for new(er) darwin.

> 
> FX
> 
> 
> <0001-Darwin-testsuite-bind_at_load-is-deprecated.patch>


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

end of thread, other threads:[~2024-02-10 12:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-10 11:58 [PATCH] Darwin, testsuite: -bind_at_load is deprecated FX Coudert
2024-02-10 12:02 ` 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).