• Kees Cook's avatar
    gcc-plugins: Fix build failures under Darwin host · ed69b64c
    Kees Cook authored
    commit 7210e060155b9cf557fb13128353c3e494fa5ed3 upstream.
    
    The gcc-common.h file did not take into account certain macros that
    might have already been defined in the build environment. This updates
    the header to avoid redefining the macros, as seen on a Darwin host
    using gcc 4.9.2:
    
     HOSTCXX -fPIC scripts/gcc-plugins/arm_ssp_per_task_plugin.o - due to: scripts/gcc-plugins/gcc-common.h
    In file included from scripts/gcc-plugins/arm_ssp_per_task_plugin.c:3:0:
    scripts/gcc-plugins/gcc-common.h:153:0: warning: "__unused" redefined
    ^
    In file included from /usr/include/stdio.h:64:0,
                    from /Users/hns/Documents/Projects/QuantumSTEP/System/Library/Frameworks/System.framework/Versions-jessie/x86_64-apple-darwin15.0.0/gcc/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/4.9.2/plugin/include/system.h:40,
                    from /Users/hns/Documents/Projects/QuantumSTEP/System/Library/Frameworks/System.framework/Versions-jessie/x86_64-apple-darwin15.0.0/gcc/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/4.9.2/plugin/include/gcc-plugin.h:28,
                    from /Users/hns/Documents/Projects/QuantumSTEP/System/Library/Frameworks/System.framework/Versions-jessie/x86_64-apple-darwin15.0.0/gcc/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/4.9.2/plugin/include/plugin.h:23,
                    from scripts/gcc-plugins/gcc-common.h:9,
                    from scripts/gcc-plugins/arm_ssp_per_task_plugin.c:3:
    /usr/include/sys/cdefs.h:161:0: note: this is the location of the previous definition
    ^
    Reported-and-tested-by: 's avatar"H. Nikolaus Schaller" <hns@goldelico.com>
    Fixes: 189af4657186 ("ARM: smp: add support for per-task stack canaries")
    Cc: stable@vger.kernel.org
    Signed-off-by: 's avatarKees Cook <keescook@chromium.org>
    Signed-off-by: 's avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    ed69b64c
Name
Last commit
Last update
..
.gitignore Loading commit data...
Makefile Loading commit data...
cyc_complexity_plugin.c Loading commit data...
gcc-common.h Loading commit data...
gcc-generate-gimple-pass.h Loading commit data...
gcc-generate-ipa-pass.h Loading commit data...
gcc-generate-rtl-pass.h Loading commit data...
gcc-generate-simple_ipa-pass.h Loading commit data...
gen-random-seed.sh Loading commit data...
latent_entropy_plugin.c Loading commit data...
randomize_layout_plugin.c Loading commit data...
sancov_plugin.c Loading commit data...
structleak_plugin.c Loading commit data...