patches/binutils/2.18.50.0.4/130-i386-no-divide-comment.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Apr 26 10:47:00 2009 +0000 (2009-04-26)
branch1.4
changeset 1307 39b1c755f19b
parent 866 5fec4dba671e
permissions -rw-r--r--
1.4: update version to 1.4.0.

-------- diffstat follows --------
/branches/1.4/.version | 2 1 1 0 +-
1 file changed, 1 insertion(+), 1 deletion(-)
     1 Original patch from: ../crosstool-NG/ct-ng.trunk/patches/binutils/2.18.50.0.4/130-i386-no-divide-comment.patch
     2 
     3 -= BEGIN original header =-
     4 -= END original header =-
     5 
     6 diff -durN binutils-2.18.50.0.4.orig/gas/config/tc-i386.c binutils-2.18.50.0.4/gas/config/tc-i386.c
     7 --- binutils-2.18.50.0.4.orig/gas/config/tc-i386.c	2008-02-08 17:44:10.000000000 +0100
     8 +++ binutils-2.18.50.0.4/gas/config/tc-i386.c	2009-03-07 12:17:31.000000000 +0100
     9 @@ -300,24 +300,10 @@
    10  #endif
    11  	;
    12  
    13 -#if (defined (TE_I386AIX)				\
    14 -     || ((defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF))	\
    15 -	 && !defined (TE_GNU)				\
    16 -	 && !defined (TE_LINUX)				\
    17 - 	 && !defined (TE_NETWARE)			\
    18 -	 && !defined (TE_FreeBSD)			\
    19 -	 && !defined (TE_NetBSD)))
    20  /* This array holds the chars that always start a comment.  If the
    21 -   pre-processor is disabled, these aren't very useful.  The option
    22 -   --divide will remove '/' from this list.  */
    23 -const char *i386_comment_chars = "#/";
    24 -#define SVR4_COMMENT_CHARS 1
    25 -#define PREFIX_SEPARATOR '\\'
    26 -
    27 -#else
    28 +   pre-processor is disabled, these aren't very useful.  */
    29  const char *i386_comment_chars = "#";
    30  #define PREFIX_SEPARATOR '/'
    31 -#endif
    32  
    33  /* This array holds the chars that only start a comment at the beginning of
    34     a line.  If the line seems to have the form '# 123 filename'
    35 @@ -7243,20 +7229,6 @@
    36        break;
    37  
    38      case OPTION_DIVIDE:
    39 -#ifdef SVR4_COMMENT_CHARS
    40 -      {
    41 -	char *n, *t;
    42 -	const char *s;
    43 -
    44 -	n = (char *) xmalloc (strlen (i386_comment_chars) + 1);
    45 -	t = n;
    46 -	for (s = i386_comment_chars; *s != '\0'; s++)
    47 -	  if (*s != '/')
    48 -	    *t++ = *s;
    49 -	*t = '\0';
    50 -	i386_comment_chars = n;
    51 -      }
    52 -#endif
    53        break;
    54  
    55      case OPTION_MARCH:
    56 @@ -7392,13 +7364,8 @@
    57    fprintf (stream, _("\
    58    --32/--64               generate 32bit/64bit code\n"));
    59  #endif
    60 -#ifdef SVR4_COMMENT_CHARS
    61 -  fprintf (stream, _("\
    62 -  --divide                do not treat `/' as a comment character\n"));
    63 -#else
    64    fprintf (stream, _("\
    65    --divide                ignored\n"));
    66 -#endif
    67    fprintf (stream, _("\
    68    -march=CPU[,+EXTENSION...]\n\
    69                            generate code for CPU and EXTENSION, CPU is one of:\n\