diff options
author | John Levon <john.levon@joyent.com> | 2018-10-04 17:52:13 +0100 |
---|---|---|
committer | Dan McDonald <danmcd@joyent.com> | 2018-10-09 11:20:47 -0400 |
commit | 6b544f0e850631b170bc4e905cf726275acfd586 (patch) | |
tree | df11cce790f5bafe0c18f65c4b38e8a6f8447557 | |
parent | 2119ebe49a3e2372de7791dce841058bdcb55de3 (diff) | |
download | illumos-joyent-6b544f0e850631b170bc4e905cf726275acfd586.tar.gz |
9420 need GCC options to disable function cloning
Reviewed by: Toomas Soome <tsoome@me.com>
Approved by: Dan McDonald <danmcd@joyent.com>
-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 8a322b7af3..b2eb30ec16 100644 --- a/usr/src/Makefile.master +++ b/usr/src/Makefile.master @@ -332,9 +332,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 |