FYI GCC 4.2.1 BUG

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

FYI GCC 4.2.1 BUG

scsijon
EXtracted from one of my aboriginal messages.

Not sure if any woof-CE puppians are using this, but better warned than
sorry.

regards
scsijon


-------- Original Message --------
    1. GCC 4.2.1 bug (stephen Turner)

----------------------------------------------------------------------

Message: 1
Date: Wed, 26 Nov 2014 09:49:46 -0500
From: stephen Turner <[hidden email]>
To: [hidden email], "[hidden email]"
        <[hidden email]>
Subject: [Aboriginal] GCC 4.2.1 bug
Message-ID:
        <CAA7aPHggNByj=kH0xPNB9qE2=[hidden email]>
Content-Type: text/plain; charset="utf-8"

I dont know who is using gcc 4.2.1 anymore besides me, and some of you will
be aware of this bug im sure but while i was compiling gcc-4.2.1 I ran int
a error with linux-unwind.h and as it turns out you have to patch the
header to compile without newlib support. For anyone interested i am
copying over the link and patch. this is only for i386 as that is all im
using and all i found thus far.

http://forge.ispras.ru/issues/4295

diff --git a/libgcc/config/i386/linux-unwind.h
b/libgcc/config/i386/linux-unwind.h
index f17a46c..33810c5 100644
--- a/libgcc/config/i386/linux-unwind.h
+++ b/libgcc/config/i386/linux-unwind.h
@@ -139,9 +139,9 @@ x86_fallback_frame_state (struct _Unwind_Context
*context,
     {
       struct rt_sigframe {
        int sig;
-      struct siginfo *pinfo;
+      siginfo_t *pinfo;
        void *puc;
-      struct siginfo info;
+      siginfo_t info;
        struct ucontext uc;
       } *rt_ = context->cfa;
       /* The void * cast is necessary to avoid an aliasing warning.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.landley.net/pipermail/aboriginal-landley.net/attachments/20141126/c8169586/attachment.html>

------------------------------

Subject: Digest Footer

_______________________________________________
Aboriginal mailing list
[hidden email]
http://lists.landley.net/listinfo.cgi/aboriginal-landley.net
------------------------------