diff options
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r-- | gcc/config.gcc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc index 0782cbc..606d3a8 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1171,6 +1171,17 @@ case ${target} in ;; esac +# Figure out if we need to enable heap trampolines by default +case ${target} in +*-*-darwin2*) + # Currently, we do this for macOS 11 and above. + tm_defines="$tm_defines HEAP_TRAMPOLINES_INIT=1" + ;; +*) + tm_defines="$tm_defines HEAP_TRAMPOLINES_INIT=0" + ;; +esac + case ${target} in aarch64*-*-elf | aarch64*-*-fuchsia* | aarch64*-*-rtems*) tm_file="${tm_file} elfos.h newlib-stdint.h" |