http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56909
--- Comment #1 from Arthur Zhang <mail2arthur at gmail dot com> 2013-04-10
16:32:49 UTC ---
Less undefined references if add '--with-arch=i486 --with-tune=i686' to
configure.
s-atopri.o: In function `system__atomic_primitives__lock_free_read_64':
e:\test1\bd\wk\build\gcc\ada\rts/s-atopri.adb:80: undefined reference to
`__atomic_load_8'
s-atopri.o: In function `system__atomic_primitives__lock_free_try_write_64':
e:\test1\bd\wk\build\gcc\ada\rts/s-atopri.adb:188: undefined reference to
`__sync_val_compare_and_swap_8'
collect2.exe: error: ld returned 1 exit status
Full configure command line:
$srcdir/configure \
--enable-languages=c,c++,ada,fortran,objc,obj-c++ \
--with-arch=i486 --with-tune=i686 \
--disable-sjlj-exceptions \
--with-dwarf2 \
--enable-shared \
--enable-libgomp \
--disable-win32-registry \
--enable-libstdcxx-debug \
--disable-build-poststage1-with-cxx \
--enable-version-specific-runtime-libs \
--build=mingw32 \
--prefix=/mingw
}