robustify vxworks glimits.h overriding
commitcecf8c662de09c5db14d1e5a4006ab6147980546
authorAlexandre Oliva <oliva@adacore.com>
Wed, 6 Jan 2021 11:05:35 +0000 (6 08:05 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Wed, 6 Jan 2021 11:05:35 +0000 (6 08:05 -0300)
tree4c484c209d5a7041e0086034aa366821b500225a
parentc9ee9c1e3553247c776f33eb0fe0aadee094a192
robustify vxworks glimits.h overriding

The glimits.h overriding used in gcc/config/t-vxworks was fragile: the
intermediate file would already be there in a rebuild, and so the
adjustments would not be made, so the generated limits.h would miss
them, causing limits-width-[12] tests to fail on that target.

While changing it, I also replaced the modern $(cmd) shell syntax with
the more portable `cmd` construct.

for  gcc/ChangeLog

* Makefile.in (T_GLIMITS_H): New.
(stmp-int-hdrs): Depend on it, use it.
* config/t-vxworks (T_GLIMITS_H): Override it.
(vxw-glimits.h): New.
gcc/Makefile.in
gcc/config/t-vxworks