compiler-gcc: disable -ftracer for __noclone functions
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 31 Mar 2016 07:38:51 +0000 (09:38 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 5 Apr 2016 12:19:08 +0000 (14:19 +0200)
commit95272c29378ee7dc15f43fa2758cb28a5913a06d
tree634a41d45cc7df083f66442d78fc011dc1790700
parent61abdbe0bcc2b32745ab4479cc550f4c1f518ee2
compiler-gcc: disable -ftracer for __noclone functions

-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 <akpm@linux-foundation.org>
Cc: Michal Marek <mmarek@suse.cz>
Cc: stable@vger.kernel.org
Cc: kvm@vger.kernel.org
Reported-by: Linda Walsh <lkml@tlinx.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/linux/compiler-gcc.h