1.1 --- a/patches/binutils/2.17/210-i386-no-divide-comment.patch Sun Sep 11 18:26:12 2011 +0200
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,64 +0,0 @@
1.4 -diff -durN binutils-2.17.orig/gas/config/tc-i386.c binutils-2.17/gas/config/tc-i386.c
1.5 ---- binutils-2.17.orig/gas/config/tc-i386.c 2006-04-07 08:40:57.000000000 +0200
1.6 -+++ binutils-2.17/gas/config/tc-i386.c 2008-09-22 09:06:07.000000000 +0200
1.7 -@@ -196,24 +196,10 @@
1.8 - #endif
1.9 - ;
1.10 -
1.11 --#if (defined (TE_I386AIX) \
1.12 -- || ((defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF)) \
1.13 -- && !defined (TE_GNU) \
1.14 -- && !defined (TE_LINUX) \
1.15 -- && !defined (TE_NETWARE) \
1.16 -- && !defined (TE_FreeBSD) \
1.17 -- && !defined (TE_NetBSD)))
1.18 - /* This array holds the chars that always start a comment. If the
1.19 -- pre-processor is disabled, these aren't very useful. The option
1.20 -- --divide will remove '/' from this list. */
1.21 --const char *i386_comment_chars = "#/";
1.22 --#define SVR4_COMMENT_CHARS 1
1.23 --#define PREFIX_SEPARATOR '\\'
1.24 --
1.25 --#else
1.26 -+ pre-processor is disabled, these aren't very useful. */
1.27 - const char *i386_comment_chars = "#";
1.28 - #define PREFIX_SEPARATOR '/'
1.29 --#endif
1.30 -
1.31 - /* This array holds the chars that only start a comment at the beginning of
1.32 - a line. If the line seems to have the form '# 123 filename'
1.33 -@@ -5486,20 +5472,6 @@
1.34 - break;
1.35 -
1.36 - case OPTION_DIVIDE:
1.37 --#ifdef SVR4_COMMENT_CHARS
1.38 -- {
1.39 -- char *n, *t;
1.40 -- const char *s;
1.41 --
1.42 -- n = (char *) xmalloc (strlen (i386_comment_chars) + 1);
1.43 -- t = n;
1.44 -- for (s = i386_comment_chars; *s != '\0'; s++)
1.45 -- if (*s != '/')
1.46 -- *t++ = *s;
1.47 -- *t = '\0';
1.48 -- i386_comment_chars = n;
1.49 -- }
1.50 --#endif
1.51 - break;
1.52 -
1.53 - default:
1.54 -@@ -5525,13 +5497,8 @@
1.55 - fprintf (stream, _("\
1.56 - -s ignored\n"));
1.57 - #endif
1.58 --#ifdef SVR4_COMMENT_CHARS
1.59 -- fprintf (stream, _("\
1.60 -- --divide do not treat `/' as a comment character\n"));
1.61 --#else
1.62 - fprintf (stream, _("\
1.63 - --divide ignored\n"));
1.64 --#endif
1.65 - }
1.66 -
1.67 - #if ((defined (OBJ_MAYBE_COFF) && defined (OBJ_MAYBE_AOUT)) \