1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/patches/binutils/2.18.50.0.8/130-i386-no-divide-comment.patch Fri Oct 03 13:01:10 2008 +0000
1.3 @@ -0,0 +1,64 @@
1.4 +diff -durN binutils-2.18.50.0.8.orig/gas/config/tc-i386.c binutils-2.18.50.0.8/gas/config/tc-i386.c
1.5 +--- binutils-2.18.50.0.8.orig/gas/config/tc-i386.c 2008-07-10 17:32:58.000000000 +0200
1.6 ++++ binutils-2.18.50.0.8/gas/config/tc-i386.c 2008-09-22 09:12:39.000000000 +0200
1.7 +@@ -313,24 +313,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 +@@ -7952,20 +7938,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 +@@ -8116,13 +8088,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[,+EXTENSION...]\n\
1.67 + generate code for CPU and EXTENSION, CPU is one of:\n\