mailing list of musl libc
 help / color / mirror / code / Atom feed
* GCC 4.2.1 bug
@ 2014-11-26 14:49 stephen Turner
  0 siblings, 0 replies; only message in thread
From: stephen Turner @ 2014-11-26 14:49 UTC (permalink / raw)
  To: musl, aboriginal@lists.landley.net

[-- Attachment #1: Type: text/plain, Size: 1001 bytes --]

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.

[-- Attachment #2: Type: text/html, Size: 1322 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-11-26 14:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-26 14:49 GCC 4.2.1 bug stephen Turner

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).