patches/uClibc/0.9.30/200-getline-already-declared.patch
author Cody P Schafer <dev@codyps.com>
Mon May 12 00:02:13 2014 +0200 (2014-05-12)
changeset 3322 eb13867a034c
permissions -rw-r--r--
arch/powerpc: add powerpc64le support

Technically, I don't forbid powerpcle support either, but I'm not sure that
there is any library/compiler support for that at the moment (though the hw
technically makes it possible).

powerpc64le needs glibc 2.19 and gcc 4.9. I haven't looked into the support
tools, but at least gdb 7.5 is too old (7.7.1 definitely has support).

Also make powerpc64 non-experimental. It's practically old at this point.

Signed-off-by: Cody P Schafer <dev@codyps.com>
[yann.morin.1998@free.fr: use ${target_endian_le} and ${target_bits_64}]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Message-Id: <64bfbbced9dd8f62e0d6.1399801945@gun>
Patchwork-Id: 347775
titus@2627
     1
--- uClibc-0.9.30.orig/extra/scripts/unifdef.c	2008-04-28 01:10:00.000000000 +0200
titus@2627
     2
+++ uClibc-0.9.30/extra/scripts/unifdef.c	2011-08-21 09:42:21.000000000 +0200
titus@2627
     3
@@ -206,7 +206,7 @@
titus@2627
     4
 static void             error(const char *);
titus@2627
     5
 static int              findsym(const char *);
titus@2627
     6
 static void             flushline(bool);
titus@2627
     7
-static Linetype         getline(void);
titus@2627
     8
+static Linetype         getlinetype(void);
titus@2627
     9
 static Linetype         ifeval(const char **);
titus@2627
    10
 static void             ignoreoff(void);
titus@2627
    11
 static void             ignoreon(void);
titus@2627
    12
@@ -512,7 +512,7 @@
titus@2627
    13
 
titus@2627
    14
 	for (;;) {
titus@2627
    15
 		linenum++;
titus@2627
    16
-		lineval = getline();
titus@2627
    17
+		lineval = getlinetype();
titus@2627
    18
 		trans_table[ifstate[depth]][lineval]();
titus@2627
    19
 		debug("process %s -> %s depth %d",
titus@2627
    20
 		    linetype_name[lineval],
titus@2627
    21
@@ -526,7 +526,7 @@
titus@2627
    22
  * help from skipcomment().
titus@2627
    23
  */
titus@2627
    24
 static Linetype
titus@2627
    25
-getline(void)
titus@2627
    26
+getlinetype(void)
titus@2627
    27
 {
titus@2627
    28
 	const char *cp;
titus@2627
    29
 	int cursym;