Add TFLAGS to gcc's GCC_FOR_TARGET
authorAlexandre Oliva <oliva@adacore.com>
Mon, 7 Aug 2023 11:07:18 +0000 (13:07 +0200)
committerAlan Modra <amodra@gmail.com>
Sat, 12 Aug 2023 00:28:23 +0000 (09:58 +0930)
commit8fdbd80f1fce1ddac87d166b82fd41b2dff2824d
tree57d49c2f3c15f676c196d2df69b83104d4a2ad09
parentb8326e1c4ad9aa970ae1a0cc36e039cd7485c2b1
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.

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