1 |
202 |
dgisselq |
diff -Naur '--exclude=*.swp' gcc-6.2.0/config.sub gcc-6.2.0-zip/config.sub
|
2 |
|
|
--- gcc-6.2.0/config.sub 2015-12-31 16:13:28.000000000 -0500
|
3 |
|
|
+++ gcc-6.2.0-zip/config.sub 2017-01-11 11:07:21.116065311 -0500
|
4 |
|
|
@@ -355,6 +355,14 @@
|
5 |
|
|
xscaleel)
|
6 |
|
|
basic_machine=armel-unknown
|
7 |
102 |
dgisselq |
;;
|
8 |
202 |
dgisselq |
+ zip-*-linux*)
|
9 |
|
|
+ basic_machine=zip
|
10 |
|
|
+ os=-linux
|
11 |
|
|
+ ;;
|
12 |
|
|
+ zip*)
|
13 |
|
|
+ basic_machine=zip-unknown
|
14 |
|
|
+ os=-none
|
15 |
|
|
+ ;;
|
16 |
102 |
dgisselq |
|
17 |
202 |
dgisselq |
# We use `pc' rather than `unknown'
|
18 |
|
|
# because (1) that's what they normally are, and
|
19 |
|
|
diff -Naur '--exclude=*.swp' gcc-6.2.0/configure gcc-6.2.0-zip/configure
|
20 |
|
|
--- gcc-6.2.0/configure 2016-03-17 18:54:19.000000000 -0400
|
21 |
|
|
+++ gcc-6.2.0-zip/configure 2017-02-06 21:54:22.244807700 -0500
|
22 |
|
|
@@ -3548,6 +3548,44 @@
|
23 |
|
|
ft32-*-*)
|
24 |
|
|
noconfigdirs="$noconfigdirs ${libgcj}"
|
25 |
|
|
;;
|
26 |
|
|
+ zip*)
|
27 |
|
|
+ noconfigdirs="$noconfigdirs ${libgcj}"
|
28 |
|
|
+ noconfigdirs="$noconfigdirs target-boehm-gc"
|
29 |
|
|
+ noconfigdirs="$noconfigdirs target-libgfortran"
|
30 |
|
|
+ # noconfigdirs="$noconfigdirs target-libsanitizer"
|
31 |
|
|
+ # noconfigdirs="$noconfigdirs target-libada"
|
32 |
|
|
+ # noconfigdirs="$noconfigdirs target-libatomic"
|
33 |
|
|
+ # noconfigdirs="$noconfigdirs target-libcilkrts"
|
34 |
|
|
+ # noconfigdirs="$noconfigdirs target-libitm"
|
35 |
|
|
+ # noconfigdirs="$noconfigdirs target-libquadmath"
|
36 |
|
|
+ # noconfigdirs="$noconfigdirs target-libstdc++-v3"
|
37 |
|
|
+ # noconfigdirs="$noconfigdirs target-libssp"
|
38 |
|
|
+ # noconfigdirs="$noconfigdirs target-libgo"
|
39 |
|
|
+ # noconfigdirs="$noconfigdirs target-libgomp"
|
40 |
|
|
+ # noconfigdirs="$noconfigdirs target-libvtv"
|
41 |
|
|
+ # noconfigdirs="$noconfigdirs target-libobjc"
|
42 |
|
|
+ # target-libgcc
|
43 |
|
|
+ # target-liboffloadmic
|
44 |
|
|
+ # target-libmpx # Only gets enabled by request
|
45 |
|
|
+ # target-libbacktrace
|
46 |
|
|
+ # ${libgcj}
|
47 |
|
|
+ # target-boehm-gc
|
48 |
|
|
+ # target-libada
|
49 |
|
|
+ # target-libatomic
|
50 |
|
|
+ # target-libcilkrts
|
51 |
|
|
+ # target-libgfortran
|
52 |
|
|
+ # target-libgo
|
53 |
|
|
+ # target-libgomp
|
54 |
|
|
+ # target-libitm
|
55 |
|
|
+ # target-libobjc
|
56 |
|
|
+ # target-libquadmath
|
57 |
|
|
+ # target-libsanitizer
|
58 |
|
|
+ # target-libstdc++-v3
|
59 |
|
|
+ # target-libssp
|
60 |
|
|
+ # target-libvtv
|
61 |
|
|
+ # target-libgloss
|
62 |
|
|
+ # target-newlib
|
63 |
|
|
+ ;;
|
64 |
|
|
*-*-lynxos*)
|
65 |
|
|
noconfigdirs="$noconfigdirs ${libgcj}"
|
66 |
|
|
;;
|
67 |
|
|
@@ -3575,6 +3613,9 @@
|
68 |
|
|
*-*-aix*)
|
69 |
|
|
noconfigdirs="$noconfigdirs target-libgo"
|
70 |
|
|
;;
|
71 |
|
|
+ zip*)
|
72 |
|
|
+ noconfigdirs="$noconfigdirs target-libgo"
|
73 |
|
|
+ ;;
|
74 |
|
|
esac
|
75 |
|
|
fi
|
76 |
|
|
|
77 |
|
|
@@ -3971,6 +4012,9 @@
|
78 |
102 |
dgisselq |
vax-*-*)
|
79 |
|
|
noconfigdirs="$noconfigdirs target-newlib target-libgloss"
|
80 |
|
|
;;
|
81 |
|
|
+ zip*)
|
82 |
|
|
+ noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb gprof"
|
83 |
202 |
dgisselq |
+ ;;
|
84 |
102 |
dgisselq |
esac
|
85 |
|
|
|
86 |
|
|
# If we aren't building newlib, then don't build libgloss, since libgloss
|
87 |
202 |
dgisselq |
@@ -6785,16 +6829,16 @@
|
88 |
|
|
# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
|
89 |
|
|
if test "x$CFLAGS_FOR_TARGET" = x; then
|
90 |
|
|
if test "x${is_cross_compiler}" = xyes; then
|
91 |
|
|
- CFLAGS_FOR_TARGET="-g -O2"
|
92 |
|
|
+ CFLAGS_FOR_TARGET="-O3"
|
93 |
|
|
else
|
94 |
|
|
CFLAGS_FOR_TARGET=$CFLAGS
|
95 |
|
|
case " $CFLAGS " in
|
96 |
|
|
- *" -O2 "*) ;;
|
97 |
|
|
- *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
|
98 |
|
|
+ *" -O3 "*) ;;
|
99 |
|
|
+ *) CFLAGS_FOR_TARGET="-O3 $CFLAGS_FOR_TARGET" ;;
|
100 |
|
|
esac
|
101 |
|
|
case " $CFLAGS " in
|
102 |
|
|
*" -g "* | *" -g3 "*) ;;
|
103 |
|
|
- *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
|
104 |
|
|
+ *) CFLAGS_FOR_TARGET="$CFLAGS_FOR_TARGET" ;;
|
105 |
|
|
esac
|
106 |
|
|
fi
|
107 |
|
|
fi
|
108 |
|
|
@@ -6802,16 +6846,16 @@
|
109 |
|
|
|
110 |
|
|
if test "x$CXXFLAGS_FOR_TARGET" = x; then
|
111 |
|
|
if test "x${is_cross_compiler}" = xyes; then
|
112 |
|
|
- CXXFLAGS_FOR_TARGET="-g -O2"
|
113 |
|
|
+ CXXFLAGS_FOR_TARGET="-O3"
|
114 |
|
|
else
|
115 |
|
|
CXXFLAGS_FOR_TARGET=$CXXFLAGS
|
116 |
|
|
case " $CXXFLAGS " in
|
117 |
|
|
- *" -O2 "*) ;;
|
118 |
|
|
- *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
|
119 |
|
|
+ *" -O3 "*) ;;
|
120 |
|
|
+ *) CXXFLAGS_FOR_TARGET="-O3 $CXXFLAGS_FOR_TARGET" ;;
|
121 |
|
|
esac
|
122 |
|
|
case " $CXXFLAGS " in
|
123 |
|
|
*" -g "* | *" -g3 "*) ;;
|
124 |
|
|
- *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
|
125 |
|
|
+ *) CXXFLAGS_FOR_TARGET="$CXXFLAGS_FOR_TARGET" ;;
|
126 |
|
|
esac
|
127 |
|
|
fi
|
128 |
|
|
fi
|
129 |
|
|
diff -Naur '--exclude=*.swp' gcc-6.2.0/configure.ac gcc-6.2.0-zip/configure.ac
|
130 |
|
|
--- gcc-6.2.0/configure.ac 2016-03-17 18:54:19.000000000 -0400
|
131 |
|
|
+++ gcc-6.2.0-zip/configure.ac 2017-01-10 12:43:23.819301273 -0500
|
132 |
|
|
@@ -884,6 +884,9 @@
|
133 |
|
|
ft32-*-*)
|
134 |
|
|
noconfigdirs="$noconfigdirs ${libgcj}"
|
135 |
|
|
;;
|
136 |
|
|
+ zip*)
|
137 |
|
|
+ noconfigdirs="$noconfigdirs ${libgcj}"
|
138 |
|
|
+ ;;
|
139 |
|
|
*-*-lynxos*)
|
140 |
|
|
noconfigdirs="$noconfigdirs ${libgcj}"
|
141 |
|
|
;;
|
142 |
|
|
@@ -911,6 +914,9 @@
|
143 |
|
|
*-*-aix*)
|
144 |
|
|
noconfigdirs="$noconfigdirs target-libgo"
|
145 |
|
|
;;
|
146 |
|
|
+ zip*)
|
147 |
|
|
+ noconfigdirs="$noconfigdirs target-libgo"
|
148 |
|
|
+ ;;
|
149 |
|
|
esac
|
150 |
|
|
fi
|
151 |
|
|
|
152 |
|
|
@@ -1307,6 +1313,10 @@
|
153 |
102 |
dgisselq |
vax-*-*)
|
154 |
|
|
noconfigdirs="$noconfigdirs target-newlib target-libgloss"
|
155 |
|
|
;;
|
156 |
|
|
+ zip*)
|
157 |
202 |
dgisselq |
+ noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb gprof ${libgcj}"
|
158 |
|
|
+ unsupported_languages="$unsupported_languages fortran"
|
159 |
102 |
dgisselq |
+ ;;
|
160 |
|
|
esac
|
161 |
|
|
|
162 |
|
|
# If we aren't building newlib, then don't build libgloss, since libgloss
|
163 |
202 |
dgisselq |
diff -Naur '--exclude=*.swp' gcc-6.2.0/gcc/cfgexpand.c gcc-6.2.0-zip/gcc/cfgexpand.c
|
164 |
|
|
--- gcc-6.2.0/gcc/cfgexpand.c 2016-04-27 08:23:50.000000000 -0400
|
165 |
209 |
dgisselq |
+++ gcc-6.2.0-zip/gcc/cfgexpand.c 2018-06-05 21:18:19.438798488 -0400
|
166 |
|
|
@@ -74,6 +74,16 @@
|
167 |
117 |
dgisselq |
#include "tree-chkp.h"
|
168 |
|
|
#include "rtl-chkp.h"
|
169 |
|
|
|
170 |
202 |
dgisselq |
+
|
171 |
209 |
dgisselq |
+// #define DO_ZIP_DEBUGS
|
172 |
117 |
dgisselq |
+#ifdef DO_ZIP_DEBUGS
|
173 |
|
|
+#include <stdio.h>
|
174 |
202 |
dgisselq |
+#define ZIP_DEBUG_LINE(STR,RTX) do{fprintf(stderr,"%s;%d/%s\n",__FILE__,__LINE__,STR); zip_debug_rtx(RTX);} while(0)
|
175 |
117 |
dgisselq |
+extern void zip_debug_rtx(const_rtx);
|
176 |
|
|
+#else
|
177 |
|
|
+#define ZIP_DEBUG_LINE(STR,RTX)
|
178 |
|
|
+#endif
|
179 |
|
|
+
|
180 |
|
|
/* Some systems use __main in a way incompatible with its use in gcc, in these
|
181 |
|
|
cases use the macros NAME__MAIN to give a quoted symbol and SYMBOL__MAIN to
|
182 |
|
|
give the same symbol without quotes for an alternative entry point. You
|
183 |
209 |
dgisselq |
@@ -1172,7 +1182,7 @@
|
184 |
202 |
dgisselq |
base_align = crtl->max_used_stack_slot_alignment;
|
185 |
|
|
else
|
186 |
|
|
base_align = MAX (crtl->max_used_stack_slot_alignment,
|
187 |
|
|
- GET_MODE_ALIGNMENT (SImode)
|
188 |
|
|
+ GET_MODE_ALIGNMENT (word_mode)
|
189 |
|
|
<< ASAN_SHADOW_SHIFT);
|
190 |
|
|
}
|
191 |
|
|
else
|
192 |
209 |
dgisselq |
@@ -2225,7 +2235,7 @@
|
193 |
202 |
dgisselq |
data.asan_vec.safe_push (offset);
|
194 |
|
|
/* Leave space for alignment if STRICT_ALIGNMENT. */
|
195 |
|
|
if (STRICT_ALIGNMENT)
|
196 |
|
|
- alloc_stack_frame_space ((GET_MODE_ALIGNMENT (SImode)
|
197 |
|
|
+ alloc_stack_frame_space ((GET_MODE_ALIGNMENT (word_mode)
|
198 |
|
|
<< ASAN_SHADOW_SHIFT)
|
199 |
|
|
/ BITS_PER_UNIT, 1);
|
200 |
111 |
dgisselq |
|
201 |
209 |
dgisselq |
@@ -5745,7 +5755,7 @@
|
202 |
202 |
dgisselq |
&& (last = get_last_insn ())
|
203 |
|
|
&& JUMP_P (last))
|
204 |
|
|
{
|
205 |
|
|
- rtx dummy = gen_reg_rtx (SImode);
|
206 |
|
|
+ rtx dummy = gen_reg_rtx (word_mode);
|
207 |
|
|
emit_insn_after_noloc (gen_move_insn (dummy, dummy), last, NULL);
|
208 |
|
|
}
|
209 |
|
|
|
210 |
|
|
diff -Naur '--exclude=*.swp' gcc-6.2.0/gcc/cgraphbuild.c gcc-6.2.0-zip/gcc/cgraphbuild.c
|
211 |
|
|
--- gcc-6.2.0/gcc/cgraphbuild.c 2016-01-04 09:30:50.000000000 -0500
|
212 |
|
|
+++ gcc-6.2.0-zip/gcc/cgraphbuild.c 2016-12-31 16:39:44.963107994 -0500
|
213 |
|
|
@@ -32,6 +32,15 @@
|
214 |
|
|
#include "ipa-utils.h"
|
215 |
|
|
#include "except.h"
|
216 |
|
|
|
217 |
|
|
+
|
218 |
111 |
dgisselq |
+#ifdef DO_ZIP_DEBUGS
|
219 |
202 |
dgisselq |
+#include <stdio.h>
|
220 |
|
|
+#define ZIP_DEBUG_LINE(STR,RTX) do{fprintf(stderr,"%s;%d/%s\n",__FILE__,__LINE__,STR); zip_debug_rtx(RTX);} while(0)
|
221 |
|
|
+extern void zip_debug_rtx(const_rtx);
|
222 |
111 |
dgisselq |
+#else
|
223 |
|
|
+#define ZIP_DEBUG_LINE(STR,RTX)
|
224 |
|
|
+#endif
|
225 |
|
|
+
|
226 |
|
|
/* Context of record_reference. */
|
227 |
|
|
struct record_reference_ctx
|
228 |
|
|
{
|
229 |
202 |
dgisselq |
diff -Naur '--exclude=*.swp' gcc-6.2.0/gcc/combine.c gcc-6.2.0-zip/gcc/combine.c
|
230 |
|
|
--- gcc-6.2.0/gcc/combine.c 2016-08-08 06:06:15.000000000 -0400
|
231 |
|
|
+++ gcc-6.2.0-zip/gcc/combine.c 2017-02-03 09:25:19.676720321 -0500
|
232 |
|
|
@@ -103,6 +103,15 @@
|
233 |
|
|
#include "rtl-iter.h"
|
234 |
|
|
#include "print-rtl.h"
|
235 |
|
|
|
236 |
|
|
+#define DO_ZIP_DEBUGS
|
237 |
|
|
+#ifdef DO_ZIP_DEBUGS
|
238 |
|
|
+#include <stdio.h>
|
239 |
|
|
+#define ZIP_DEBUG_LINE(STR,RTX) do{fprintf(stderr,"%s:%d/%s\n",__FILE__,__LINE__,STR); zip_debug_rtx(RTX);} while(0)
|
240 |
|
|
+extern void zip_debug_rtx(const_rtx);
|
241 |
|
|
+#else
|
242 |
|
|
+#define ZIP_DEBUG_LINE(STR,RTX)
|
243 |
|
|
+#endif
|
244 |
|
|
+
|
245 |
|
|
#ifndef LOAD_EXTEND_OP
|
246 |
|
|
#define LOAD_EXTEND_OP(M) UNKNOWN
|
247 |
|
|
#endif
|
248 |
|
|
diff -Naur '--exclude=*.swp' gcc-6.2.0/gcc/common/config/zip/zip-common.c gcc-6.2.0-zip/gcc/common/config/zip/zip-common.c
|
249 |
|
|
--- gcc-6.2.0/gcc/common/config/zip/zip-common.c 1969-12-31 19:00:00.000000000 -0500
|
250 |
|
|
+++ gcc-6.2.0-zip/gcc/common/config/zip/zip-common.c 2017-01-11 09:41:34.483106099 -0500
|
251 |
102 |
dgisselq |
@@ -0,0 +1,52 @@
|
252 |
|
|
+////////////////////////////////////////////////////////////////////////////////
|
253 |
|
|
+//
|
254 |
|
|
+// Filename: common/config/zip/zip-common.c
|
255 |
|
|
+//
|
256 |
|
|
+// Project: Zip CPU backend for the GNU Compiler Collection
|
257 |
|
|
+//
|
258 |
|
|
+// Purpose: To eliminate the frame register automatically.
|
259 |
|
|
+//
|
260 |
|
|
+// Creator: Dan Gisselquist, Ph.D.
|
261 |
|
|
+// Gisselquist Technology, LLC
|
262 |
|
|
+//
|
263 |
|
|
+////////////////////////////////////////////////////////////////////////////////
|
264 |
|
|
+//
|
265 |
202 |
dgisselq |
+// Copyright (C) 2016-2017, Gisselquist Technology, LLC
|
266 |
102 |
dgisselq |
+//
|
267 |
|
|
+// This program is free software (firmware): you can redistribute it and/or
|
268 |
|
|
+// modify it under the terms of the GNU General Public License as published
|
269 |
|
|
+// by the Free Software Foundation, either version 3 of the License, or (at
|
270 |
|
|
+// your option) any later version.
|
271 |
|
|
+//
|
272 |
|
|
+// This program is distributed in the hope that it will be useful, but WITHOUT
|
273 |
|
|
+// ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
|
274 |
|
|
+// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
275 |
|
|
+// for more details.
|
276 |
|
|
+//
|
277 |
|
|
+// You should have received a copy of the GNU General Public License along
|
278 |
|
|
+// with this program. (It's in the $(ROOT)/doc directory, run make with no
|
279 |
|
|
+// target there if the PDF file isn't present.) If not, see
|
280 |
|
|
+// <http://www.gnu.org/licenses/> for a copy.
|
281 |
|
|
+//
|
282 |
|
|
+// License: GPL, v3, as defined and found on www.gnu.org,
|
283 |
|
|
+// http://www.gnu.org/licenses/gpl.html
|
284 |
|
|
+//
|
285 |
|
|
+//
|
286 |
|
|
+////////////////////////////////////////////////////////////////////////////////
|
287 |
|
|
+#include "config.h"
|
288 |
|
|
+#include "system.h"
|
289 |
|
|
+#include "coretypes.h"
|
290 |
|
|
+#include "tm.h"
|
291 |
|
|
+#include "common/common-target.h"
|
292 |
|
|
+#include "common/common-target-def.h"
|
293 |
|
|
+
|
294 |
|
|
+static const struct default_options zip_option_optimization_table[] =
|
295 |
|
|
+ {
|
296 |
|
|
+ { OPT_LEVELS_1_PLUS, OPT_fomit_frame_pointer, NULL, 1 },
|
297 |
|
|
+ { OPT_LEVELS_NONE, 0, NULL, 0 }
|
298 |
|
|
+ };
|
299 |
|
|
+
|
300 |
|
|
+#undef TARGET_OPTION_OPTIMIZATION_TABLE
|
301 |
|
|
+#define TARGET_OPTION_OPTIMIZATION_TABLE zip_option_optimization_table
|
302 |
|
|
+
|
303 |
|
|
+struct gcc_targetm_common targetm_common = TARGETM_COMMON_INITIALIZER;
|
304 |
209 |
dgisselq |
diff -Naur '--exclude=*.swp' gcc-6.2.0/gcc/config/zip/genzipops gcc-6.2.0-zip/gcc/config/zip/genzipops
|
305 |
|
|
--- gcc-6.2.0/gcc/config/zip/genzipops 1969-12-31 19:00:00.000000000 -0500
|
306 |
|
|
+++ gcc-6.2.0-zip/gcc/config/zip/genzipops 2018-03-22 18:33:09.823726748 -0400
|
307 |
|
|
@@ -0,0 +1,201 @@
|
308 |
|
|
+ELF >
|