From e01a1a1d45c287f51977d6269c3f82ed0cdc9b71 Mon Sep 17 00:00:00 2001 From: Brad Lassey Date: Mon, 14 Oct 2013 15:18:50 -0400 Subject: [PATCH] bug 890985 - crash in nsStandardURL::SetSpec @ nsStandardURL::BuildNormalizedSpec r=glandium --HG-- extra : rebase_source : f5e45ed940e6311b20ba6d236b7153a5acb633b2 --- build/autoconf/arch.m4 | 16 +++++++++++++++- js/src/build/autoconf/arch.m4 | 19 ++++++++++++++++++- 2 files changed, 33 insertions(+), 2 deletions(-) diff --git a/build/autoconf/arch.m4 b/build/autoconf/arch.m4 index 508cb9776cc..de3be0fa606 100644 --- a/build/autoconf/arch.m4 +++ b/build/autoconf/arch.m4 @@ -14,6 +14,7 @@ MOZ_THUMB_INTERWORK=toolchain-default MOZ_FPU=toolchain-default MOZ_FLOAT_ABI=toolchain-default MOZ_SOFT_FLOAT=toolchain-default +MOZ_ALIGN=toolchain-default MOZ_ARG_WITH_STRING(arch, [ --with-arch=[[type|toolchain-default]] @@ -32,6 +33,7 @@ if test -z "$MOZ_ARCH"; then MOZ_ARCH=armv7-a MOZ_FPU=vfp MOZ_FLOAT_ABI=softfp + MOZ_ALIGN=no ;; arm-Darwin) MOZ_ARCH=toolchain-default @@ -159,8 +161,20 @@ no) ;; esac +case "$MOZ_ALIGN" in +no) + align_flag="-mno-unaligned-access" + ;; +yes) + align_flag="-munaligned-access" + ;; +*) + align_flag="" + ;; +esac + dnl Use echo to avoid accumulating space characters -all_flags=`echo $arch_flag $thumb_flag $thumb_interwork_flag $fpu_flag $float_abi_flag $soft_float_flag` +all_flags=`echo $arch_flag $thumb_flag $thumb_interwork_flag $fpu_flag $float_abi_flag $soft_float_flag $align_flag` if test -n "$all_flags"; then _SAVE_CFLAGS="$CFLAGS" CFLAGS="$all_flags" diff --git a/js/src/build/autoconf/arch.m4 b/js/src/build/autoconf/arch.m4 index 508cb9776cc..826cf3089d3 100644 --- a/js/src/build/autoconf/arch.m4 +++ b/js/src/build/autoconf/arch.m4 @@ -14,6 +14,7 @@ MOZ_THUMB_INTERWORK=toolchain-default MOZ_FPU=toolchain-default MOZ_FLOAT_ABI=toolchain-default MOZ_SOFT_FLOAT=toolchain-default +MOZ_ALIGN=toolchain-default MOZ_ARG_WITH_STRING(arch, [ --with-arch=[[type|toolchain-default]] @@ -32,6 +33,7 @@ if test -z "$MOZ_ARCH"; then MOZ_ARCH=armv7-a MOZ_FPU=vfp MOZ_FLOAT_ABI=softfp + MOZ_ALIGN=no ;; arm-Darwin) MOZ_ARCH=toolchain-default @@ -159,8 +161,23 @@ no) ;; esac +case "$MOZ_ALIGN" in +toolchain-default|"") + align_flag="" + ;; +no) + align_flag="-mno-unaligned-access" + ;; +yes) + align_flag="-munaligned-access" + ;; +*) + align_flag="" + ;; +esac + dnl Use echo to avoid accumulating space characters -all_flags=`echo $arch_flag $thumb_flag $thumb_interwork_flag $fpu_flag $float_abi_flag $soft_float_flag` +all_flags=`echo $arch_flag $thumb_flag $thumb_interwork_flag $fpu_flag $float_abi_flag $soft_float_flag $align_flag` if test -n "$all_flags"; then _SAVE_CFLAGS="$CFLAGS" CFLAGS="$all_flags"