diff src/cpu/zero/vm/register_zero.hpp @ 6926:a3e2f723f2a5

8000780: make Zero build and run with JDK8 Reviewed-by: coleenp, dholmes, twisti Contributed-by: Roman Kennke <rkennke@redhat.com>
author twisti
date Mon, 29 Oct 2012 11:08:48 -0700
parents f95d63e2154a
children
line wrap: on
line diff
--- a/src/cpu/zero/vm/register_zero.hpp	Fri Oct 26 14:18:57 2012 -0700
+++ b/src/cpu/zero/vm/register_zero.hpp	Mon Oct 29 11:08:48 2012 -0700
@@ -114,5 +114,8 @@
 };
 
 CONSTANT_REGISTER_DECLARATION(Register, noreg, (-1));
+#ifndef DONT_USE_REGISTER_DEFINES
+#define noreg ((Register)(noreg_RegisterEnumValue))
+#endif
 
 #endif // CPU_ZERO_VM_REGISTER_ZERO_HPP