1.1 --- a/patches/binutils/2.18/120-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.18.orig/gas/config/tc-i386.c binutils-2.18/gas/config/tc-i386.c
1.5 ---- binutils-2.18.orig/gas/config/tc-i386.c 2007-08-24 16:01:22.000000000 +0200
1.6 -+++ binutils-2.18/gas/config/tc-i386.c 2008-09-22 08:11:42.000000000 +0200
1.7 -@@ -180,24 +180,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 -@@ -6061,20 +6047,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 - case OPTION_MARCH:
1.54 -@@ -6142,13 +6114,8 @@
1.55 - fprintf (stream, _("\
1.56 - --32/--64 generate 32bit/64bit code\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 - fprintf (stream, _("\
1.66 - -march=CPU/-mtune=CPU generate code/optimize for CPU, where CPU is one of:\n\
1.67 - i386, i486, pentium, pentiumpro, pentium4, nocona,\n\