Mercurial > illumos > illumos-gate
changeset 13819:f56bf3fb65f4
3202 prevent compiler function cloning
Reviewed by: Richard Lowe <richlowe@richlowe.net>
Approved by: Robert Mustacchi <rm@joyent.com>
author | Joshua M. Clulow <josh@sysmgr.org> |
---|---|
date | Thu, 20 Sep 2012 00:48:04 +0000 |
parents | e9ad0a945d45 |
children | 2ce1147810ed |
files | usr/src/Makefile.master |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/Makefile.master Wed Sep 19 15:53:16 2012 -0400 +++ b/usr/src/Makefile.master Thu Sep 20 00:48:04 2012 +0000 @@ -344,8 +344,12 @@ # GCC, especially, is increasingly beginning to auto-inline functions and # sadly does so separately not under the general -fno-inline-functions +# 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 $(__GNUC4)CCNOAUTOINLINE= -_gcc=-fno-inline-small-functions \ - -_gcc=-fno-inline-functions-called-once + -_gcc=-fno-inline-functions-called-once \ + -_gcc=-fno-ipa-cp # One optimization the compiler might perform is to turn this: # #pragma weak foo