Patchwork VMS: force output filename in t-vms

login
register
mail settings
Submitter Tristan Gingold
Date Dec. 16, 2011, 3:35 p.m.
Message ID <A52CD185-6114-490A-AE7F-59F2CE586518@adacore.com>
Download mbox | patch
Permalink /patch/131844/
State New
Headers show

Comments

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.

Tristan.

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

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

Patch

--- 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
-       $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
+       $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $< -o $@
 
 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) \
   $(TM_P_H)
        $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
-          $(PREPROCESSOR_DEFINES) \$<
+          $(PREPROCESSOR_DEFINES) $< -o $@