bytecode: Do not generate `SLIDE x 0` instructions
[ghc.git] / m4 / fp_visibility_hidden.m4
blob5f5cebeeec2d5846aae905ac2dec94ca1da0100e
1 # FP_VISIBILITY_HIDDEN
2 # ----------------------------------
3 # Is the visibility hidden attribute supported?
4 AC_DEFUN([FP_VISIBILITY_HIDDEN],
6     AC_MSG_CHECKING([whether __attribute__((visibility("hidden"))) is supported])
7     echo '__attribute__((visibility("hidden"))) void foo(void) {}' > conftest.c
8     if $CC -Wall -Werror -c conftest.c > /dev/null 2>&1
9     then
10         AC_MSG_RESULT([yes])
11         AC_DEFINE(HAS_VISIBILITY_HIDDEN, 1, [Has visibility hidden])
12     else
13         AC_MSG_RESULT([no])
14     fi
15     rm -f conftest.c conftest.o