VMS: force output filename in t-vms

Message ID A52CD185-6114-490A-AE7F-59F2CE586518@adacore.com
State New
Headers show

Commit Message

Tristan Gingold Dec. 16, 2011, 3:35 p.m.
The default object suffix for VMS is .obj, so we need to force .o.
Ironically the issue was in vms/t-vms, but wasn't caught until a native compiler was built.

Committed on trunk.


2011-12-16  Tristan Gingold  <gingold@adacore.com>

	* config/vms/t-vms (vms.o, vms-c.o): Force output filename.


--- a/gcc/config/vms/t-vms
+++ b/gcc/config/vms/t-vms
@@ -31,10 +31,10 @@  vms-crtlmap.h: $(srcdir)/config/vms/vms-crtlmap.map  \
 vms.o: $(srcdir)/config/vms/vms.c $(TREE_H) $(CONFIG_H) $(SYSTEM_H) \
   coretypes.h $(TM_P_H) vms-crtlmap.h
 vms-c.o: $(srcdir)/config/vms/vms-c.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
   $(TM_H) $(CPPLIB_H) $(TREE_H) c-family/c-pragma.h toplev.h $(GGC_H) \
-          $(PREPROCESSOR_DEFINES) \$<
+          $(PREPROCESSOR_DEFINES) $< -o $@