On Thu, Dec 07, 2017 at 11:56:55PM +0000, Steve Ellcey wrote: > James, > > Here is a patch that will turn off the use of IFUNC and the LSE > instructions in libatomic if the compiler/assembler toolchain do not > understand the '-march=armv8-a+lse' option (changed from > -march=armv8.1-a). Rather than check the assembler directly, I used > the existing ACX_PROG_CC_WARNING_OPTS macro to test this. This will > cause the GCC being built to send the option in question to the > assembler and if the assembler complains that is enough to cause us to > not set enable_aarch64_lse, and thus not set try_ifunc.
Thanks for the fix. OK, James > > Steve Ellcey > sell...@cavium.com > > > 2017-12-07 Steve Ellcey <sell...@cavium.com> > > * Makefile.am (IFUNC_OPTIONS): Change aarch64 > option from -march=armv8.1-a to -march=armv8-a+lse. > * configure.ac (*aarch64*): Check to see if > compiler understands -march=armv8-a+lse option. > * configure.tgt (*aarch64*): Only set try_ifunc > if compiler understands -march=armv8-a+lse option. > * Makefile.in: Regenerate. > * configure: Regenerate. > * aclocal.m4: Regenerate. >