Do not emit .string into the instruction stream, but into the .data

section (to avoid alignment assertions).
This commit is contained in:
Marcus Meissner 2002-08-20 00:26:40 +00:00 committed by Alexandre Julliard
parent a9568dd08b
commit 49163d5e6a
2 changed files with 3 additions and 2 deletions

2
configure vendored
View File

@ -10237,7 +10237,7 @@ else
cat >conftest.$ac_ext <<_ACEOF cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure" #line $LINENO "configure"
#include "confdefs.h" #include "confdefs.h"
void ac_asm(void) { asm(".string \"test\""); } void ac_asm(void) { asm(".data\n\t.string \"test\"\n\t.text"); }
#ifdef F77_DUMMY_MAIN #ifdef F77_DUMMY_MAIN
# ifdef __cplusplus # ifdef __cplusplus

View File

@ -743,7 +743,8 @@ fi
dnl **** Check for .string in assembler **** dnl **** Check for .string in assembler ****
AC_CACHE_CHECK([whether assembler accepts .string], ac_cv_c_asm_string, AC_CACHE_CHECK([whether assembler accepts .string], ac_cv_c_asm_string,
WINE_TRY_ASM_LINK([".string \"test\""],,,ac_cv_c_asm_string="yes",ac_cv_c_asm_string="no")) WINE_TRY_ASM_LINK([".data\n\t.string \"test\"\n\t.text"],,,
ac_cv_c_asm_string="yes",ac_cv_c_asm_string="no"))
if test "$ac_cv_c_asm_string" = "yes" if test "$ac_cv_c_asm_string" = "yes"
then then
AC_DEFINE(HAVE_ASM_STRING, 1, [Define to use .string instead of .ascii]) AC_DEFINE(HAVE_ASM_STRING, 1, [Define to use .string instead of .ascii])