patches/binutils/2.16.1/110-psignal.patch
changeset 2664 346263a07115
parent 2663 7179903f8d2e
child 2665 5b7e91ec300c
     1.1 --- a/patches/binutils/2.16.1/110-psignal.patch	Sun Sep 11 18:26:12 2011 +0200
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,40 +0,0 @@
     1.4 -Make psignal prototype in libiberty match that in glibc.
     1.5 -
     1.6 -Fixes:
     1.7 -
     1.8 -gcc-2.95.3-glibc-2.1.3/binutils-2.15/libiberty/strsignal.c: In function `psignal':
     1.9 -gcc-2.95.3-glibc-2.1.3/binutils-2.15/libiberty/strsignal.c:563: argument `signo' doesn't match prototype
    1.10 -/usr/include/signal.h:131: prototype declaration
    1.11 -gcc-2.95.3-glibc-2.1.3/binutils-2.15/libiberty/strsignal.c:563: argument `message' doesn't match prototype
    1.12 -/usr/include/signal.h:131: prototype declaration
    1.13 -gcc-2.95.3-glibc-2.1.3/binutils-2.15/libiberty/strsignal.c:568: warning: comparison between signed and unsigned
    1.14 -mprotect... make[1]: *** [strsignal.o] Error 1
    1.15 -make[1]: Leaving directory `/export/hda3/dkegel/queue/jobdir.produser_cpsm17/crosstool-0.32/build/i686-unknown-linux-gnu/gcc-2.95.3-glibc-2.1.3/build-binutils/libiberty'
    1.16 -make: *** [all-libiberty] Error 2
    1.17 -
    1.18 -when building on red hat 7.1
    1.19 -though it's a bit of a mystery why libiberty's psignal is being compiled at
    1.20 -all, since red hat 7.1's glibc supports psignal (hence the error message)
    1.21 -
    1.22 ---- binutils-2.15/libiberty/strsignal.c.old	2005-04-18 13:57:40.000000000 -0700
    1.23 -+++ binutils-2.15/libiberty/strsignal.c	2005-04-18 13:59:09.000000000 -0700
    1.24 -@@ -544,7 +544,7 @@
    1.25 - 
    1.26 - /*
    1.27 - 
    1.28 --@deftypefn Supplemental void psignal (unsigned @var{signo}, char *@var{message})
    1.29 -+@deftypefn Supplemental void psignal (int @var{signo}, const char *@var{message})
    1.30 - 
    1.31 - Print @var{message} to the standard error, followed by a colon,
    1.32 - followed by the description of the signal specified by @var{signo},
    1.33 -@@ -557,9 +557,7 @@
    1.34 - #ifndef HAVE_PSIGNAL
    1.35 - 
    1.36 - void
    1.37 --psignal (signo, message)
    1.38 --  unsigned signo;
    1.39 --  char *message;
    1.40 -+psignal (int signo, const char *message)
    1.41 - {
    1.42 -   if (signal_names == NULL)
    1.43 -     {