patches/binutils/2.17a/210-i386-no-divide-comment.patch
author David Holsgrove <david.holsgrove@xilinx.com>
Thu Oct 04 15:59:31 2012 +1000 (2012-10-04)
changeset 3073 a6981147ccc0
parent 866 5fec4dba671e
permissions -rw-r--r--
scripts/gcc: Canadian Cross skip -print-multi-lib log output

Attempting to ${CT_TARGET}-gcc -print-multi-lib will fail

In do_cc_core_backend, for the final compiler in a canadian cross
baremetal, warn that multi-libs cannot be determined

In do_cc_backend, for either final compiler for a canadian cross,
warn that multi-libs cannot be determined

(Plus fixed CT_PREFIX_DIR in do_cc_backend to be ${prefix})

Signed-off-by: "David Holsgrove" <david.holsgrove@xilinx.com>
Message-Id: <CAM=EW8aQDoNx-CkJHjXBoDP4iTDJ8z5hh3=KhO5UTU6rp3Pj=w@mail.gmail.com>
Patchwork-Id: 189053
     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)) \