-
Notifications
You must be signed in to change notification settings - Fork 9
/
0001-HACKS-TO-GET-GCC-TO-COMPILE.patch
81 lines (73 loc) · 2.52 KB
/
0001-HACKS-TO-GET-GCC-TO-COMPILE.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
From 24fdf86d8b3839e261760db7603168abc337ff1b Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <[email protected]>
Date: Wed, 10 Aug 2016 21:50:34 +0100
Subject: [PATCH] HACKS TO GET GCC TO COMPILE
---
Makefile.in | 8 +++-----
libgcc/unwind-dw2.c | 14 +++++++-------
2 files changed, 10 insertions(+), 12 deletions(-)
diff --git a/Makefile.in b/Makefile.in
index 1522e39..d328543 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -38500,7 +38500,7 @@ configure-target-libgcc: stage_current
@if target-libgcc
maybe-configure-target-libgcc: configure-target-libgcc
configure-target-libgcc:
- @r=`${PWD_COMMAND}`; export r; \
+ r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
echo "Checking multilib configuration for libgcc..."; \
$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
@@ -38517,7 +38517,6 @@ configure-target-libgcc:
fi; \
test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
- $(NORMAL_TARGET_EXPORTS) \
echo Configuring in $(TARGET_SUBDIR)/libgcc; \
cd "$(TARGET_SUBDIR)/libgcc" || exit 1; \
case $(srcdir) in \
@@ -38819,11 +38818,10 @@ all-target-libgcc: stage_current
TARGET-target-libgcc=all
maybe-all-target-libgcc: all-target-libgcc
all-target-libgcc: configure-target-libgcc
- @r=`${PWD_COMMAND}`; export r; \
+ r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(NORMAL_TARGET_EXPORTS) \
(cd $(TARGET_SUBDIR)/libgcc && \
- $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
+ $(MAKE) \
$(TARGET-target-libgcc))
@endif target-libgcc
diff --git a/libgcc/unwind-dw2.c b/libgcc/unwind-dw2.c
index 1fb6026..4e6213c 100644
--- a/libgcc/unwind-dw2.c
+++ b/libgcc/unwind-dw2.c
@@ -37,9 +37,9 @@
#include "gthr.h"
#include "unwind-dw2.h"
-#ifdef HAVE_SYS_SDT_H
-#include <sys/sdt.h>
-#endif
+//#ifdef HAVE_SYS_SDT_H
+//#include <sys/sdt.h>
+//#endif
#ifndef __USING_SJLJ_EXCEPTIONS__
@@ -1601,11 +1601,11 @@ _Unwind_DebugHook (void *cfa __attribute__ ((__unused__)),
{
/* We only want to use stap probes starting with v3. Earlier
versions added too much startup cost. */
-#if defined (HAVE_SYS_SDT_H) && defined (STAP_PROBE2) && _SDT_NOTE_TYPE >= 3
- STAP_PROBE2 (libgcc, unwind, cfa, handler);
-#else
+//#if defined (HAVE_SYS_SDT_H) && defined (STAP_PROBE2) && _SDT_NOTE_TYPE >= 3
+// STAP_PROBE2 (libgcc, unwind, cfa, handler);
+//#else
asm ("");
-#endif
+//#endif
}
/* Install TARGET into CURRENT so that we can return to it. This is a
--
2.7.4