1 Original patch from: ../crosstool-NG/ct-ng.trunk/patches/binutils/2.18.50.0.4/130-i386-no-divide-comment.patch
3 -= BEGIN original header =-
4 -= END original header =-
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
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 '\\'
28 + pre-processor is disabled, these aren't very useful. */
29 const char *i386_comment_chars = "#";
30 #define PREFIX_SEPARATOR '/'
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 @@
39 -#ifdef SVR4_COMMENT_CHARS
44 - n = (char *) xmalloc (strlen (i386_comment_chars) + 1);
46 - for (s = i386_comment_chars; *s != '\0'; s++)
50 - i386_comment_chars = n;
56 @@ -7392,13 +7364,8 @@
58 --32/--64 generate 32bit/64bit code\n"));
60 -#ifdef SVR4_COMMENT_CHARS
61 - fprintf (stream, _("\
62 - --divide do not treat `/' as a comment character\n"));
65 --divide ignored\n"));
68 -march=CPU[,+EXTENSION...]\n\
69 generate code for CPU and EXTENSION, CPU is one of:\n\