diff options
author | Diego Novillo <dnovillo@google.com> | 2011-09-15 17:00:03 -0400 |
---|---|---|
committer | Diego Novillo <dnovillo@gcc.gnu.org> | 2011-09-15 17:00:03 -0400 |
commit | c875f5966e451d7caecab75b5c7efffbd54d4ecd (patch) | |
tree | 701e6a3873944b6f2226d0e7a4c7b25e7c11f7fe /gcc/Makefile.in | |
parent | 54f80b7edf200d74dcfe78daca8a20ca38148e12 (diff) | |
download | gcc-c875f5966e451d7caecab75b5c7efffbd54d4ecd.zip gcc-c875f5966e451d7caecab75b5c7efffbd54d4ecd.tar.gz gcc-c875f5966e451d7caecab75b5c7efffbd54d4ecd.tar.bz2 |
Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from @SYSROOT_CFLAGS_FOR_TARGET@.
* Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
@SYSROOT_CFLAGS_FOR_TARGET@.
* configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from
build-sysroot.
* configure: Regenerate.
(site.exp): Add definition of TEST_ALWAYS_FLAGS.
Remove setting of GCC_UNDER_TEST.
testsuite/ChangeLog
* lib/g++.exp (g++_init): Add $TEST_ALWAYS_FLAGS to
ALWAYS_CXXFLAGS, if defined.
* lib/gfortran.exp (gfortran_init): Add $TEST_ALWAYS_FLAGS to
ALWAYS_GFORTRANFLAGS, if defined.
* lib/go.exp (go_target_compile): Add $TEST_ALWAYS_FLAGS to
ALWAYS_GOCFLAGS, if defined.
* lib/obj-c++.exp (obj-c++_init): Add $TEST_ALWAYS_FLAGS to
ALWAYS_OBJCXXFLAGS, if defined.
* lib/gcc.exp (gcc_target_compile): Add $TEST_ALWAYS_FLAGS to
additional_flags, if defined.
* lib/gnat.exp (gnat_target_compile): Likewise.
* lib/objc.exp (objc_target_compile): Likewise.
* lib/target-supports-dg.exp (dg-add-options): Handle
TEST_ALWAYS_FLAGS.
From-SVN: r178897
Diffstat (limited to 'gcc/Makefile.in')
-rw-r--r-- | gcc/Makefile.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/Makefile.in b/gcc/Makefile.in index d5caba6..92016f2 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -384,6 +384,9 @@ USER_H_INC_NEXT_POST = @user_headers_inc_next_post@ # Don't use this as a dependency--use $(GCC_PASSES). GCC_FOR_TARGET = $(STAGE_CC_WRAPPER) ./xgcc -B./ -B$(build_tooldir)/bin/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include -L$(objdir)/../ld +# Set if the compiler was configured with --with-build-sysroot. +SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@ + # This is used instead of ALL_CFLAGS when compiling with GCC_FOR_TARGET. # It specifies -B./. # It also specifies -isystem ./include to find, e.g., stddef.h. @@ -4923,6 +4926,9 @@ site.exp: ./config.status Makefile @echo "set CXXFLAGS \"\"" >> ./site.tmp @echo "set HOSTCC \"$(CC)\"" >> ./site.tmp @echo "set HOSTCFLAGS \"$(CFLAGS)\"" >> ./site.tmp +# TEST_ALWAYS_FLAGS are flags that should be passed to every compilation. +# They are passed first to allow individual tests to override them. + @echo "set TEST_ALWAYS_FLAGS \"$(SYSROOT_CFLAGS_FOR_TARGET)\"" >> ./site.tmp # When running the tests we set GCC_EXEC_PREFIX to the install tree so that # files that have already been installed there will be found. The -B option # overrides it, so use of GCC_EXEC_PREFIX will not result in using GCC files |