aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/darwin.h
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2021-07-01 15:02:43 +0100
committerIain Sandoe <iain@sandoe.co.uk>2021-07-01 16:56:13 +0100
commitcc8453012f75dc6dbd20bf3a94c4819a2bff46db (patch)
treefde477670d9eeb275d9a7a39e16e6a109e95b49b /gcc/config/darwin.h
parent51c30227fa6c739e2d367abf327b3b7dfd86dd46 (diff)
downloadgcc-cc8453012f75dc6dbd20bf3a94c4819a2bff46db.zip
gcc-cc8453012f75dc6dbd20bf3a94c4819a2bff46db.tar.gz
gcc-cc8453012f75dc6dbd20bf3a94c4819a2bff46db.tar.bz2
Darwin: Define a suitable section name for CTF [PR101283]
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. PR debug/101283 - Several tests fail on Darwin with -gctf PR debug/101283 gcc/ChangeLog: * config/darwin.h (CTF_INFO_SECTION_NAME): New.
Diffstat (limited to 'gcc/config/darwin.h')
-rw-r--r--gcc/config/darwin.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h
index d2b2c14..b7c3af3 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 */