pkgsrc/lang/gcc/patches/patch-bx

24 lines
629 B
Text
Raw Normal View History

$NetBSD: patch-bx,v 1.2 2002/03/28 10:11:54 jmc Exp $
--- ../gcc-2.95.3/gcc/frame.c.orig 2001/04/23 11:58:18 1.1.1.2
+++ ../gcc-2.95.3/gcc/frame.c 2001/12/07 02:41:13 1.3
@@ -40,6 +40,7 @@
#ifndef inhibit_libc
/* fixproto guarantees these system headers exist. */
#include <stdlib.h>
+#include <string.h>
#include <unistd.h>
#endif
@@ -572,6 +573,10 @@
if (strcmp (c->augmentation, "eh") == 0)
{
+ /* Handle the blank space > 4 byte alignment may have forced. */
+ if (sizeof(void *) > 4)
+ p += (sizeof(void *) - 4);
+
c->eh_ptr = read_pointer (p);
p += sizeof (void *);
}