diff --git a/Makefile b/Makefile
index b29f103173..ecce9ec5f3 100644
--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,7 @@
MAJVER= 2
MINVER= 0
-RELVER= 4
+RELVER= 5
VERSION= $(MAJVER).$(MINVER).$(RELVER)
ABIVER= 5.1
diff --git a/README b/README
index 1b0abed2f0..6cb7cebb74 100644
--- a/README
+++ b/README
@@ -1,4 +1,4 @@
-README for LuaJIT 2.0.4
+README for LuaJIT 2.0.5
-----------------------
LuaJIT is a Just-In-Time (JIT) compiler for the Lua programming language.
diff --git a/doc/changes.html b/doc/changes.html
index bde799f6ed..4a4d4fb918 100644
--- a/doc/changes.html
+++ b/doc/changes.html
@@ -63,7 +63,7 @@
This is a list of changes between the released versions of LuaJIT.
-The current stable version is LuaJIT 2.0.4.
+The current stable version is LuaJIT 2.0.5.
Please check the
diff --git a/doc/install.html b/doc/install.html
index f7a560f3fd..4bcc506a5b 100644
--- a/doc/install.html
+++ b/doc/install.html
@@ -188,8 +188,8 @@
Prerequisites
and change to the newly created directory:
-tar zxf LuaJIT-2.0.4.tar.gz
-cd LuaJIT-2.0.4
+tar zxf LuaJIT-2.0.5.tar.gz
+cd LuaJIT-2.0.5
Building LuaJIT
The supplied Makefiles try to auto-detect the settings needed for your
diff --git a/doc/running.html b/doc/running.html
index 1232b84f57..331c22df3d 100644
--- a/doc/running.html
+++ b/doc/running.html
@@ -186,7 +186,7 @@
-j cmd[=arg[,arg...]]
read the comment block at the start of their source.
They can be found in the
lib directory of the source
distribution or installed under the
jit directory. By default
-this is
/usr/local/share/luajit-2.0.4/jit on POSIX
+this is
/usr/local/share/luajit-2.0.5/jit on POSIX
systems.
diff --git a/etc/luajit.pc b/etc/luajit.pc
index a652b40d46..36840ab878 100644
--- a/etc/luajit.pc
+++ b/etc/luajit.pc
@@ -1,7 +1,7 @@
# Package information for LuaJIT to be used by pkg-config.
majver=2
minver=0
-relver=4
+relver=5
version=${majver}.${minver}.${relver}
abiver=5.1
diff --git a/src/Makefile b/src/Makefile
index bd172dbe3e..f7f81a4e60 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -12,7 +12,7 @@
MAJVER= 2
MINVER= 0
-RELVER= 4
+RELVER= 5
ABIVER= 5.1
NODOTABIVER= 51
diff --git a/src/jit/bc.lua b/src/jit/bc.lua
index a4cd5f202a..a2f84aaf3f 100644
--- a/src/jit/bc.lua
+++ b/src/jit/bc.lua
@@ -41,7 +41,7 @@
-- Cache some library functions and objects.
local jit = require("jit")
-assert(jit.version_num == 20004, "LuaJIT core/library version mismatch")
+assert(jit.version_num == 20005, "LuaJIT core/library version mismatch")
local jutil = require("jit.util")
local vmdef = require("jit.vmdef")
local bit = require("bit")
diff --git a/src/jit/bcsave.lua b/src/jit/bcsave.lua
index d548b1a7f8..aa677dfc34 100644
--- a/src/jit/bcsave.lua
+++ b/src/jit/bcsave.lua
@@ -11,7 +11,7 @@
------------------------------------------------------------------------------
local jit = require("jit")
-assert(jit.version_num == 20004, "LuaJIT core/library version mismatch")
+assert(jit.version_num == 20005, "LuaJIT core/library version mismatch")
local bit = require("bit")
-- Symbol name prefix for LuaJIT bytecode.
diff --git a/src/jit/dump.lua b/src/jit/dump.lua
index 6c6abb66b9..666ba438fa 100644
--- a/src/jit/dump.lua
+++ b/src/jit/dump.lua
@@ -55,7 +55,7 @@
-- Cache some library functions and objects.
local jit = require("jit")
-assert(jit.version_num == 20004, "LuaJIT core/library version mismatch")
+assert(jit.version_num == 20005, "LuaJIT core/library version mismatch")
local jutil = require("jit.util")
local vmdef = require("jit.vmdef")
local funcinfo, funcbc = jutil.funcinfo, jutil.funcbc
diff --git a/src/jit/v.lua b/src/jit/v.lua
index 0f5407a17b..47ee39410f 100644
--- a/src/jit/v.lua
+++ b/src/jit/v.lua
@@ -59,7 +59,7 @@
-- Cache some library functions and objects.
local jit = require("jit")
-assert(jit.version_num == 20004, "LuaJIT core/library version mismatch")
+assert(jit.version_num == 20005, "LuaJIT core/library version mismatch")
local jutil = require("jit.util")
local vmdef = require("jit.vmdef")
local funcinfo, traceinfo = jutil.funcinfo, jutil.traceinfo
diff --git a/src/luaconf.h b/src/luaconf.h
index 73b80f1152..b33e91b774 100644
--- a/src/luaconf.h
+++ b/src/luaconf.h
@@ -37,7 +37,7 @@
#endif
#define LUA_LROOT "/usr/local"
#define LUA_LUADIR "/lua/5.1/"
-#define LUA_LJDIR "/luajit-2.0.4/"
+#define LUA_LJDIR "/luajit-2.0.5/"
#ifdef LUA_ROOT
#define LUA_JROOT LUA_ROOT
diff --git a/src/luajit.h b/src/luajit.h
index 1709ca2610..c5ff3acb48 100644
--- a/src/luajit.h
+++ b/src/luajit.h
@@ -30,9 +30,9 @@
#include "lua.h"
-#define LUAJIT_VERSION "LuaJIT 2.0.4"
-#define LUAJIT_VERSION_NUM 20004 /* Version 2.0.4 = 02.00.04. */
-#define LUAJIT_VERSION_SYM luaJIT_version_2_0_4
+#define LUAJIT_VERSION "LuaJIT 2.0.5"
+#define LUAJIT_VERSION_NUM 20005 /* Version 2.0.5 = 02.00.05. */
+#define LUAJIT_VERSION_SYM luaJIT_version_2_0_5
#define LUAJIT_COPYRIGHT "Copyright (C) 2005-2017 Mike Pall"
#define LUAJIT_URL "http://luajit.org/"