diff mbox series

Simplify the compilation commands for config/vxworks.c

Message ID 0BE7DF1F-3463-4B63-BA66-BE6B71AF8070@adacore.com
State New
Headers show
Series Simplify the compilation commands for config/vxworks.c | expand

Commit Message

Olivier Hainque Dec. 13, 2019, 4:19 p.m. UTC
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  <hainque@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 mbox series

Patch

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) $<