The attached patch enabled libatomic for Cygwin targets.
check-target-libatomic for i686-pc-cygwin: Running gcc/libatomic/testsuite/libatomic.c/c.exp ... === libatomic Summary === # of expected passes 44 # of unsupported tests 5 check-target-libatomic results x86_64-unknown-cygwin: Running gnu/gcc/libatomic/testsuite/libatomic.c/c.exp ... === libatomic Summary === # of expected passes 54 -- Yaakov Selkowitz Associate Software Engineer, ARM Red Hat, Inc.
2014-08-12 Yaakov Selkowitz <yselk...@redhat.com> * configure.tgt: Add cygwin to supported targets. Index: libatomic/configure.tgt =================================================================== --- libatomic/configure.tgt (revision 213759) +++ libatomic/configure.tgt (working copy) @@ -107,7 +107,7 @@ *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu \ | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* \ | *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11* \ - | *-*-darwin* | *-*-aix*) + | *-*-darwin* | *-*-aix* | *-*-cygwin*) # POSIX system. The OS is supported. config_path="${config_path} posix" ;;