Support multilib-aware target lib flags self-specs overriding
authorAlexandre Oliva <oliva@adacore.com>
Sat, 5 Nov 2022 06:14:33 +0000 (03:14 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Sat, 5 Nov 2022 06:14:33 +0000 (03:14 -0300)
commit6b1a2474f9e422ef746f7ea13014b288850bb68a
tree391e95f35df7bf1efbefe820003324821508f1c4
parent95ba31bc4f88a0a2ff9f0ed41f3478cafcb9e040
Support multilib-aware target lib flags self-specs overriding

This patch introduces -fmultiflags, short for multilib TFLAGS, as an
option that does nothing by default, but that can be added to TFLAGS
and mapped to useful options by driver self-specs.

for  gcc/ChangeLog

* common.opt (fmultiflags): New.
* doc/invoke.texi: Document it.
* gcc.cc (driver_self_specs): Discard it.
* opts.cc (common_handle_option): Ignore it in the driver.
gcc/common.opt
gcc/doc/invoke.texi
gcc/gcc.cc
gcc/opts.cc