patches/binutils/2.17a/210-i386-no-divide-comment.patch
author "Benoît Thébaudeau" <benoit.thebaudeau@advansee.com>
Mon Apr 16 15:25:36 2012 +0200 (2012-04-16)
changeset 2941 13e40098fffc
parent 866 5fec4dba671e
permissions -rw-r--r--
cc/gcc: update Linaro GCC revisions to 2012.04

Update Linaro GCC with the latest available revisions.

The 4.7 revision is also released, but the infrastructure is not yet ready for
it in CT-NG.

Signed-off-by: "Benoît Thébaudeau" <benoit.thebaudeau@advansee.com>
     1 diff -durN binutils-2.17.orig/gas/config/tc-i386.c binutils-2.17/gas/config/tc-i386.c
     2 --- binutils-2.17.orig/gas/config/tc-i386.c	2006-04-07 08:40:57.000000000 +0200
     3 +++ binutils-2.17/gas/config/tc-i386.c	2008-09-22 09:06:07.000000000 +0200
     4 @@ -196,24 +196,10 @@
     5  #endif
     6  	;
     7  
     8 -#if (defined (TE_I386AIX)				\
     9 -     || ((defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF))	\
    10 -	 && !defined (TE_GNU)				\
    11 -	 && !defined (TE_LINUX)				\
    12 - 	 && !defined (TE_NETWARE)			\
    13 -	 && !defined (TE_FreeBSD)			\
    14 -	 && !defined (TE_NetBSD)))
    15  /* This array holds the chars that always start a comment.  If the
    16 -   pre-processor is disabled, these aren't very useful.  The option
    17 -   --divide will remove '/' from this list.  */
    18 -const char *i386_comment_chars = "#/";
    19 -#define SVR4_COMMENT_CHARS 1
    20 -#define PREFIX_SEPARATOR '\\'
    21 -
    22 -#else
    23 +   pre-processor is disabled, these aren't very useful.  */
    24  const char *i386_comment_chars = "#";
    25  #define PREFIX_SEPARATOR '/'
    26 -#endif
    27  
    28  /* This array holds the chars that only start a comment at the beginning of
    29     a line.  If the line seems to have the form '# 123 filename'
    30 @@ -5486,20 +5472,6 @@
    31        break;
    32  
    33      case OPTION_DIVIDE:
    34 -#ifdef SVR4_COMMENT_CHARS
    35 -      {
    36 -	char *n, *t;
    37 -	const char *s;
    38 -
    39 -	n = (char *) xmalloc (strlen (i386_comment_chars) + 1);
    40 -	t = n;
    41 -	for (s = i386_comment_chars; *s != '\0'; s++)
    42 -	  if (*s != '/')
    43 -	    *t++ = *s;
    44 -	*t = '\0';
    45 -	i386_comment_chars = n;
    46 -      }
    47 -#endif
    48        break;
    49  
    50      default:
    51 @@ -5525,13 +5497,8 @@
    52    fprintf (stream, _("\
    53    -s                      ignored\n"));
    54  #endif
    55 -#ifdef SVR4_COMMENT_CHARS
    56 -  fprintf (stream, _("\
    57 -  --divide                do not treat `/' as a comment character\n"));
    58 -#else
    59    fprintf (stream, _("\
    60    --divide                ignored\n"));
    61 -#endif
    62  }
    63  
    64  #if ((defined (OBJ_MAYBE_COFF) && defined (OBJ_MAYBE_AOUT)) \