Land #426, don't assume ; works as a newline assembly character
This commit is contained in:
commit
9b4044d8ed
@ -91,7 +91,7 @@ AM_CONDITIONAL([HOST_CPU_IS_INTEL], [test "x$HOSTARCH" = "xintel"])
|
|||||||
AC_MSG_CHECKING([if .gnu.warning accepts long strings])
|
AC_MSG_CHECKING([if .gnu.warning accepts long strings])
|
||||||
AC_LINK_IFELSE([AC_LANG_SOURCE([[
|
AC_LINK_IFELSE([AC_LANG_SOURCE([[
|
||||||
extern void SSLv3_method();
|
extern void SSLv3_method();
|
||||||
__asm__(".section .gnu.warning.SSLv3_method; .ascii \"SSLv3_method is insecure\" ; .text");
|
__asm__(".section .gnu.warning.SSLv3_method\n\t.ascii \"SSLv3_method is insecure\"\n\t.text");
|
||||||
int main() {return 0;}
|
int main() {return 0;}
|
||||||
]])], [
|
]])], [
|
||||||
AC_DEFINE(HAS_GNU_WARNING_LONG, 1, [Define if .gnu.warning accepts long strings.])
|
AC_DEFINE(HAS_GNU_WARNING_LONG, 1, [Define if .gnu.warning accepts long strings.])
|
||||||
|
@ -62,7 +62,7 @@ typedef SSIZE_T ssize_t;
|
|||||||
#if defined(__GNUC__) && defined (HAS_GNU_WARNING_LONG)
|
#if defined(__GNUC__) && defined (HAS_GNU_WARNING_LONG)
|
||||||
#define __warn_references(sym,msg) \
|
#define __warn_references(sym,msg) \
|
||||||
__asm__(".section .gnu.warning." __STRING(sym) \
|
__asm__(".section .gnu.warning." __STRING(sym) \
|
||||||
" ; .ascii \"" msg "\" ; .text");
|
"\n\t.ascii \"" msg "\"\n\t.text");
|
||||||
#else
|
#else
|
||||||
#define __warn_references(sym,msg)
|
#define __warn_references(sym,msg)
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user