patches/binutils/2.16.1/160-i386-no-divide-comment.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Aug 02 18:28:10 2011 +0200 (2011-08-02)
changeset 2590 b64cfb67944e
permissions -rw-r--r--
scripts/functions: svn retrieval first tries the mirror for tarballs

The svn download helper looks for the local tarballs dir to see if it
can find a pre-downloaded tarball, and if it does not find it, does
the actual fetch to upstream via svn.

In the process, it does not even try to get a tarball from the local
mirror, which can be useful if the mirror has been pre-populated
manually (or with a previously downloaded tree).

Fake a tarball get with the standard tarball-download helper, but
without specifying any upstream URL, which makes the helper directly
try the LAN mirror.

Of course, if no mirror is specified, no URL wil be available, and
the standard svn retrieval will kick in.

Reported-by: ANDY KENNEDY <ANDY.KENNEDY@adtran.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
     1 diff -durN binutils-2.16.1.orig/gas/config/tc-i386.c binutils-2.16.1/gas/config/tc-i386.c
     2 --- binutils-2.16.1.orig/gas/config/tc-i386.c	2005-04-13 19:58:42.000000000 +0200
     3 +++ binutils-2.16.1/gas/config/tc-i386.c	2008-09-22 09:00:09.000000000 +0200
     4 @@ -192,16 +192,10 @@
     5  #endif
     6  	;
     7  
     8 -#if (defined (TE_I386AIX)				\
     9 -     || ((defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF))	\
    10 -	 && !defined (TE_LINUX)				\
    11 - 	 && !defined (TE_NETWARE)			\
    12 -	 && !defined (TE_FreeBSD)			\
    13 -	 && !defined (TE_NetBSD)))
    14  /* This array holds the chars that always start a comment.  If the
    15     pre-processor is disabled, these aren't very useful.  */
    16 -const char comment_chars[] = "#/";
    17 -#define PREFIX_SEPARATOR '\\'
    18 +const char comment_chars[] = "#";
    19 +#define PREFIX_SEPARATOR '/'
    20  
    21  /* This array holds the chars that only start a comment at the beginning of
    22     a line.  If the line seems to have the form '# 123 filename'
    23 @@ -211,16 +205,7 @@
    24     #NO_APP at the beginning of its output.
    25     Also note that comments started like this one will always work if
    26     '/' isn't otherwise defined.  */
    27 -const char line_comment_chars[] = "#";
    28 -
    29 -#else
    30 -/* Putting '/' here makes it impossible to use the divide operator.
    31 -   However, we need it for compatibility with SVR4 systems.  */
    32 -const char comment_chars[] = "#";
    33 -#define PREFIX_SEPARATOR '/'
    34 -
    35 -const char line_comment_chars[] = "/#";
    36 -#endif
    37 +const char line_comment_chars[] = "#/";
    38  
    39  const char line_separator_chars[] = ";";
    40