Documentation/Kbuild: Remove references to gcc-plugin.sh
Subsystems (3)
PATCH 1/1 Documentation/Kbuild: Remove references to gcc-plugin.sh
gcc-plugin.sh has been removed in commit1e860048c53e ("gcc-plugins: simplify GCC plugin-dev capability test").
--- Documentation/kbuild/gcc-plugins.rst | 6 ------ scripts/dummy-tools/gcc | 15 --------------- 2 files changed, 21 deletions(-)
Documentation/kbuild/gcc-plugins.rst +0 -6
@@ -47,12 +47,6 @@ Files This is a compatibility header for GCC plugins. It should be always included instead of individual gcc headers. -**$(src)/scripts/gcc-plugin.sh** - - This script checks the availability of the included headers in - gcc-common.h and chooses the proper host compiler to build the plugins - (gcc-4.7 can be built by either gcc or g++). - **$(src)/scripts/gcc-plugins/gcc-generate-gimple-pass.h, $(src)/scripts/gcc-plugins/gcc-generate-ipa-pass.h, $(src)/scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h,
scripts/dummy-tools/gcc +0 -15
@@ -74,18 +74,3 @@ if arg_contain -S "$@"; then exit 0 fi fi - -# For scripts/gcc-plugin.sh -if arg_contain -print-file-name=plugin "$@"; then - plugin_dir=$(mktemp -d) - - sed -n 's/.*#include "\(.*\)"/\1/p' $(dirname $0)/../gcc-plugins/gcc-common.h | - while read header - do - mkdir -p $plugin_dir/include/$(dirname $header) - touch $plugin_dir/include/$header - done - - echo $plugin_dir - exit 0 -fi
Signature · 1 line
2.7.4
Quoted 4 lines · Robert Karszniewicz
gcc-plugin.shhas been removed in commit1e860048c53e("gcc-plugins: simplify GCC plugin-dev capability test").Signed-off-by Robert Karszniewicz <[email protected]>
Thanks!
Signature · 1 line
Kees Cook
Quoted 40 lines · Robert Karszniewicz
gcc-plugin.shhas been removed in commit1e860048c53e("gcc-plugins: simplify GCC plugin-dev capability test").Signed-off-by Robert Karszniewicz <[email protected]>--- Documentation/kbuild/gcc-plugins.rst | 6 ------ scripts/dummy-tools/gcc | 15 --------------- 2 files changed, 21 deletions(-)Documentation/kbuild/gcc-plugins.rst +0
-6@@ -47,12 +47,6 @@ Files This is a compatibility header for GCC plugins. It should be always included instead of individual gcc headers. -**$(src)/scripts/gcc-plugin.sh** - - This script checks the availability of the included headers in - gcc-common.h and chooses the proper host compiler to build the plugins - (gcc-4.7 can be built by either gcc or g++). - **$(src)/scripts/gcc-plugins/gcc-generate-gimple-pass.h, $(src)/scripts/gcc-plugins/gcc-generate-ipa-pass.h, $(src)/scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h,scripts/dummy-tools/gcc +0
-5@@ -74,18 +74,3 @@ if arg_contain -S "$@"; then exit 0 fi fi - -# For scripts/gcc-plugin.sh -if arg_contain -print-file-name=plugin "$@"; then - plugin_dir=$(mktemp -d) -
scripts/dummy-tools/gcc if arg_contain -S "$@"; then · line 91
Quoted 10 lines
scripts/dummy-tools/gcc +0
-10- sed -n 's/.*#include "\(.*\)"/\1/p' $(dirname $0)/../gcc-plugins/gcc-common.h | - while read header - do - mkdir -p $plugin_dir/include/$(dirname $header) - touch $plugin_dir/include/$header - done - - echo $plugin_dir - exit 0 -fi
Well, it is wrong to remove this hunk entirely.
It would break the ability to enable GCC_PLUGINS.
I will simplify this part.
https://lore.kernel.org/patchwork/patch/1369968/
I took the only change to Documentation/kbuild/gcc-plugins.rst from your patch but this document contains more stale info.
https://lore.kernel.org/patchwork/patch/1370008/
Signature · 2 lines
Best Regards Masahiro Yamada
Quoted 41 lines · Masahiro Yamada
Quoted 24 lines · Robert Karszniewicz
gcc-plugin.shhas been removed in commit1e860048c53e("gcc-plugins: simplify GCC plugin-dev capability test").Signed-off-by Robert Karszniewicz <[email protected]>--- Documentation/kbuild/gcc-plugins.rst | 6 ------ scripts/dummy-tools/gcc | 15 --------------- 2 files changed, 21 deletions(-)[...]
scripts/dummy-tools/gcc +0
-5@@ -74,18 +74,3 @@ if arg_contain -S "$@"; then exit 0 fi fi - -# For scripts/gcc-plugin.sh -if arg_contain -print-file-name=plugin "$@"; then - plugin_dir=$(mktemp -d) -scripts/dummy-tools/gcc if arg_contain -S "$@"; then · line 91
Quoted 10 lines
scripts/dummy-tools/gcc +0
-10- sed -n 's/.*#include "\(.*\)"/\1/p' $(dirname $0)/../gcc-plugins/gcc-common.h | - while read header - do - mkdir -p $plugin_dir/include/$(dirname $header) - touch $plugin_dir/include/$header - done - - echo $plugin_dir - exit 0 -fiWell, it is wrong to remove this hunk entirely.
It would break the ability to enableGCC_PLUGINS.
Quoted 8 lines
I will simplify this part.
https://lore.kernel.org/patchwork/patch/1369968/I took the only change to
Documentation/kbuild/gcc-plugins.rstfrom your patch but this document contains more stale info.
I see, thanks for letting me know,
Robert