summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Gustavsson <bjorn@erlang.org>2020-09-24 08:15:13 +0200
committerBjörn Gustavsson <bjorn@erlang.org>2021-02-18 12:04:00 +0100
commit2c37b50ce36dba22ab96110074a33c9037402a14 (patch)
treed9a8efcb9b2162432ad9d41224f0c552f73acf2e
parent775806a5363ad496ca573f4baa797628d15d7e2f (diff)
downloaderlang-2c37b50ce36dba22ab96110074a33c9037402a14.tar.gz
Undo perform degradation on macOS
Apple Clang 12 included in Xcode 12 reports an error when a function without a declaration is used. That change causes the configure test for jump table support to wrongly assume that jump table support is missing, and therefore a `switch` would be used, degrading the performance of BEAM.
-rw-r--r--erts/aclocal.m42
1 files changed, 2 insertions, 0 deletions
diff --git a/erts/aclocal.m4 b/erts/aclocal.m4
index 3d227e462c..d73bf3ccc2 100644
--- a/erts/aclocal.m4
+++ b/erts/aclocal.m4
@@ -221,6 +221,7 @@ AC_TRY_COMPILE([],[
#endif
__label__ lbl1;
__label__ lbl2;
+ extern int magic(void);
int x = magic();
static void *jtab[2];
@@ -266,6 +267,7 @@ if test "$ac_cv_prog_emu_cc" != no; then
#endif
__label__ lbl1;
__label__ lbl2;
+ extern int magic(void);
int x = magic();
static void *jtab[2];