mirror of
https://gcc.gnu.org/git/gcc.git
synced 2026-02-22 03:46:53 -05:00
uninclude: Add lib/gcc/<anything>/include as an possible include dir
While running uninclude on PR99912's preprocessed source uninclude didn't uninclude some of the x86_64 target headers. This was because `lib/gcc/<anything>/include` was not noticed as an possible system include dir. It supported `gcc-lib/<anything>/include` though. contrib/ChangeLog: * uninclude: Add `lib/gcc/<anything>/include`.
This commit is contained in:
@@ -27,13 +27,14 @@
|
||||
|
||||
# Header files whose pathnames contain any of the following patterns
|
||||
# are considered as standard headers: usr/include, g++-include,
|
||||
# include/g++, include/c++/<version>, gcc-lib/<anything>/include.
|
||||
# include/g++, include/c++/<version>, gcc-lib/<anything>/include,
|
||||
# lib/gcc/<anything>/include.
|
||||
|
||||
gawk ${EXCLUDEPATT+-vexclude="$EXCLUDEPATT"} \
|
||||
${INCLUDEPATT+-vinclude="$INCLUDEPATT"} '
|
||||
BEGIN {
|
||||
skipping = 0;
|
||||
cppline = "^# [0-9]+ \"[^\"]*/(usr/include|g\\+\\+-include|include/g\\+\\+|include/c\\+\\+/[^/]+|gcc-lib/[^\"]+/include|gcc/include)/([^\"]+)\"( [1-4])*$"
|
||||
cppline = "^# [0-9]+ \"[^\"]*/(usr/include|g\\+\\+-include|include/g\\+\\+|include/c\\+\\+/[^/]+|gcc-lib/[^\"]+/include|lib/gcc/[^\"]+/include|gcc/include)/([^\"]+)\"( [1-4])*$"
|
||||
}
|
||||
!skipping && $0 ~ cppline &&
|
||||
(exclude == "" || $3 !~ exclude) && (include == "" || $3 ~ include) {
|
||||
|
||||
Reference in New Issue
Block a user