]> git.ipfire.org Git - thirdparty/gcc.git/commit - Makefile.tpl
Add TFLAGS to gcc's GCC_FOR_TARGET
authorAlexandre Oliva <oliva@adacore.com>
Tue, 28 Jun 2022 12:41:07 +0000 (09:41 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Tue, 28 Jun 2022 12:41:07 +0000 (09:41 -0300)
commiteabd44a02529f7921a4997240aaaefb15f1ef81f
tree77b81818f949a1cbb6f6f0683a31105929475908
parentbb1f266a7d602ffee4a070f586351bdfafcb6150
Add TFLAGS to gcc's GCC_FOR_TARGET

When the GCC build runs GCC_FOR_TARGET, e.g. for selftests or for
dumping specs, it doesn't use TFLAGS in non-bootstrap scenarios.  This
patch arranges for TFLAGS to be passed from the top level down to gcc
in GCC_FOR_TARGET in this case.

Another issue related with TFLAGS fixed herein is that there's no easy
way to add a TFLAGS to GCC_FOR_TARGET when running "make gnatlib"
within the gcc directory.  Overriding all of GCC_FOR_TARGET is
somewhat cumbersome, so I'm adding TFLAGS support to gcc/Makefile.in,
getting it added to GCC_FOR_TARGET, as it would when passed down from
the top level.

for  ChangeLog

* Makefile.tpl (HOST_EXPORTS): Add TFLAGS to GCC_FOR_TARGET.
(EXTRA_GCC_FLAGS): Likewise.
* Makefile.in: Rebuilt.

for  gcc/ChangeLog

* Makefile.in (TFLAGS): New.
(GCC_FOR_TARGET): Add TFLAGS.
(FLAGS_TO_PASS): Pass TFLAGS down.
Makefile.in
Makefile.tpl
gcc/Makefile.in