summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-27 04:33:11 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-27 04:33:11 +0000
commit55702df2211363aae24f04d1c4e13888e72f3ac6 (patch)
treea0c4fb06066e9f139d2615fd5b3f6971acb63fa1
parentea4b9f8f8a8be189ce561af49f73c3ddee57f4fe (diff)
move GCC version check from marshal.c to configure.ac
I think it should be done in configure git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--configure.ac4
-rw-r--r--marshal.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index 900cd28402..367a072720 100644
--- a/configure.ac
+++ b/configure.ac
@@ -238,6 +238,10 @@ AS_IF([test "$GCC" = yes], [
linker_flag=
])
+AS_IF([test "$GCC" = yes -a "$gcc_major" -lt 3 ], [
+ AC_MSG_ERROR([too old GCC])
+])
+
RUBY_PROG_GNU_LD
RUBY_CPPOUTFILE
diff --git a/marshal.c b/marshal.c
index 365c468e02..0618400114 100644
--- a/marshal.c
+++ b/marshal.c
@@ -9,10 +9,6 @@
**********************************************************************/
-#if defined __GNUC__ && __GNUC__ < 3
-# error too old GCC
-#endif
-
#include "ruby/ruby.h"
#include "ruby/io.h"
#include "internal.h"