2 srctree
=$
(dirname "$0")
5 if [ "$1" = "--show-error" ] ; then
10 gccplugins_dir
=$
($3 -print-file-name=plugin
)
11 plugincc
=$
($1 -E -x c
++ - -o /dev
/null
-I"${srctree}"/gcc-plugins
-I"${gccplugins_dir}"/include
2>&1 <<EOF
12 #include "gcc-common.h"
13 #if BUILDING_GCC_VERSION >= 4008 || defined(ENABLE_BUILD_WITH_CXX)
23 if [ -n "$SHOW_ERROR" ] ; then
24 echo "${plugincc}" >&2
36 # the c++ compiler needs another test, see below
44 # we need a c++ compiler that supports the designated initializer GNU extension
45 plugincc
=$
($2 -c -x c
++ -std=gnu
++98 - -fsyntax-only -I"${srctree}"/gcc-plugins
-I"${gccplugins_dir}"/include
2>&1 <<EOF
46 #include "gcc-common.h"
62 if [ -n "$SHOW_ERROR" ] ; then
63 echo "${plugincc}" >&2