patches/binutils/2.14/110-i386-no-divide-comment.patch
author Oron Peled <oron@actcom.co.il>
Mon Aug 03 23:11:53 2009 +0200 (2009-08-03)
branch1.4
changeset 1455 e6a3b4ffe576
permissions -rw-r--r--
[configure] Fix automake version check

The configure script fails on automake-1.11 (in Fedora-11) since
it looks for 3-digit version number.

"Yann E. MORIN", added the following comment:

The check for the automake version is not against a 3-digit number,
but really against a 3-part version number, a-la 'x.y.z'. Versions
such as 1.10 and 1.11 are also valid.
     1 diff -durN binutils-2.14.orig/gas/config/tc-i386.c binutils-2.14/gas/config/tc-i386.c
     2 --- binutils-2.14.orig/gas/config/tc-i386.c	2003-01-29 11:05:52.000000000 +0100
     3 +++ binutils-2.14/gas/config/tc-i386.c	2008-09-22 08:54:50.000000000 +0200
     4 @@ -189,15 +189,10 @@
     5  const char extra_symbol_chars[] = "*%-([";
     6  #endif
     7  
     8 -#if (defined (TE_I386AIX)				\
     9 -     || ((defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF))	\
    10 -	 && !defined (TE_LINUX)				\
    11 -	 && !defined (TE_FreeBSD)			\
    12 -	 && !defined (TE_NetBSD)))
    13  /* This array holds the chars that always start a comment.  If the
    14     pre-processor is disabled, these aren't very useful.  */
    15 -const char comment_chars[] = "#/";
    16 -#define PREFIX_SEPARATOR '\\'
    17 +const char comment_chars[] = "#";
    18 +#define PREFIX_SEPARATOR '/'
    19  
    20  /* This array holds the chars that only start a comment at the beginning of
    21     a line.  If the line seems to have the form '# 123 filename'
    22 @@ -207,16 +202,7 @@
    23     #NO_APP at the beginning of its output.
    24     Also note that comments started like this one will always work if
    25     '/' isn't otherwise defined.  */
    26 -const char line_comment_chars[] = "#";
    27 -
    28 -#else
    29 -/* Putting '/' here makes it impossible to use the divide operator.
    30 -   However, we need it for compatibility with SVR4 systems.  */
    31 -const char comment_chars[] = "#";
    32 -#define PREFIX_SEPARATOR '/'
    33 -
    34  const char line_comment_chars[] = "/#";
    35 -#endif
    36  
    37  const char line_separator_chars[] = ";";
    38