patches/uClibc/0.9.30.2/120-rm-whitespace.patch
author "Benoît Thébaudeau" <benoit.thebaudeau@advansee.com>
Mon Apr 16 15:25:36 2012 +0200 (2012-04-16)
changeset 2941 13e40098fffc
permissions -rw-r--r--
cc/gcc: update Linaro GCC revisions to 2012.04

Update Linaro GCC with the latest available revisions.

The 4.7 revision is also released, but the infrastructure is not yet ready for
it in CT-NG.

Signed-off-by: "Benoît Thébaudeau" <benoit.thebaudeau@advansee.com>
jocke@1737
     1
Original patch from Gentoo.
jocke@1737
     2
jocke@1737
     3
-= BEGIN original header =-
jocke@1737
     4
-= END original header =-
jocke@1737
     5
jocke@1737
     6
diff -durN uClibc-0.9.30.orig/include/assert.h uClibc-0.9.30/include/assert.h
jocke@1737
     7
--- uClibc-0.9.30.orig/include/assert.h	2008-07-23 13:23:36.000000000 +0200
jocke@1737
     8
+++ uClibc-0.9.30/include/assert.h	2009-02-07 09:57:59.000000000 +0100
jocke@1737
     9
@@ -31,7 +31,7 @@
jocke@1737
    10
 #define	_ASSERT_H	1
jocke@1737
    11
 #include <features.h>
jocke@1737
    12
 
jocke@1737
    13
-#if defined __cplusplus && __GNUC_PREREQ (2,95)
jocke@1737
    14
+#if defined __cplusplus && __GNUC_PREREQ(2,95)
jocke@1737
    15
 # define __ASSERT_VOID_CAST static_cast<void>
jocke@1737
    16
 #else
jocke@1737
    17
 # define __ASSERT_VOID_CAST (void)
jocke@1737
    18
@@ -60,12 +60,15 @@
jocke@1737
    19
 		       (__assert (__STRING(expr), __FILE__, __LINE__,    \
jocke@1737
    20
 				       __ASSERT_FUNCTION), 0)))
jocke@1737
    21
 
jocke@1737
    22
+/* Define some temporaries to workaround tinyx makedepend bug */
jocke@1737
    23
+#define	__GNUC_PREREQ_2_6	__GNUC_PREREQ(2, 6)
jocke@1737
    24
+#define	__GNUC_PREREQ_2_4	__GNUC_PREREQ(2, 4)
jocke@1737
    25
 /* Version 2.4 and later of GCC define a magical variable `__PRETTY_FUNCTION__'
jocke@1737
    26
    which contains the name of the function currently being defined.
jocke@1737
    27
    This is broken in G++ before version 2.6.
jocke@1737
    28
    C9x has a similar variable called __func__, but prefer the GCC one since
jocke@1737
    29
    it demangles C++ function names.  */
jocke@1737
    30
-# if defined __cplusplus ? __GNUC_PREREQ (2, 6) : __GNUC_PREREQ (2, 4)
jocke@1737
    31
+# if defined __cplusplus ? __GNUC_PREREQ_2_6 : __GNUC_PREREQ_2_4
jocke@1737
    32
 #   define __ASSERT_FUNCTION	__PRETTY_FUNCTION__
jocke@1737
    33
 # else
jocke@1737
    34
 #  if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L
jocke@1737
    35
diff -durN uClibc-0.9.30.orig/include/complex.h uClibc-0.9.30/include/complex.h
jocke@1737
    36
--- uClibc-0.9.30.orig/include/complex.h	2008-10-03 16:24:28.000000000 +0200
jocke@1737
    37
+++ uClibc-0.9.30/include/complex.h	2009-02-07 09:57:59.000000000 +0100
jocke@1737
    38
@@ -33,7 +33,7 @@
jocke@1737
    39
 /* We might need to add support for more compilers here.  But since ISO
jocke@1737
    40
    C99 is out hopefully all maintained compilers will soon provide the data
jocke@1737
    41
    types `float complex' and `double complex'.  */
