Skip to content

Commit

Permalink
Undo perform degradation on macOS
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bjorng committed Feb 18, 2021
1 parent 775806a commit 2c37b50
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions erts/aclocal.m4
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ AC_TRY_COMPILE([],[
#endif
__label__ lbl1;
__label__ lbl2;
extern int magic(void);
int x = magic();
static void *jtab[2];
Expand Down Expand Up @@ -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];
Expand Down

0 comments on commit 2c37b50

Please sign in to comment.