mirror of
https://github.com/webmproject/libwebp.git
synced 2025-02-13 07:22:52 +01:00
configure: add work around for gcc-4.9 aarch64 bug
add -frename-registers to avoid: src/dsp/dec_neon.c🔢1: internal compiler error: in simplify_const_unary_operation, at simplify-rtx.c:1539 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62040 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61622 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=757738 Change-Id: I52fb3a29ac30b82b27da05378bdb495ddebb97d7
This commit is contained in:
parent
dab702b357
commit
e2b8cec05b
13
configure.ac
13
configure.ac
@ -62,6 +62,19 @@ TEST_AND_ADD_CFLAGS([AM_CFLAGS], [-Wshadow])
|
||||
TEST_AND_ADD_CFLAGS([AM_CFLAGS], [-Wunused-but-set-variable])
|
||||
TEST_AND_ADD_CFLAGS([AM_CFLAGS], [-Wunused])
|
||||
TEST_AND_ADD_CFLAGS([AM_CFLAGS], [-Wvla])
|
||||
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62040
|
||||
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61622
|
||||
AS_IF([test "$GCC" = "yes" ], [
|
||||
gcc_version=`$CC -dumpversion`
|
||||
gcc_wht_bug=""
|
||||
case "$host_cpu" in
|
||||
aarch64|arm64)
|
||||
case "$gcc_version" in
|
||||
4.9|4.9.0|4.9.1) gcc_wht_bug=yes ;;
|
||||
esac
|
||||
esac
|
||||
AS_IF([test "$gcc_wht_bug" = "yes"], [
|
||||
TEST_AND_ADD_CFLAGS([AM_CFLAGS], [-frename-registers])])])
|
||||
AC_SUBST([AM_CFLAGS])
|
||||
|
||||
dnl === Check for machine specific flags
|
||||
|
Loading…
x
Reference in New Issue
Block a user