diff options
author | Xi Ruoyao <xry111@xry111.site> | 2023-04-15 19:55:50 +0800 |
---|---|---|
committer | Xi Ruoyao <xry111@xry111.site> | 2023-05-07 00:58:05 +0800 |
commit | be6c13d5cef6fd9ca97dea7a6f5fbf93c51235b5 (patch) | |
tree | 3b7e8abf2de8f589c945f8ece86e746ea04d5155 | |
parent | 2d76f2b45d6649174748d862a31bb95c53ee1117 (diff) | |
download | gcc-be6c13d5cef6fd9ca97dea7a6f5fbf93c51235b5.zip gcc-be6c13d5cef6fd9ca97dea7a6f5fbf93c51235b5.tar.gz gcc-be6c13d5cef6fd9ca97dea7a6f5fbf93c51235b5.tar.bz2 |
build: Use -nostdinc generating macro_list [PR109522]
This prevents a spurious message building a cross-compiler when target
libc is not installed yet:
cc1: error: no include path in which to search for stdc-predef.h
As stdc-predef.h was added to define __STDC_* macros by libc, it's
unlikely the header will ever contain some bad definitions w/o "__"
prefix so it should be safe.
gcc/ChangeLog:
PR other/109522
* Makefile.in (s-macro_list): Pass -nostdinc to
$(GCC_FOR_TARGET).
-rw-r--r-- | gcc/Makefile.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/Makefile.in b/gcc/Makefile.in index 9300b3ee..1748658 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -3254,7 +3254,7 @@ install-gcc-tooldir: macro_list: s-macro_list; @true s-macro_list : $(GCC_PASSES) cc1$(exeext) - echo | $(GCC_FOR_TARGET) -E -dM - | \ + echo | $(GCC_FOR_TARGET) -nostdinc -E -dM - | \ sed -n -e 's/^#define \([^_][a-zA-Z0-9_]*\).*/\1/p' \ -e 's/^#define \(_[^_A-Z][a-zA-Z0-9_]*\).*/\1/p' | \ sort -u > tmp-macro_list |