summaryrefslogtreecommitdiffstats
path: root/meta-phosphor/common/recipes-devtools/binutils/binutils/0001-Remove-Wstack-usage-to-support-old-gcc.patch
blob: fe79c2767f9d0ef4d3562f5e09df221bdb8b3dcc (plain)
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
From d3d5f6e646cec760c2f48455580da338f687d553 Mon Sep 17 00:00:00 2001
From: Patrick Williams <patrick@stwcx.xyz>
Date: Tue, 28 Mar 2017 22:01:58 -0500
Subject: [PATCH] Remove -Wstack-usage to support old gcc

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
---
 bfd/configure      | 14 --------------
 bfd/warning.m4     |  1 -
 binutils/configure | 14 --------------
 gas/configure      | 14 --------------
 gold/configure     | 14 --------------
 gprof/configure    | 14 --------------
 ld/configure       | 14 --------------
 opcodes/configure  | 14 --------------
 8 files changed, 99 deletions(-)

diff --git a/bfd/configure b/bfd/configure
index a437569..aa56ae0 100755
--- a/bfd/configure
+++ b/bfd/configure
@@ -12257,20 +12257,6 @@ fi
 rm -f conftest*
 
 
-# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-__GNUC__
-_ACEOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
-  $EGREP "^[0-4]$" >/dev/null 2>&1; then :
-
-else
-  GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
-fi
-rm -f conftest*
-
-
 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
 WARN_WRITE_STRINGS=""
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
diff --git a/bfd/warning.m4 b/bfd/warning.m4
index 4c5b55d..2ceea02 100644
--- a/bfd/warning.m4
+++ b/bfd/warning.m4
@@ -28,7 +28,6 @@ GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
 AC_EGREP_CPP([^[0-3]$],[__GNUC__],,GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow")
 
 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
-AC_EGREP_CPP([^[0-4]$],[__GNUC__],,GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144")
 
 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
 WARN_WRITE_STRINGS=""
diff --git a/binutils/configure b/binutils/configure
index 6cbf17c..d789156 100755
--- a/binutils/configure
+++ b/binutils/configure
@@ -11962,20 +11962,6 @@ fi
 rm -f conftest*
 
 
-# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-__GNUC__
-_ACEOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
-  $EGREP "^[0-4]$" >/dev/null 2>&1; then :
-
-else
-  GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
-fi
-rm -f conftest*
-
-
 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
 WARN_WRITE_STRINGS=""
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
diff --git a/gas/configure b/gas/configure
index f7753b8..76e5d43 100755
--- a/gas/configure
+++ b/gas/configure
@@ -11738,20 +11738,6 @@ fi
 rm -f conftest*
 
 
-# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-__GNUC__
-_ACEOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
-  $EGREP "^[0-4]$" >/dev/null 2>&1; then :
-
-else
-  GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
-fi
-rm -f conftest*
-
-
 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
 WARN_WRITE_STRINGS=""
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
diff --git a/gold/configure b/gold/configure
index 8240c28..58273df 100755
--- a/gold/configure
+++ b/gold/configure
@@ -6740,20 +6740,6 @@ fi
 rm -f conftest*
 
 
-# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-__GNUC__
-_ACEOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
-  $EGREP "^[0-4]$" >/dev/null 2>&1; then :
-
-else
-  GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
-fi
-rm -f conftest*
-
-
 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
 WARN_WRITE_STRINGS=""
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
diff --git a/gprof/configure b/gprof/configure
index bf3ecaa..37ef760 100755
--- a/gprof/configure
+++ b/gprof/configure
@@ -12118,20 +12118,6 @@ fi
 rm -f conftest*
 
 
-# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-__GNUC__
-_ACEOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
-  $EGREP "^[0-4]$" >/dev/null 2>&1; then :
-
-else
-  GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
-fi
-rm -f conftest*
-
-
 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
 WARN_WRITE_STRINGS=""
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
diff --git a/ld/configure b/ld/configure
index f9be51a..350ea53 100755
--- a/ld/configure
+++ b/ld/configure
@@ -15575,20 +15575,6 @@ fi
 rm -f conftest*
 
 
-# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-__GNUC__
-_ACEOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
-  $EGREP "^[0-4]$" >/dev/null 2>&1; then :
-
-else
-  GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
-fi
-rm -f conftest*
-
-
 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
 WARN_WRITE_STRINGS=""
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
diff --git a/opcodes/configure b/opcodes/configure
index f615634..c983a12 100755
--- a/opcodes/configure
+++ b/opcodes/configure
@@ -11525,20 +11525,6 @@ fi
 rm -f conftest*
 
 
-# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-__GNUC__
-_ACEOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
-  $EGREP "^[0-4]$" >/dev/null 2>&1; then :
-
-else
-  GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
-fi
-rm -f conftest*
-
-
 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
 WARN_WRITE_STRINGS=""
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-- 
2.7.2

OpenPOWER on IntegriCloud