The patch by Joel setting up TARGET_C_PREINCLUDE exposed a possibility
to simplify/robustify the compilation commands use for another source in
the t-vxworks Makefile fragment.

We now leverage $(COMPILE) and $(POSTCOMPILE) instead of replicating
them manually for vxworks.c.

Tested in accordance with the description in
https://gcc.gnu.org/ml/gcc-patches/2019-12/msg00911.html

Committing to mainline.

Olivier

2019-12-13  Olivier Hainque  <hain...@adacore.com>

        * config/t-vxworks: Rework the vxworks.o compilation
        rules to use $(COMPILE).

 gcc/config/t-vxworks | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gcc/config/t-vxworks b/gcc/config/t-vxworks
index 69b3a2e3199..ce30338ed13 100644
--- a/gcc/config/t-vxworks
+++ b/gcc/config/t-vxworks
@@ -16,9 +16,9 @@
 # along with GCC; see the file COPYING3.  If not see
 # <http://www.gnu.org/licenses/>.
 
-vxworks.o: $(srcdir)/config/vxworks.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
-       $(TARGET_H) output.h $(TM_H)
-       $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
+vxworks.o: $(srcdir)/config/vxworks.c
+       $(COMPILE) $<
+       $(POSTCOMPILE)
 
 vxworks-c.o: $(srcdir)/config/vxworks-c.c
        $(COMPILE) $<
-- 
2.17.1

Reply via email to