Patchwork [libitm] : FixPR51098, bootstrap failure on AVX target

login
register
mail settings
Submitter Uros Bizjak
Date Nov. 16, 2011, 2:54 p.m.
Message ID <CAFULd4br92Sq-cC+AaWncV=O5t3XLs+dbKUTve1C_gf-Rx_V2Q@mail.gmail.com>
Download mbox | patch
Permalink /patch/125995/
State New
Headers show

Comments

Uros Bizjak - Nov. 16, 2011, 2:54 p.m.
Hello!

2011-11-16  Uros Bizjak  <ubizjak@gmail.com>

	PR bootstrap/51098
	* acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
	* configure: Regenerate.

Tested on x86_64-pc-linux-gnu, committed to mainline SVN.

Uros.

Patch

Index: acinclude.m4
===================================================================
--- acinclude.m4	(revision 181402)
+++ acinclude.m4	(working copy)
@@ -98,7 +98,7 @@ 
 dnl Check if as supports AVX instructions.
 AC_DEFUN([LIBITM_CHECK_AS_AVX], [
 case "${target_cpu}" in
-i[3456]86 | x86_64)
+i[[34567]]86 | x86_64)
   AC_CACHE_CHECK([if the assembler supports AVX], libitm_cv_as_avx, [
     AC_TRY_COMPILE([], [asm("vzeroupper");],
 		   [libitm_cv_as_avx=yes], [libitm_cv_as_avx=no])
Index: configure
===================================================================
--- configure	(revision 181402)
+++ configure	(working copy)
@@ -17118,7 +17118,7 @@ 
   fi
 
 case "${target_cpu}" in
-i345686 | x86_64)
+i[34567]86 | x86_64)
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports AVX" >&5
 $as_echo_n "checking if the assembler supports AVX... " >&6; }
 if test "${libitm_cv_as_avx+set}" = set; then :