diff options
author | John Högberg <john@erlang.org> | 2019-04-08 06:15:23 +0200 |
---|---|---|
committer | John Högberg <john@erlang.org> | 2019-04-08 07:23:32 +0200 |
commit | 0b6006dc4d2c9818c8d91ee364ed7d6aa660ed76 (patch) | |
tree | e5d4f2fcd254b4913a29bceaf381a54df837617d /erts/emulator/beam/sys.h | |
parent | 3a61226f801441a51e44a8e9703b92984fc48938 (diff) | |
download | erlang-0b6006dc4d2c9818c8d91ee364ed7d6aa660ed76.tar.gz |
erts: Skip ERTS_NOINLINE on non-GCC-compatible compilers
__declspec(noinline) works fine on MSVC but requires us to place
the macro before a function rather than after, which in turn causes
early versions of GCC to puke since they only accept __attribute__
at the end of a function declaration.
Since this is a new macro that previously only saw use in beam_emu,
I figured it's easiest to leave it disabled on MSVC.
Diffstat (limited to 'erts/emulator/beam/sys.h')
-rw-r--r-- | erts/emulator/beam/sys.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/erts/emulator/beam/sys.h b/erts/emulator/beam/sys.h index 24b6738e08..c261c8e117 100644 --- a/erts/emulator/beam/sys.h +++ b/erts/emulator/beam/sys.h @@ -66,8 +66,6 @@ #ifndef ERTS_NOINLINE # if ERTS_AT_LEAST_GCC_VSN__(3,1,1) # define ERTS_NOINLINE __attribute__((__noinline__)) -# elif defined(__WIN32__) -# define ERTS_NOINLINE __declspec(noinline) # else # define ERTS_NOINLINE # endif |