patches/binutils/2.18.50.0.4/130-i386-no-divide-comment.patch
changeset 1604 b3f0173f10f3
parent 1603 e0ef539e23d9
child 1605 c400f421858e
     1.1 --- a/patches/binutils/2.18.50.0.4/130-i386-no-divide-comment.patch	Wed Oct 28 18:55:40 2009 +0100
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,69 +0,0 @@
     1.4 -Original patch from: ../crosstool-NG/ct-ng.trunk/patches/binutils/2.18.50.0.4/130-i386-no-divide-comment.patch
     1.5 -
     1.6 --= BEGIN original header =-
     1.7 --= END original header =-
     1.8 -
     1.9 -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
    1.10 ---- binutils-2.18.50.0.4.orig/gas/config/tc-i386.c	2008-02-08 17:44:10.000000000 +0100
    1.11 -+++ binutils-2.18.50.0.4/gas/config/tc-i386.c	2009-03-07 12:17:31.000000000 +0100
    1.12 -@@ -300,24 +300,10 @@
    1.13 - #endif
    1.14 - 	;
    1.15 - 
    1.16 --#if (defined (TE_I386AIX)				\
    1.17 --     || ((defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF))	\
    1.18 --	 && !defined (TE_GNU)				\
    1.19 --	 && !defined (TE_LINUX)				\
    1.20 -- 	 && !defined (TE_NETWARE)			\
    1.21 --	 && !defined (TE_FreeBSD)			\
    1.22 --	 && !defined (TE_NetBSD)))
    1.23 - /* This array holds the chars that always start a comment.  If the
    1.24 --   pre-processor is disabled, these aren't very useful.  The option
    1.25 --   --divide will remove '/' from this list.  */
    1.26 --const char *i386_comment_chars = "#/";
    1.27 --#define SVR4_COMMENT_CHARS 1
    1.28 --#define PREFIX_SEPARATOR '\\'
    1.29 --
    1.30 --#else
    1.31 -+   pre-processor is disabled, these aren't very useful.  */
    1.32 - const char *i386_comment_chars = "#";
    1.33 - #define PREFIX_SEPARATOR '/'
    1.34 --#endif
    1.35 - 
    1.36 - /* This array holds the chars that only start a comment at the beginning of
    1.37 -    a line.  If the line seems to have the form '# 123 filename'
    1.38 -@@ -7243,20 +7229,6 @@
    1.39 -       break;
    1.40 - 
    1.41 -     case OPTION_DIVIDE:
    1.42 --#ifdef SVR4_COMMENT_CHARS
    1.43 --      {
    1.44 --	char *n, *t;
    1.45 --	const char *s;
    1.46 --
    1.47 --	n = (char *) xmalloc (strlen (i386_comment_chars) + 1);
    1.48 --	t = n;
    1.49 --	for (s = i386_comment_chars; *s != '\0'; s++)
    1.50 --	  if (*s != '/')
    1.51 --	    *t++ = *s;
    1.52 --	*t = '\0';
    1.53 --	i386_comment_chars = n;
    1.54 --      }
    1.55 --#endif
    1.56 -       break;
    1.57 - 
    1.58 -     case OPTION_MARCH:
    1.59 -@@ -7392,13 +7364,8 @@
    1.60 -   fprintf (stream, _("\
    1.61 -   --32/--64               generate 32bit/64bit code\n"));
    1.62 - #endif
    1.63 --#ifdef SVR4_COMMENT_CHARS
    1.64 --  fprintf (stream, _("\
    1.65 --  --divide                do not treat `/' as a comment character\n"));
    1.66 --#else
    1.67 -   fprintf (stream, _("\
    1.68 -   --divide                ignored\n"));
    1.69 --#endif
    1.70 -   fprintf (stream, _("\
    1.71 -   -march=CPU[,+EXTENSION...]\n\
    1.72 -                           generate code for CPU and EXTENSION, CPU is one of:\n\