patches/gcc/4.3.3/350-sh-without-headers.patch
author Daniel Zimmermann <netzimme@gmail.com>
Wed Feb 19 22:36:03 2014 +0100 (2014-02-19)
changeset 3289 defadbff9afd
permissions -rw-r--r--
debug/ltrace: pump ltrace to version 0.7.3

pump ltrace to version 0.7.3
backport a patch from Peter Wu to silence warnings/errors in ltrace

Signed-off-by: '"Peter Wu" <lekensteyn@gmail.com>'
Signed-off-by: '"Daniel Zimmermann" <netzimme@gmail.com>'
[yann.morin.1998@free.fr: remove superfluous empty lines]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Message-Id: <8349c35b506aa79c4e69.1392845765@haus-VirtualBox>
Patchwork-Id: 322017
     1 Original patch from: ../4.3.2/350-sh-without-headers.patch
     2 
     3 -= BEGIN original header =-
     4 On 20081011, Khem RAJ writes:
     5  You have to bar gcc trying to build unwinding at stage 1. Try the
     6  attached patch and see if it helps.
     7 
     8  gcc/config/sh/linux-unwind.h |    3 +++
     9  1 file changed, 3 insertions(+)
    10 
    11 -= END original header =-
    12 
    13 diff -durN gcc-4.3.3.orig/gcc/config/sh/linux-unwind.h gcc-4.3.3/gcc/config/sh/linux-unwind.h
    14 --- gcc-4.3.3.orig/gcc/config/sh/linux-unwind.h	2007-09-12 08:59:06.000000000 +0200
    15 +++ gcc-4.3.3/gcc/config/sh/linux-unwind.h	2009-01-27 22:28:57.000000000 +0100
    16 @@ -26,6 +26,8 @@
    17  the Free Software Foundation, 51 Franklin Street, Fifth Floor,
    18  Boston, MA 02110-1301, USA.  */
    19  
    20 +#ifndef inhibit_libc
    21 +
    22  /* Do code reading to identify a signal frame, and set the frame
    23     state data appropriately.  See unwind-dw2.c for the structs.  */
    24  
    25 @@ -251,3 +253,4 @@
    26    return _URC_NO_REASON;
    27  }
    28  #endif /* defined (__SH5__) */
    29 +#endif /* ifndef inhibit_libc */