patches/binutils/2.18.50.0.4/130-i386-no-divide-comment.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun May 03 09:50:16 2009 +0000 (2009-05-03)
branchnewlib
changeset 1366 5e5d1e6f55d3
parent 866 5fec4dba671e
permissions -rw-r--r--
Update the newlib devel branch with stuff from /trunk@1498.

-------- diffstat follows --------
/devel/newlib/configure | 336 176 160 0 +++++++------
/devel/newlib/Makefile.in | 12 3 9 0 -
/devel/newlib/scripts/build/kernel/linux.sh | 2 1 1 0
/devel/newlib/scripts/build/internals.sh | 1 0 1 0 -
/devel/newlib/scripts/build/libc/eglibc.sh | 1 0 1 0 -
/devel/newlib/scripts/build/mpfr.sh | 2 1 1 0
/devel/newlib/scripts/functions | 111 5 106 0 ----
/devel/newlib/scripts/config.guess | 7 5 2 0 +
/devel/newlib/scripts/config.sub | 3 2 1 0 +
/devel/newlib/scripts/saveSample.sh.in | 4 2 2 0
/devel/newlib/docs/overview.txt | 8 6 2 0 +
/devel/newlib/samples/armeb-unknown-linux-uclibc/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/sh4-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/x86_64-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/arm-unknown-elf/crosstool.config | 12 3 9 0 -
/devel/newlib/samples/armeb-unknown-eabi/crosstool.config | 2 0 2 0 -
/devel/newlib/samples/arm-unknown-linux-gnueabi/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/ia64-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/x86_64-unknown-linux-uclibc/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/armeb-unknown-linux-gnueabi/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/powerpc-e500v2-linux-gnuspe/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/i686-nptl-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/arm-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/powerpc-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/mips-unknown-linux-uclibc/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/arm-unknown-linux-uclibcgnueabi/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/arm-iphone-linux-gnueabi/crosstool.config | 8 4 4 0
/devel/newlib/samples/armeb-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/powerpc-unknown_nofpu-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/i586-geode-linux-uclibc/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/arm-unknown-linux-uclibc/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/powerpc-unknown-linux-uclibc/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/mips-unknown-elf/crosstool.config | 2 0 2 0 -
/devel/newlib/samples/powerpc-405-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/armeb-unknown-linux-uclibcgnueabi/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/arm-unknown-eabi/crosstool.config | 12 3 9 0 -
/devel/newlib/samples/mipsel-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/powerpc64-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/alphaev56-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/powerpc-860-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/config/kernel/linux.in | 108 2 106 0 ----
/devel/newlib/config/global/ct-behave.in | 22 13 9 0 +
/devel/newlib/config/global/download.in | 210 15 195 0 +-------
/devel/newlib/config/libc/glibc.in | 7 7 0 0 +
/devel/newlib/config/libc/glibc-eglibc.in-common | 15 14 1 0 +
45 files changed, 382 insertions(+), 839 deletions(-)
     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\