--- old/common/autoconf/toolchain.m4 2013-08-28 17:31:49.768467382 +0400 +++ new/common/autoconf/toolchain.m4 2013-08-28 17:31:49.705468592 +0400 @@ -430,8 +430,14 @@ AC_PATH_PROG(AS, as) BASIC_FIXUP_EXECUTABLE(AS) else - AS="$CC -c" + # Enforce preprocessing of assembler files for GCC + if test "x$ac_compiler_gnu" = "xyes"; then + AS="$CC -c -x assembler-with-cpp " + else + AS="$CC -c" + fi fi +AC_MSG_NOTICE([Using $AS as assembler]) AC_SUBST(AS) if test "x$OPENJDK_TARGET_OS" = xsolaris; then