patches/binutils/2.18.50.0.4/130-i386-no-divide-comment.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Thu Jun 11 21:47:19 2009 +0000 (2009-06-11)
branch1.4
changeset 1451 25d050084e98
parent 866 5fec4dba671e
permissions -rw-r--r--
populate: fix installing dynamic linker 'ld.so'

The dynamic linker, ld.so, needs the execute bit to be set.
Detect tht the library being installed is in fact ld.so and
install it with 0755 instead of 0644.

Fix detecting src == dst.

Use a simpler command to copy src -> dst.

Also change echo to printf, get rid of 'echo -n', which is
highly non-portable.


-------- diffstat follows --------
/trunk/scripts/populate.in | 76 43 33 0 +++++++++++++++++++++++++++++-----------------------
1 file changed, 43 insertions(+), 33 deletions(-)
(transplanted from d7ddcb75e0f703e2ba6d17169167356389224870)
yann@1241
     1
Original patch from: ../crosstool-NG/ct-ng.trunk/patches/binutils/2.18.50.0.4/130-i386-no-divide-comment.patch
yann@1241
     2
yann@1241
     3
-= BEGIN original header =-
yann@1241
     4
-= END original header =-
yann@1241
     5
yann@866
     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
yann@866
     7
--- binutils-2.18.50.0.4.orig/gas/config/tc-i386.c	2008-02-08 17:44:10.000000000 +0100
yann@1241
     8
+++ binutils-2.18.50.0.4/gas/config/tc-i386.c	2009-03-07 12:17:31.000000000 +0100
yann@866
     9
@@ -300,24 +300,10 @@
yann@866
    10
 #endif
yann@866
    11
 	;
yann@866
    12
 
yann@866
    13
-#if (defined (TE_I386AIX)				\
yann@866
    14
-     || ((defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF))	\
yann@866
    15
-	 && !defined (TE_GNU)				\
yann@866
    16
-	 && !defined (TE_LINUX)				\
yann@866
    17
- 	 && !defined (TE_NETWARE)			\
yann@866
    18
-	 && !defined (TE_FreeBSD)			\
yann@866
    19
-	 && !defined (TE_NetBSD)))
yann@866
    20
 /* This array holds the chars that always start a comment.  If the
yann@866
    21
-   pre-processor is disabled, these aren't very useful.  The option
yann@866
    22
-   --divide will remove '/' from this list.  */
yann@866
    23
-const char *i386_comment_chars = "#/";
yann@866
    24
-#define SVR4_COMMENT_CHARS 1
yann@866
    25
-#define PREFIX_SEPARATOR '\\'
yann@866
    26
-
yann@866
    27
-#else
yann@866
    28
+   pre-processor is disabled, these aren't very useful.  */
yann@866
    29
 const char *i386_comment_chars = "#";
yann@866
    30
 #define PREFIX_SEPARATOR '/'
yann@866
    31
-#endif
yann@866
    32
 
yann@866
    33
 /* This array holds the chars that only start a comment at the beginning of
yann@866
    34
    a line.  If the line seems to have the form '# 123 filename'
yann@866
    35
@@ -7243,20 +7229,6 @@
yann@866
    36
       break;
yann@866
    37
 
yann@866
    38
     case OPTION_DIVIDE:
yann@866
    39
-#ifdef SVR4_COMMENT_CHARS
yann@866
    40
-      {
yann@866
    41
-	char *n, *t;
yann@866
    42
-	const char *s;
yann@866
    43
-
yann@866
    44
-	n = (char *) xmalloc (strlen (i386_comment_chars) + 1);
yann@866
    45
-	t = n;
yann@866
    46
-	for (s = i386_comment_chars; *s != '\0'; s++)
yann@866
    47
-	  if (*s != '/')
yann@866
    48
-	    *t++ = *s;
yann@866
    49
-	*t = '\0';
yann@866
    50
-	i386_comment_chars = n;
yann@866
    51
-      }
yann@866
    52
-#endif
yann@866
    53
       break;
yann@866
    54
 
yann@866
    55
     case OPTION_MARCH:
yann@866
    56
@@ -7392,13 +7364,8 @@
yann@866
    57
   fprintf (stream, _("\
yann@866
    58
   --32/--64               generate 32bit/64bit code\n"));
yann@866
    59
 #endif
yann@866
    60
-#ifdef SVR4_COMMENT_CHARS
yann@866
    61
-  fprintf (stream, _("\
yann@866
    62
-  --divide                do not treat `/' as a comment character\n"));
yann@866
    63
-#else
yann@866
    64
   fprintf (stream, _("\
yann@866
    65
   --divide                ignored\n"));
yann@866
    66
-#endif
yann@866
    67
   fprintf (stream, _("\
yann@866
    68
   -march=CPU[,+EXTENSION...]\n\
yann@866
    69
                           generate code for CPU and EXTENSION, CPU is one of:\n\