public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Iain D Sandoe <iains@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc(refs/users/iains/heads/d-for-darwin)] libphobos: Align interface of gcc.sections.osx with gcc.sections.elf_shared
Date: Fri, 15 Oct 2021 19:33:50 +0000 (GMT)	[thread overview]
Message-ID: <20211015193350.E7C133857C71@sourceware.org> (raw)

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

commit b0953941dcd9a7833b42f9a61512959a221fced9
Author: Iain Buclaw <ibuclaw@gdcproject.org>
Date:   Mon Dec 7 01:25:17 2020 +0100

    libphobos: Align interface of gcc.sections.osx with gcc.sections.elf_shared

Diff:
---
 libphobos/libdruntime/core/sys/darwin/execinfo.d | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/libphobos/libdruntime/core/sys/darwin/execinfo.d b/libphobos/libdruntime/core/sys/darwin/execinfo.d
index c929cc2f88d..d9607f392eb 100644
--- a/libphobos/libdruntime/core/sys/darwin/execinfo.d
+++ b/libphobos/libdruntime/core/sys/darwin/execinfo.d
@@ -21,6 +21,11 @@ extern (C):
 nothrow:
 @nogc:
 
-int backtrace(void** buffer, int size);
-char** backtrace_symbols(const(void*)* buffer, int size);
-void backtrace_symbols_fd(const(void*)* buffer, int size, int fd);
+import core.sys.darwin.config;
+
+static if (__traits(getTargetInfo, "osxVersionMin") >= __MAC_10_5)
+{
+    int backtrace(void** buffer, int size);
+    char** backtrace_symbols(const(void*)* buffer, int size);
+    void backtrace_symbols_fd(const(void*)* buffer, int size, int fd);
+}


             reply	other threads:[~2021-10-15 19:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-15 19:33 Iain D Sandoe [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-10-18 15:54 Iain D Sandoe
2021-10-13  8:30 Iain D Sandoe
2021-10-11 20:35 Iain D Sandoe
2020-12-21 20:36 Iain D Sandoe
2020-12-13 17:43 Iain D Sandoe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211015193350.E7C133857C71@sourceware.org \
    --to=iains@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).