mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 03:10:52 +07:00
77342a02ff
Nobody was opposed to raising minimum GCC version to 4.8 [1] So, we will drop GCC <= 4.7 support sooner or later. We always use C++ compiler for building plugins for GCC >= 4.8. This commit drops the plugin support for GCC <= 4.7 a bit earlier, which allows us to dump lots of code. [1] https://lkml.org/lkml/2020/1/23/545 Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Acked-by: Kees Cook <keescook@chromium.org>
20 lines
406 B
Bash
Executable File
20 lines
406 B
Bash
Executable File
#!/bin/sh
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
set -e
|
|
|
|
srctree=$(dirname "$0")
|
|
|
|
gccplugins_dir=$($* -print-file-name=plugin)
|
|
|
|
# we need a c++ compiler that supports the designated initializer GNU extension
|
|
$HOSTCC -c -x c++ -std=gnu++98 - -fsyntax-only -I $srctree/gcc-plugins -I $gccplugins_dir/include 2>/dev/null <<EOF
|
|
#include "gcc-common.h"
|
|
class test {
|
|
public:
|
|
int test;
|
|
} test = {
|
|
.test = 1
|
|
};
|
|
EOF
|