+2012-03-16 Tristan Gingold <gingold@adacore.com>
+
+ * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
+ __CRTL_VER and __VMS_VER.
+ * config/vms/vms-protos.h: Declare vms_c_get_crtl_ver
+ and vms_c_get_vms_ver.
+ * config/vms/vms-c.c (vms_c_get_crtl_ver, vms_c_get_vms_ver): New
+ functions.
+ * config/alpha/vms.h (VMS_DEFAULT_CRTL_VER)
+ (VMS_DEFAULT_VMS_VER): Define.
+ * config/ia64/vms.h (VMS_DEFAULT_CRTL_VER)
+ (VMS_DEFAULT_VMS_VER): Define.
+
2012-03-16 Richard Guenther <rguenther@suse.de>
* tree-vect-loop.c (get_initial_def_for_induction): Use
break;
}
}
+
+/* The default value for _CRTL_VER macro. */
+
+int
+vms_c_get_crtl_ver (void)
+{
+ return VMS_DEFAULT_CRTL_VER;
+}
+
+/* The default value for _VMS_VER macro. */
+
+int
+vms_c_get_vms_ver (void)
+{
+ return VMS_DEFAULT_VMS_VER;
+}
#define TARGET_OBJECT_SUFFIX ".obj"
#define TARGET_EXECUTABLE_SUFFIX ".exe"
-#define TARGET_OS_CPP_BUILTINS() \
- do { \
- builtin_define_std ("vms"); \
- builtin_define_std ("VMS"); \
- builtin_assert ("system=vms"); \
- SUBTARGET_OS_CPP_BUILTINS(); \
- builtin_define ("__int64=long long"); \
- if (flag_vms_pointer_size == VMS_POINTER_SIZE_32) \
- builtin_define ("__INITIAL_POINTER_SIZE=32"); \
- else if (flag_vms_pointer_size == VMS_POINTER_SIZE_64) \
- builtin_define ("__INITIAL_POINTER_SIZE=64"); \
- if (POINTER_SIZE == 64) \
- builtin_define ("__LONG_POINTERS=1"); \
+#define TARGET_OS_CPP_BUILTINS() \
+ do { \
+ builtin_define_std ("vms"); \
+ builtin_define_std ("VMS"); \
+ builtin_assert ("system=vms"); \
+ SUBTARGET_OS_CPP_BUILTINS(); \
+ builtin_define ("__int64=long long"); \
+ if (flag_vms_pointer_size == VMS_POINTER_SIZE_32) \
+ builtin_define ("__INITIAL_POINTER_SIZE=32"); \
+ else if (flag_vms_pointer_size == VMS_POINTER_SIZE_64) \
+ builtin_define ("__INITIAL_POINTER_SIZE=64"); \
+ if (POINTER_SIZE == 64) \
+ builtin_define ("__LONG_POINTERS=1"); \
+ builtin_define_with_int_value ("__CRTL_VER", vms_c_get_crtl_ver ()); \
+ builtin_define_with_int_value ("__VMS_VER", vms_c_get_vms_ver ()); \
} while (0)
extern void vms_c_register_includes (const char *, const char *, int);