2024-09-09 08:57:42 +00:00
|
|
|
From f7d49ca445e60faa1b5256c6b4f96c1ee5c0e353 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Khem Raj <raj.khem@gmail.com>
|
|
|
|
Date: Fri, 29 Mar 2013 09:17:25 +0400
|
|
|
|
Subject: [PATCH 23/35] Use the defaults.h in ${B} instead of ${S}, and t-oe
|
|
|
|
in ${B}
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
Use the defaults.h in ${B} instead of ${S}, and t-oe in ${B}, so that
|
|
|
|
the source can be shared between gcc-cross-initial,
|
|
|
|
gcc-cross-intermediate, gcc-cross, gcc-runtime, and also the sdk build.
|
2024-09-09 08:57:42 +00:00
|
|
|
|
|
|
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
Upstream-Status: Pending
|
|
|
|
|
|
|
|
While compiling gcc-crosssdk-initial-x86_64 on some host, there is
|
|
|
|
occasionally failure that test the existance of default.h doesn't
|
|
|
|
work, the reason is tm_include_list='** defaults.h' rather than
|
|
|
|
tm_include_list='** ./defaults.h'
|
|
|
|
|
|
|
|
So we add the test condition for this situation.
|
|
|
|
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
2024-09-09 08:52:07 +00:00
|
|
|
---
|
|
|
|
gcc/Makefile.in | 2 +-
|
|
|
|
gcc/configure | 4 ++--
|
|
|
|
gcc/configure.ac | 4 ++--
|
|
|
|
gcc/mkconfig.sh | 4 ++--
|
|
|
|
4 files changed, 7 insertions(+), 7 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/gcc/Makefile.in b/gcc/Makefile.in
|
2024-09-09 08:57:42 +00:00
|
|
|
index d1ab22f..15fe4b6 100644
|
2024-09-09 08:52:07 +00:00
|
|
|
--- a/gcc/Makefile.in
|
|
|
|
+++ b/gcc/Makefile.in
|
2024-09-09 08:57:42 +00:00
|
|
|
@@ -483,7 +483,7 @@ TARGET_SYSTEM_ROOT = @TARGET_SYSTEM_ROOT@
|
|
|
|
TARGET_SYSTEM_ROOT_DEFINE = @TARGET_SYSTEM_ROOT_DEFINE@
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
xmake_file=@xmake_file@
|
|
|
|
-tmake_file=@tmake_file@
|
|
|
|
+tmake_file=@tmake_file@ ./t-oe
|
|
|
|
TM_ENDIAN_CONFIG=@TM_ENDIAN_CONFIG@
|
|
|
|
TM_MULTILIB_CONFIG=@TM_MULTILIB_CONFIG@
|
|
|
|
TM_MULTILIB_EXCEPTIONS_CONFIG=@TM_MULTILIB_EXCEPTIONS_CONFIG@
|
|
|
|
diff --git a/gcc/configure b/gcc/configure
|
2024-09-09 08:57:42 +00:00
|
|
|
index 5399b2b..60a04bd 100755
|
2024-09-09 08:52:07 +00:00
|
|
|
--- a/gcc/configure
|
|
|
|
+++ b/gcc/configure
|
2024-09-09 08:57:42 +00:00
|
|
|
@@ -11631,8 +11631,8 @@ for f in $tm_file; do
|
2024-09-09 08:52:07 +00:00
|
|
|
tm_include_list="${tm_include_list} $f"
|
|
|
|
;;
|
|
|
|
defaults.h )
|
|
|
|
- tm_file_list="${tm_file_list} \$(srcdir)/$f"
|
|
|
|
- tm_include_list="${tm_include_list} $f"
|
|
|
|
+ tm_file_list="${tm_file_list} ./$f"
|
|
|
|
+ tm_include_list="${tm_include_list} ./$f"
|
|
|
|
;;
|
|
|
|
* )
|
|
|
|
tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
|
|
|
|
diff --git a/gcc/configure.ac b/gcc/configure.ac
|
2024-09-09 08:57:42 +00:00
|
|
|
index f87c3b6..460e0d9 100644
|
2024-09-09 08:52:07 +00:00
|
|
|
--- a/gcc/configure.ac
|
|
|
|
+++ b/gcc/configure.ac
|
2024-09-09 08:57:42 +00:00
|
|
|
@@ -1740,8 +1740,8 @@ for f in $tm_file; do
|
2024-09-09 08:52:07 +00:00
|
|
|
tm_include_list="${tm_include_list} $f"
|
|
|
|
;;
|
|
|
|
defaults.h )
|
|
|
|
- tm_file_list="${tm_file_list} \$(srcdir)/$f"
|
|
|
|
- tm_include_list="${tm_include_list} $f"
|
|
|
|
+ tm_file_list="${tm_file_list} ./$f"
|
|
|
|
+ tm_include_list="${tm_include_list} ./$f"
|
|
|
|
;;
|
|
|
|
* )
|
|
|
|
tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
|
|
|
|
diff --git a/gcc/mkconfig.sh b/gcc/mkconfig.sh
|
2024-09-09 08:57:42 +00:00
|
|
|
index c7146ed..b153f45 100644
|
2024-09-09 08:52:07 +00:00
|
|
|
--- a/gcc/mkconfig.sh
|
|
|
|
+++ b/gcc/mkconfig.sh
|
|
|
|
@@ -77,7 +77,7 @@ if [ -n "$HEADERS" ]; then
|
|
|
|
if [ $# -ge 1 ]; then
|
|
|
|
echo '#ifdef IN_GCC' >> ${output}T
|
|
|
|
for file in "$@"; do
|
|
|
|
- if test x"$file" = x"defaults.h"; then
|
2024-09-09 08:57:42 +00:00
|
|
|
+ if test x"$file" = x"./defaults.h" -o x"$file" = x"defaults.h"; then
|
2024-09-09 08:52:07 +00:00
|
|
|
postpone_defaults_h="yes"
|
|
|
|
else
|
|
|
|
echo "# include \"$file\"" >> ${output}T
|
2024-09-09 08:57:42 +00:00
|
|
|
@@ -106,7 +106,7 @@ esac
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
# If we postponed including defaults.h, add the #include now.
|
|
|
|
if test x"$postpone_defaults_h" = x"yes"; then
|
|
|
|
- echo "# include \"defaults.h\"" >> ${output}T
|
|
|
|
+ echo "# include \"./defaults.h\"" >> ${output}T
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Add multiple inclusion protection guard, part two.
|
|
|
|
--
|
2024-09-09 08:57:42 +00:00
|
|
|
1.9.1
|
2024-09-09 08:52:07 +00:00
|
|
|
|