projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61abdbe
)
compiler-gcc: disable -ftracer for __noclone functions
author
Paolo Bonzini
<
[email protected]
>
Thu, 31 Mar 2016 07:38:51 +0000
(09:38 +0200)
committer
Paolo Bonzini
<
[email protected]
>
Tue, 5 Apr 2016 12:19:08 +0000
(14:19 +0200)
-ftracer can duplicate asm blocks causing compilation to fail in
noclone functions. For example, KVM declares a global variable
in an asm like
asm("2: ... \n
.pushsection data \n
.global vmx_return \n
vmx_return: .long 2b");
and -ftracer causes a double declaration.
Cc: Andrew Morton <
[email protected]
>
Cc: Michal Marek <
[email protected]
>
Cc:
[email protected]
Cc:
[email protected]
Reported-by: Linda Walsh <
[email protected]
>
Signed-off-by: Paolo Bonzini <
[email protected]
>
include/linux/compiler-gcc.h
patch
|
blob
|
history
diff --git
a/include/linux/compiler-gcc.h
b/include/linux/compiler-gcc.h
index 22ab246feed34c104038d3f94e1401ea9a587f8f..eeae401a2412e5e8d32381805be1c13798b7a8fb 100644
(file)
--- a/
include/linux/compiler-gcc.h
+++ b/
include/linux/compiler-gcc.h
@@
-199,7
+199,7
@@
#define unreachable() __builtin_unreachable()
/* Mark a function definition as prohibited from being cloned. */
-#define __noclone __attribute__((__noclone__))
+#define __noclone __attribute__((__noclone__
, __optimize__("no-tracer")
))
#endif /* GCC_VERSION >= 40500 */