diff options
author | Jerry Jelinek <jerry.jelinek@joyent.com> | 2018-10-10 13:07:03 +0000 |
---|---|---|
committer | Jerry Jelinek <jerry.jelinek@joyent.com> | 2018-10-10 13:07:03 +0000 |
commit | d42a31d44200e9c79284cfbf3a4889c8518cd77e (patch) | |
tree | fc311bacf554b6db924c9db43bfd83d2996f68f0 | |
parent | ac7eefefa333e4bf7835951e3a5d065e5ba60262 (diff) | |
parent | 6b544f0e850631b170bc4e905cf726275acfd586 (diff) | |
download | illumos-joyent-release-20181011.tar.gz |
[illumos-gate merge]release-20181011
commit 6b544f0e850631b170bc4e905cf726275acfd586
9420 need GCC options to disable function cloning
-rw-r--r-- | usr/src/Makefile.master | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/usr/src/Makefile.master b/usr/src/Makefile.master index cbe9bc796c..78ef38c2bf 100644 --- a/usr/src/Makefile.master +++ b/usr/src/Makefile.master @@ -345,9 +345,16 @@ CC32BITCALLERS= -_gcc=-massume-32bit-callers # Additionally, we wish to prevent optimisations which cause GCC to clone # functions -- in particular, these may cause unhelpful symbols to be # emitted instead of function names -CCNOAUTOINLINE= -_gcc=-fno-inline-small-functions \ +CCNOAUTOINLINE= \ + -_gcc=-fno-inline-small-functions \ -_gcc=-fno-inline-functions-called-once \ - -_gcc=-fno-ipa-cp + -_gcc=-fno-ipa-cp \ + -_gcc6=-fno-ipa-icf \ + -_gcc7=-fno-ipa-icf \ + -_gcc8=-fno-ipa-icf \ + -_gcc6=-fno-clone-functions \ + -_gcc7=-fno-clone-functions \ + -_gcc8=-fno-clone-functions # One optimization the compiler might perform is to turn this: # #pragma weak foo |