ppc-morphos-gcc-9: Fix baserel support

This commit is contained in:
Jonathan Schleifer 2020-02-09 15:24:54 +01:00
parent d1537b891f
commit e3f911dfaa
No known key found for this signature in database
GPG Key ID: E2BCCE6B35E1AF8B
4 changed files with 35 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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)

View File

@ -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