Line 160... |
Line 160... |
esac
|
esac
|
|
|
# If we aren't building newlib, then don't build libgloss, since libgloss
|
# If we aren't building newlib, then don't build libgloss, since libgloss
|
diff -Naur '--exclude=*.swp' gcc-6.2.0/gcc/cfgexpand.c gcc-6.2.0-zip/gcc/cfgexpand.c
|
diff -Naur '--exclude=*.swp' gcc-6.2.0/gcc/cfgexpand.c gcc-6.2.0-zip/gcc/cfgexpand.c
|
--- gcc-6.2.0/gcc/cfgexpand.c 2016-04-27 08:23:50.000000000 -0400
|
--- gcc-6.2.0/gcc/cfgexpand.c 2016-04-27 08:23:50.000000000 -0400
|
+++ gcc-6.2.0-zip/gcc/cfgexpand.c 2016-12-31 16:38:36.195534819 -0500
|
+++ gcc-6.2.0-zip/gcc/cfgexpand.c 2018-06-05 21:18:19.438798488 -0400
|
@@ -74,6 +74,15 @@
|
@@ -74,6 +74,16 @@
|
#include "tree-chkp.h"
|
#include "tree-chkp.h"
|
#include "rtl-chkp.h"
|
#include "rtl-chkp.h"
|
|
|
+
|
+
|
|
+// #define DO_ZIP_DEBUGS
|
+#ifdef DO_ZIP_DEBUGS
|
+#ifdef DO_ZIP_DEBUGS
|
+#include <stdio.h>
|
+#include <stdio.h>
|
+#define ZIP_DEBUG_LINE(STR,RTX) do{fprintf(stderr,"%s;%d/%s\n",__FILE__,__LINE__,STR); zip_debug_rtx(RTX);} while(0)
|
+#define ZIP_DEBUG_LINE(STR,RTX) do{fprintf(stderr,"%s;%d/%s\n",__FILE__,__LINE__,STR); zip_debug_rtx(RTX);} while(0)
|
+extern void zip_debug_rtx(const_rtx);
|
+extern void zip_debug_rtx(const_rtx);
|
+#else
|
+#else
|
Line 177... |
Line 178... |
+#endif
|
+#endif
|
+
|
+
|
/* Some systems use __main in a way incompatible with its use in gcc, in these
|
/* Some systems use __main in a way incompatible with its use in gcc, in these
|
cases use the macros NAME__MAIN to give a quoted symbol and SYMBOL__MAIN to
|
cases use the macros NAME__MAIN to give a quoted symbol and SYMBOL__MAIN to
|
give the same symbol without quotes for an alternative entry point. You
|
give the same symbol without quotes for an alternative entry point. You
|
@@ -1172,7 +1181,7 @@
|
@@ -1172,7 +1182,7 @@
|
base_align = crtl->max_used_stack_slot_alignment;
|
base_align = crtl->max_used_stack_slot_alignment;
|
else
|
else
|
base_align = MAX (crtl->max_used_stack_slot_alignment,
|
base_align = MAX (crtl->max_used_stack_slot_alignment,
|
- GET_MODE_ALIGNMENT (SImode)
|
- GET_MODE_ALIGNMENT (SImode)
|
+ GET_MODE_ALIGNMENT (word_mode)
|
+ GET_MODE_ALIGNMENT (word_mode)
|
<< ASAN_SHADOW_SHIFT);
|
<< ASAN_SHADOW_SHIFT);
|
}
|
}
|
else
|
else
|
@@ -2225,7 +2234,7 @@
|
@@ -2225,7 +2235,7 @@
|
data.asan_vec.safe_push (offset);
|
data.asan_vec.safe_push (offset);
|
/* Leave space for alignment if STRICT_ALIGNMENT. */
|
/* Leave space for alignment if STRICT_ALIGNMENT. */
|
if (STRICT_ALIGNMENT)
|
if (STRICT_ALIGNMENT)
|
- alloc_stack_frame_space ((GET_MODE_ALIGNMENT (SImode)
|
- alloc_stack_frame_space ((GET_MODE_ALIGNMENT (SImode)
|
+ alloc_stack_frame_space ((GET_MODE_ALIGNMENT (word_mode)
|
+ alloc_stack_frame_space ((GET_MODE_ALIGNMENT (word_mode)
|
<< ASAN_SHADOW_SHIFT)
|
<< ASAN_SHADOW_SHIFT)
|
/ BITS_PER_UNIT, 1);
|
/ BITS_PER_UNIT, 1);
|
|
|
@@ -5745,7 +5754,7 @@
|
@@ -5745,7 +5755,7 @@
|
&& (last = get_last_insn ())
|
&& (last = get_last_insn ())
|
&& JUMP_P (last))
|
&& JUMP_P (last))
|
{
|
{
|
- rtx dummy = gen_reg_rtx (SImode);
|
- rtx dummy = gen_reg_rtx (SImode);
|
+ rtx dummy = gen_reg_rtx (word_mode);
|
+ rtx dummy = gen_reg_rtx (word_mode);
|
Line 298... |
Line 299... |
+
|
+
|
+#undef TARGET_OPTION_OPTIMIZATION_TABLE
|
+#undef TARGET_OPTION_OPTIMIZATION_TABLE
|
+#define TARGET_OPTION_OPTIMIZATION_TABLE zip_option_optimization_table
|
+#define TARGET_OPTION_OPTIMIZATION_TABLE zip_option_optimization_table
|
+
|
+
|
+struct gcc_targetm_common targetm_common = TARGETM_COMMON_INITIALIZER;
|
+struct gcc_targetm_common targetm_common = TARGETM_COMMON_INITIALIZER;
|
|
diff -Naur '--exclude=*.swp' gcc-6.2.0/gcc/config/zip/genzipops gcc-6.2.0-zip/gcc/config/zip/genzipops
|
|
--- gcc-6.2.0/gcc/config/zip/genzipops 1969-12-31 19:00:00.000000000 -0500
|
|
+++ gcc-6.2.0-zip/gcc/config/zip/genzipops 2018-03-22 18:33:09.823726748 -0400
|
|
@@ -0,0 +1,201 @@
|
|
+ELF >
|