diff mbox series

[pushed] Darwin: Define a suitable section name for CTF [PR101283]

Message ID 7D72982B-F4AF-48FC-9EFF-22A757582F95@sandoe.co.uk
State New
Headers show
Series [pushed] Darwin: Define a suitable section name for CTF [PR101283] | expand

Commit Message

Iain Sandoe July 1, 2021, 3:57 p.m. UTC
Hi,

This is a placeholder name ahead of any CTF implementation on
LLVM (which sets Darwin ABI).  Ideally, we would get agreement
on this choice (or any replacement) before GCC12 is shipped.

tested on Darwin18,
pushed to master, thanks,
Iain

PR debug/101283 - Several tests fail on Darwin with -gctf

	PR debug/101283

gcc/ChangeLog:

	* config/darwin.h (CTF_INFO_SECTION_NAME): New.
---
 gcc/config/darwin.h | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h
index d2b2c141c8e..b7c3af3b3fa 100644
--- a/gcc/config/darwin.h
+++ b/gcc/config/darwin.h
@@ -1115,4 +1115,8 @@  extern void darwin_driver_init (unsigned int *,struct cl_decoded_option **);
 # endif
 #endif
 
+/* CTF support.  */
+#undef CTF_INFO_SECTION_NAME
+#define CTF_INFO_SECTION_NAME "__CTF,__ctf,regular,debug"
+
 #endif /* CONFIG_DARWIN_H */