Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 417179 | Differences between
and this patch

Collapse All | Expand All

(-)a/configure (-38 / +5 lines)
Lines 12426-12466 $as_echo "$icc_archflag" >&6; } Link Here
12426
     CFLAGS="-O3 -fomit-frame-pointer"
12426
     CFLAGS="-O3 -fomit-frame-pointer"
12427
12427
12428
     # -malign-double for x86 systems
12428
     # -malign-double for x86 systems
12429
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -malign-double" >&5
12429
     # LIBFFI -- DON'T DO THIS - CHANGES ABI
12430
$as_echo_n "checking whether C compiler accepts -malign-double... " >&6; }
12430
     # AX_CHECK_COMPILE_FLAG(-malign-double, CFLAGS="$CFLAGS -malign-double")
12431
if ${ax_cv_check_cflags___malign_double+:} false; then :
12432
  $as_echo_n "(cached) " >&6
12433
else
12434
12435
  ax_check_save_flags=$CFLAGS
12436
  CFLAGS="$CFLAGS  -malign-double"
12437
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12438
/* end confdefs.h.  */
12439
12440
int
12441
main ()
12442
{
12443
12444
  ;
12445
  return 0;
12446
}
12447
_ACEOF
12448
if ac_fn_c_try_compile "$LINENO"; then :
12449
  ax_cv_check_cflags___malign_double=yes
12450
else
12451
  ax_cv_check_cflags___malign_double=no
12452
fi
12453
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12454
  CFLAGS=$ax_check_save_flags
12455
fi
12456
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___malign_double" >&5
12457
$as_echo "$ax_cv_check_cflags___malign_double" >&6; }
12458
if test x"$ax_cv_check_cflags___malign_double" = xyes; then :
12459
  CFLAGS="$CFLAGS -malign-double"
12460
else
12461
  :
12462
fi
12463
12464
12431
12465
     #  -fstrict-aliasing for gcc-2.95+
12432
     #  -fstrict-aliasing for gcc-2.95+
12466
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5
12433
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5
Lines 14480-14489 if ${libffi_cv_as_x86_pcrel+:} false; then : Link Here
14480
  $as_echo_n "(cached) " >&6
14447
  $as_echo_n "(cached) " >&6
14481
else
14448
else
14482
14449
14483
	libffi_cv_as_x86_pcrel=yes
14450
	libffi_cv_as_x86_pcrel=no
14484
	echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
14451
	echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
14485
	if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
14452
	if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
14486
	    libffi_cv_as_x86_pcrel=no
14453
	    libffi_cv_as_x86_pcrel=yes
14487
	fi
14454
	fi
14488
14455
14489
fi
14456
fi
(-)a/configure.ac (-3 / +3 lines)
Lines 334-343 fi Link Here
334
if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
334
if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
335
    AC_CACHE_CHECK([assembler supports pc related relocs],
335
    AC_CACHE_CHECK([assembler supports pc related relocs],
336
	libffi_cv_as_x86_pcrel, [
336
	libffi_cv_as_x86_pcrel, [
337
	libffi_cv_as_x86_pcrel=yes
337
	libffi_cv_as_x86_pcrel=no
338
	echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
338
	echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
339
	if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
339
	if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
340
	    libffi_cv_as_x86_pcrel=no
340
	    libffi_cv_as_x86_pcrel=yes
341
	fi
341
	fi
342
	])
342
	])
343
    if test "x$libffi_cv_as_x86_pcrel" = xyes; then
343
    if test "x$libffi_cv_as_x86_pcrel" = xyes; then
(-)a/m4/ax_cc_maxopt.m4 (-2 / +2 lines)
Lines 141-147 if test "$ac_test_CFLAGS" != "set"; then Link Here
141
     CFLAGS="-O3 -fomit-frame-pointer"
141
     CFLAGS="-O3 -fomit-frame-pointer"
142
142
143
     # -malign-double for x86 systems
143
     # -malign-double for x86 systems
144
     AX_CHECK_COMPILE_FLAG(-malign-double, CFLAGS="$CFLAGS -malign-double")
144
     # LIBFFI -- DON'T DO THIS - CHANGES ABI
145
     # AX_CHECK_COMPILE_FLAG(-malign-double, CFLAGS="$CFLAGS -malign-double")
145
146
146
     #  -fstrict-aliasing for gcc-2.95+
147
     #  -fstrict-aliasing for gcc-2.95+
147
     AX_CHECK_COMPILE_FLAG(-fstrict-aliasing,
148
     AX_CHECK_COMPILE_FLAG(-fstrict-aliasing,
148
- 

Return to bug 417179