Skip to contentSkip to conversation

gcc: allow gcc 6.x for microblaze architecture

PATCH New Waldemar Brodkorb 2 participants 2 messages May 31, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gcc: allow gcc 6.x for microblaze architecture

With the two patches from gcc upstream master we
can enable gcc 6.x for microblaze again.

For gcc 7.x only microblaze-Revert.patch would be
required.

---
 package/gcc/6.3.0/896-microblaze-Revert.patch      |  40 +++++
 ...laze-support-DWARF-EH-old-Xilinx-patch-ne.patch | 178 +++++++++++++++++++++
 package/gcc/Config.in.host                         |   1 -
 3 files changed, 218 insertions(+), 1 deletion(-)
 create mode 100644 package/gcc/6.3.0/896-microblaze-Revert.patch
 create mode 100644 package/gcc/6.3.0/897-Make-MicroBlaze-support-DWARF-EH-old-Xilinx-patch-ne.patch
package/gcc/6.3.0/896-microblaze-Revert.patch new file +40 -0
new file mode 100644
index 0000000..7026d0e
@@ -0,0 +1,40 @@
+From 707a69dfb56a2976e2b5c010f0e5cb2ac9905a07 Mon Sep 17 00:00:00 2001
+From: eager <eager@138bc75d-0d04-0410-961f-82ee72b054a4>
+Date: Sat, 27 May 2017 18:29:40 +0000
+Subject: [PATCH] 	Revert: 	2016-01-21  Ajit Agarwal 
+ <[email protected]>
+
+	See https://gcc.gnu.org/ml/gcc/2017-05/msg00221.html.
+
+	* config/microblaze/microblaze.h
+	(FIXED_REGISTERS): Update in macro.
+	(CALL_USED_REGISTERS): Update in macro.
+
+
+
+git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk at 248540 138bc75d-0d04-0410-961f-82ee72b054a4
+Signed-off-by: Waldemar Brodkorb <[email protected]>
+diff --git a/gcc/config/microblaze/microblaze.h b/gcc/config/microblaze/microblaze.h
+index 66e4ef5..2c9ece1 100644
+--- a/gcc/config/microblaze/microblaze.h
++++ b/gcc/config/microblaze/microblaze.h
+@@ -269,14 +269,14 @@ extern enum pipeline_type microblaze_pipe;
+ #define FIXED_REGISTERS							\
+ {									\
+   1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1,			\
+-  1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,			\
++  1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,			\
+   1, 1, 1, 1 								\
+ }
+ 
+ #define CALL_USED_REGISTERS						\
+ {									\
+   1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,			\
+-  1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,			\
++  1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,			\
+   1, 1, 1, 1								\
+ }
+ #define GP_REG_FIRST    0
+-- 
+2.1.4
+
package/gcc/6.3.0/897-Make-MicroBlaze-support-DWARF-EH-old-Xilinx-patch-ne.patch new file +178 -0

178 lines not on this page · raw message

package/gcc/Config.in.host +0 -1
index 5a0fd97..5b1a643 100644
@@ -81,7 +81,6 @@ config BR2_GCC_VERSION_6_X
 	bool "gcc 6.x"
 	# Broken or unsupported architectures
 	depends on !BR2_arc
-	depends on !BR2_microblaze
 	depends on !BR2_or1k
 	# Unsupported MIPS cores
 	depends on !BR2_mips_m6250 && !BR2_mips_p6600
Signature · 1 line
2.1.4
#1 lore raw

PATCH 1/1 gcc: allow gcc 6.x for microblaze architecture

Hello,

Quoted 5 lines · Waldemar Brodkorb

With the two patches from gcc upstream master we
can enable gcc 6.x for microblaze again.

For gcc 7.x only microblaze-Revert.patch would be
required.

This comment doesn't make much sense as part of this commit log, so I've dropped it. Could you instead send a patch that adds the relevant patch to gcc 7.x (of course by using the next branch).

Otherwise: I've applied your patch to the next branch.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com