pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

ppc-morphos-gcc-9: Fix baserel support



Module Name:	pkgsrc-wip
Committed By:	Jonathan Schleifer <js%nil.im@localhost>
Pushed By:	js
Date:		Sun Feb 9 15:24:54 2020 +0100
Changeset:	e3f911dfaae8c3b41bafbf762c1686743807bdff

Modified Files:
	ppc-morphos-gcc-9/Makefile
	ppc-morphos-gcc-9/distinfo
Added Files:
	ppc-morphos-gcc-9/patches/patch-gcc_config_rs6000_rs6000.c
	ppc-morphos-gcc-9/patches/patch-libgcc_crtstuff.c

Log Message:
ppc-morphos-gcc-9: Fix baserel support

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=e3f911dfaae8c3b41bafbf762c1686743807bdff

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 ppc-morphos-gcc-9/Makefile                            |  1 +
 ppc-morphos-gcc-9/distinfo                            |  2 ++
 .../patches/patch-gcc_config_rs6000_rs6000.c          | 19 +++++++++++++++++++
 ppc-morphos-gcc-9/patches/patch-libgcc_crtstuff.c     | 13 +++++++++++++
 4 files changed, 35 insertions(+)

diffs:
diff --git a/ppc-morphos-gcc-9/Makefile b/ppc-morphos-gcc-9/Makefile
index 8b9de69b92..b41ea37991 100644
--- a/ppc-morphos-gcc-9/Makefile
+++ b/ppc-morphos-gcc-9/Makefile
@@ -2,6 +2,7 @@
 
 DISTNAME=	sdk-source-20191111
 PKGNAME=	ppc-morphos-gcc-9-9.2.0
+PKGREVISION=	1
 CATEGORIES=	cross
 MASTER_SITES=	https://morphos-team.net/files/src/sdk/
 EXTRACT_SUFX=	.tar.xz
diff --git a/ppc-morphos-gcc-9/distinfo b/ppc-morphos-gcc-9/distinfo
index 12a3b6af90..dba2f25597 100644
--- a/ppc-morphos-gcc-9/distinfo
+++ b/ppc-morphos-gcc-9/distinfo
@@ -5,4 +5,6 @@ RMD160 (sdk-source-20191111.tar.xz) = b8c01cc4e6caa897672f44426bc3e575abaeddc8
 SHA512 (sdk-source-20191111.tar.xz) = d201e1a6425d847ec5567939225db402524436398d7961180d2295e69ef8003edaf311df49e89ef0fbefe3a0f6f74935a6d132e58b496e3be1f6136a91aa6634
 Size (sdk-source-20191111.tar.xz) = 503342768 bytes
 SHA1 (patch-gcc_config_rs6000_morphos.c) = 68f558ecd56c7ccf1a019471deac004b0e48b0ac
+SHA1 (patch-gcc_config_rs6000_rs6000.c) = 465e17d7843cd10f5128d3842ffa33bb1b3bbea7
+SHA1 (patch-libgcc_crtstuff.c) = 0f97d44f7a740c51de2662c9919631248c39ed34
 SHA1 (patch-libstdc++-v3_libsupc++_unwind-cxx.h) = 0234e780171554bf60858b884ab1181cad36f8b2
diff --git a/ppc-morphos-gcc-9/patches/patch-gcc_config_rs6000_rs6000.c b/ppc-morphos-gcc-9/patches/patch-gcc_config_rs6000_rs6000.c
new file mode 100644
index 0000000000..a623eea0ba
--- /dev/null
+++ b/ppc-morphos-gcc-9/patches/patch-gcc_config_rs6000_rs6000.c
@@ -0,0 +1,19 @@
+$NetBSD$
+
+Patch by Harry Sintonen.
+
+--- gcc/config/rs6000/rs6000.c.orig	2020-02-09 13:46:53.000000000 +0000
++++ gcc/config/rs6000/rs6000.c
+@@ -26840,6 +26840,12 @@ rs6000_components_for_bb (basic_block bb
+       || bitmap_bit_p (kill, LR_REGNO))
+     bitmap_set_bit (components, 0);
+ 
++#ifdef TARGET_BASEREL
++  /* Always mark LR saving to occur before basic_block if "saveds" function */
++  if (TARGET_BASEREL && info->baserel_save_p)
++    bitmap_set_bit (components, 0);
++#endif
++
+   /* The TOC save.  */
+   if (bitmap_bit_p (in, TOC_REGNUM)
+       || bitmap_bit_p (gen, TOC_REGNUM)
diff --git a/ppc-morphos-gcc-9/patches/patch-libgcc_crtstuff.c b/ppc-morphos-gcc-9/patches/patch-libgcc_crtstuff.c
new file mode 100644
index 0000000000..a7d855ea40
--- /dev/null
+++ b/ppc-morphos-gcc-9/patches/patch-libgcc_crtstuff.c
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- libgcc/crtstuff.c.orig	2020-02-09 13:44:00.000000000 +0000
++++ libgcc/crtstuff.c
+@@ -156,7 +156,7 @@ call_ ## FUNC (void)					\
+ #endif
+ 
+ #ifdef __MORPHOS__
+-static const char __EH_FRAME_BEGIN__[];
++extern const char __EH_FRAME_BEGIN__[];
+ #endif
+ 
+ /* We do not want to add the weak attribute to the declarations of these


Home | Main Index | Thread Index | Old Index