Print this page
9420 need GCC options to disable function cloning
*** 330,342 ****
# 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
! CCNOAUTOINLINE= -_gcc=-fno-inline-small-functions \
-_gcc=-fno-inline-functions-called-once \
! -_gcc=-fno-ipa-cp
# One optimization the compiler might perform is to turn this:
# #pragma weak foo
# extern int foo;
# if (&foo)
--- 330,349 ----
# 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
! CCNOAUTOINLINE= \
! -_gcc=-fno-inline-small-functions \
-_gcc=-fno-inline-functions-called-once \
! -_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
# extern int foo;
# if (&foo)