mirror of
https://forge.sourceware.org/marek/gcc.git
synced 2026-02-22 03:47:02 -05:00
Clean up more fallout from r252976.
libatomic/ChangeLog: 2017-10-02 Martin Sebor <msebor@redhat.com> PR c/81854 * acinclude.m4 (LIBAT_CHECK_IFUNC): Have ifunc resolver return a function pointer rather than void* to avoid GCC 8 warnings. * configure: Regenerate. * libatomic_i.h: Declare ifunc resolvers to return function pointers rather than void*. From-SVN: r253372
This commit is contained in:
committed by
Martin Sebor
parent
9a741aee62
commit
bc437a5699
@@ -195,7 +195,8 @@ AC_DEFUN([LIBAT_CHECK_IFUNC], [
|
||||
CFLAGS="$CFLAGS -Werror"
|
||||
AC_TRY_LINK([
|
||||
int foo_alt(void) { return 0; }
|
||||
void *foo_sel(void) { return foo_alt; }
|
||||
typedef int F (void);
|
||||
F *foo_sel(void) { return foo_alt; }
|
||||
int foo(void) __attribute__((ifunc("foo_sel")));],
|
||||
[return foo();], libat_cv_have_ifunc=yes, libat_cv_have_ifunc=no)])
|
||||
LIBAT_DEFINE_YESNO([HAVE_IFUNC], [$libat_cv_have_ifunc],
|
||||
|
||||
Reference in New Issue
Block a user