jocke@1737
    42
-#if __GNUC_PREREQ (2, 7) && !__GNUC_PREREQ (2, 97)
jocke@1737
    43
+#if __GNUC_PREREQ(2, 7) && !__GNUC_PREREQ(2, 97)
jocke@1737
    44
 # define _Complex __complex__
jocke@1737
    45
 #endif
jocke@1737
    46
 
jocke@1737
    47
diff -durN uClibc-0.9.30.orig/include/features.h uClibc-0.9.30/include/features.h
jocke@1737
    48
--- uClibc-0.9.30.orig/include/features.h	2008-09-06 18:45:07.000000000 +0200
jocke@1737
    49
+++ uClibc-0.9.30/include/features.h	2009-02-07 09:57:59.000000000 +0100
jocke@1737
    50
@@ -143,7 +143,7 @@
jocke@1737
    51
 
jocke@1737
    52
 /* Convenience macros to test the versions of glibc and gcc.
jocke@1737
    53
    Use them like this:
jocke@1737
    54
-   #if __GNUC_PREREQ (2,8)
jocke@1737
    55
+   #if __GNUC_PREREQ(2,8)
jocke@1737
    56
    ... code requiring gcc 2.8 or later ...
jocke@1737
    57
    #endif
jocke@1737
    58
    Note - they won't work for gcc1 or glibc1, since the _MINOR macros
jocke@1737
    59
@@ -297,7 +297,7 @@
jocke@1737
    60
 /* uClibc does not support _FORTIFY_SOURCE */
jocke@1737
    61
 #undef _FORTIFY_SOURCE
jocke@1737
    62
 #if defined _FORTIFY_SOURCE && _FORTIFY_SOURCE > 0 \
jocke@1737
    63
-    && __GNUC_PREREQ (4, 1) && defined __OPTIMIZE__ && __OPTIMIZE__ > 0
jocke@1737
    64
+    && __GNUC_PREREQ(4, 1) && defined __OPTIMIZE__ && __OPTIMIZE__ > 0
jocke@1737
    65
 # if _FORTIFY_SOURCE > 1
jocke@1737
    66
 #  define __USE_FORTIFY_LEVEL 2
jocke@1737
    67
 # else
jocke@1737
    68
@@ -366,7 +366,7 @@
jocke@1737
    69
  * uclibc itself is usually built without __USE_EXTERN_INLINES,
jocke@1737
    70
  * remove "&& !defined __OPTIMIZE_SIZE__" part to do otherwise.
jocke@1737
    71
  */
jocke@1737
    72
-#if __GNUC_PREREQ (2, 7) && defined __OPTIMIZE__ \
jocke@1737
    73
+#if __GNUC_PREREQ(2, 7) && defined __OPTIMIZE__ \
jocke@1737
    74
     && !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__ \
jocke@1737
    75
     && (defined __extern_inline || defined __GNUC_GNU_INLINE__)
jocke@1737
    76
 # define __USE_EXTERN_INLINES	1
jocke@1737
    77
diff -durN uClibc-0.9.30.orig/include/tgmath.h uClibc-0.9.30/include/tgmath.h
jocke@1737
    78
--- uClibc-0.9.30.orig/include/tgmath.h	2008-10-03 16:24:28.000000000 +0200
jocke@1737
    79
+++ uClibc-0.9.30/include/tgmath.h	2009-02-07 09:57:59.000000000 +0100
jocke@1737
    80
@@ -34,7 +34,7 @@
jocke@1737
    81
    do not try this for now and instead concentrate only on GNU CC.  Once
jocke@1737
    82
    we have more information support for other compilers might follow.  */
jocke@1737
    83
 
jocke@1737
    84
-#if __GNUC_PREREQ (2, 7)
jocke@1737
    85
+#if __GNUC_PREREQ(2, 7)
jocke@1737
    86
 
jocke@1737
    87
 # ifdef __NO_LONG_DOUBLE_MATH
jocke@1737
    88
 #  define __tgml(fct) fct