View | Details | Return to bug 37216 | Differences between
and this patch

Collapse All | Expand All

(-)gcc/configure (+37 lines)
Lines 21009-21014 Link Here
21009
21009
21010
fi
21010
fi
21011
21011
21012
echo "$as_me:$LINENO: checking assembler for .comm with alignment" >&5
21013
echo $ECHO_N "checking assembler for .comm with alignment... $ECHO_C" >&6
21014
if test "${gcc_cv_as_comm_has_align+set}" = set; then
21015
  echo $ECHO_N "(cached) $ECHO_C" >&6
21016
else
21017
  gcc_cv_as_comm_has_align=no
21018
    if test $in_tree_gas = yes; then
21019
    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
21020
  then gcc_cv_as_comm_has_align=yes
21021
fi
21022
  elif test x$gcc_cv_as != x; then
21023
    echo '.comm foo,1,32' > conftest.s
21024
    if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21025
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21026
  (eval $ac_try) 2>&5
21027
  ac_status=$?
21028
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029
  (exit $ac_status); }; }
21030
    then
21031
	gcc_cv_as_comm_has_align=yes
21032
    else
21033
      echo "configure: failed program was" >&5
21034
      cat conftest.s >&5
21035
    fi
21036
    rm -f conftest.o conftest.s
21037
  fi
21038
fi
21039
echo "$as_me:$LINENO: result: $gcc_cv_as_comm_has_align" >&5
21040
echo "${ECHO_T}$gcc_cv_as_comm_has_align" >&6
21041
if test $gcc_cv_as_comm_has_align = yes; then
21042
21043
cat >>confdefs.h <<\_ACEOF
21044
#define HAVE_GAS_ALIGNED_COMM 1
21045
_ACEOF
21046
21047
fi
21048
21012
echo "$as_me:$LINENO: checking assembler for .literal16" >&5
21049
echo "$as_me:$LINENO: checking assembler for .literal16" >&5
21013
echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6
21050
echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6
21014
if test "${gcc_cv_as_literal16+set}" = set; then
21051
if test "${gcc_cv_as_literal16+set}" = set; then
(-)gcc/config.in (+7 lines)
Lines 844-849 Link Here
844
#endif
844
#endif
845
845
846
846
847
/* Define if your assembler supports specifying the alignment of objects
848
   allocated using the GAS .comm command. */
849
#ifndef USED_FOR_TARGET
850
#undef HAVE_GAS_ALIGNED_COMM
851
#endif
852
853
847
/* Define if your assembler supports .balign and .p2align. */
854
/* Define if your assembler supports .balign and .p2align. */
848
#ifndef USED_FOR_TARGET
855
#ifndef USED_FOR_TARGET
849
#undef HAVE_GAS_BALIGN_AND_P2ALIGN
856
#undef HAVE_GAS_BALIGN_AND_P2ALIGN
(-)gcc/configure.ac (+7 lines)
Lines 2037-2042 Link Here
2037
  [Define if your assembler supports specifying the maximum number
2037
  [Define if your assembler supports specifying the maximum number
2038
   of bytes to skip when using the GAS .p2align command.])])
2038
   of bytes to skip when using the GAS .p2align command.])])
2039
2039
2040
gcc_GAS_CHECK_FEATURE([.comm with alignment], gcc_cv_as_comm_has_align,
2041
 [2,19,52],,
2042
 [.comm foo,1,32],,
2043
[AC_DEFINE(HAVE_GAS_ALIGNED_COMM, 1,
2044
  [Define if your assembler supports specifying the alignment
2045
   of objects allocated using the GAS .comm command.])])
2046
2040
gcc_GAS_CHECK_FEATURE([.literal16], gcc_cv_as_literal16,
2047
gcc_GAS_CHECK_FEATURE([.literal16], gcc_cv_as_literal16,
2041
 [2,8,0],,
2048
 [2,8,0],,
2042
 [.literal16],,
2049
 [.literal16],,
(-)gcc/config/i386/winnt.c (-3 / +6 lines)
Lines 510-518 Link Here
510
510
511
  fprintf (stream, "\t.comm\t");
511
  fprintf (stream, "\t.comm\t");
512
  assemble_name (stream, name);
512
  assemble_name (stream, name);
513
  fprintf (stream, ", " HOST_WIDE_INT_PRINT_DEC "\t" ASM_COMMENT_START
513
  if (use_pe_aligned_common)
514
	   " " HOST_WIDE_INT_PRINT_DEC "\n",
514
    fprintf (stream, ", " HOST_WIDE_INT_PRINT_DEC "\t"
515
	   rounded, size);
515
	   ", " HOST_WIDE_INT_PRINT_DEC "\n", size, align);
516
  else
517
    fprintf (stream, ", " HOST_WIDE_INT_PRINT_DEC "\t" ASM_COMMENT_START
518
	   " " HOST_WIDE_INT_PRINT_DEC "\n", rounded, size);
516
}
519
}
517
520
518
/* The Microsoft linker requires that every function be marked as
521
/* The Microsoft linker requires that every function be marked as
(-)gcc/config/i386/cygming.opt (+4 lines)
Lines 45-47 Link Here
45
mwindows
45
mwindows
46
Target
46
Target
47
Create GUI application
47
Create GUI application
48
49
mpe-aligned-commons
50
Target Var(use_pe_aligned_common) Init(HAVE_GAS_ALIGNED_COMM)
51
Use the GNU extension to the PE format for aligned common data

Return to bug 37216