aboutsummaryrefslogtreecommitdiffstats
path: root/include/ruby/backward
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2020-04-10 11:20:35 +0900
committerKoichi Sasada <ko1@atdot.net>2020-04-10 14:53:25 +0900
commit443389effc37308ce1a3c3a840082a344fc6af56 (patch)
treedb47722822c73d30be82410b880fda0fcb14a199 /include/ruby/backward
parent63a5412db7138297a2e7513067ef80dad7a3b4b4 (diff)
downloadruby-443389effc37308ce1a3c3a840082a344fc6af56.tar.gz
reduce duplicate include.
Without this patch, 20k files are opened (openat syscall) because of duplicate includes. This patch reduced it to 3k and build time was reduced compile time of range.o from 15sec -> 3sec on my machine. [Bug #16772]
Diffstat (limited to 'include/ruby/backward')
-rw-r--r--include/ruby/backward/2/gcc_version_since.h1
-rw-r--r--include/ruby/backward/2/long_long.h2
2 files changed, 0 insertions, 3 deletions
diff --git a/include/ruby/backward/2/gcc_version_since.h b/include/ruby/backward/2/gcc_version_since.h
index c3c7aca5e0..4e2abc45f9 100644
--- a/include/ruby/backward/2/gcc_version_since.h
+++ b/include/ruby/backward/2/gcc_version_since.h
@@ -18,7 +18,6 @@
* extension libraries. They could be written in C++98.
* @brief Defines old #GCC_VERSION_SINCE
*/
-#include "ruby/3/compiler_since.h"
#ifndef GCC_VERSION_SINCE
#define GCC_VERSION_SINCE(x, y, z) RUBY3_COMPILER_SINCE(GCC, (x), (y), (z))
diff --git a/include/ruby/backward/2/long_long.h b/include/ruby/backward/2/long_long.h
index 8669d42cd6..29b930625e 100644
--- a/include/ruby/backward/2/long_long.h
+++ b/include/ruby/backward/2/long_long.h
@@ -24,8 +24,6 @@
* compatibility only.
*/
#include "ruby/3/config.h"
-#include "ruby/3/has/warning.h"
-#include "ruby/3/warning_push.h"
#if defined(LONG_LONG)
# /* Take that. */