

Gcc version 4.9.1 (Ubuntu 4.9.1-16ubuntu6)ĬOLLECT_GCC=/home/andreyv/nfs/gcc/bin/gcc-5.1ĬOLLECT_LTO_WRAPPER=/nfs/home/andreyv/gcc/bin/./libexec/gcc/powerpc64le-unknown-linux-gnu/5.1.0/lto-wrapperĬonfigured with.

src/configure -v -with-pkgversion='Ubuntu 4.9.1-16ubuntu6' -with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs -enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ -prefix=/usr -program-suffix=-4.9 -enable-shared -enable-linker-build-id -libexecdir=/usr/lib -without-included-gettext -enable-threads=posix -with-gxx-include-dir=/usr/include/c++/4.9 -libdir=/usr/lib -enable-nls -with-sysroot=/ -enable-clocale=gnu -enable-libstdcxx-debug -enable-libstdcxx-time=yes -enable-gnu-unique-object -disable-libsanitizer -disable-libquadmath -enable-plugin -with-system-zlib -disable-browser-plugin -enable-java-awt=gtk -enable-gtk-cairo -with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-ppc64el/jre -enable-java-home -with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-ppc64el -with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-ppc64el -with-arch-directory=ppc64 -with-ecj-jar=/usr/share/java/eclipse-ecj.jar -enable-objc-gc -enable-secureplt -with-cpu=power7 -with-tune=power8 -disable-multilib -enable-multiarch -disable-werror -with-long-double-128 -enable-checking=release -build=powerpc64le-linux-gnu -host=powerpc64le-linux-gnu -target=powerpc64le-linux-gnu Printf("before the 2nd call to call_once flag_: %d\n", *(int*)&flag_) īefore the 2nd call to call_once flag_: 0īefore the 2nd call to call_once flag_: 1ĬOLLECT_LTO_WRAPPER=/usr/lib/gcc/powerpc64le-linux-gnu/4.9/lto-wrapperĬonfigured with. Printf("Before calling call_once flag_: %d\n", *(int*)&flag_) Printf("Inside func_ call_count %d\n", call_count) Std::call_once is not C++11 (or even N2447) compliant on ppc64le.Īccording to N2447, "If the invocation of func results in an exception being thrown, the exception is propagated to the caller and the effects are as-if this invocation of call_once did not occur."
