mailing list of musl libc
 help / color / mirror / code / Atom feed
020422c30e8d16052967ca3ec9375b9232f39932 blob 587 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
 
--- gcc-11.4.0/gcc/config/sh/sh.cc.orig	2024-04-04 05:52:42.125373614 +0900
+++ gcc-11.4.0/gcc/config/sh/sh.cc	2024-04-04 22:54:01.875106654 +0900
@@ -9147,7 +9147,7 @@
 	{
 	  /* Weak functions may be NULL which doesn't work with
 	     GOTOFFFUNCDESC because the runtime offset is not known.  */
-	  if (SYMBOL_REF_WEAK (orig))
+	  if (SYMBOL_REF_WEAK (orig) || (TREE_PUBLIC(SYMBOL_REF_DECL(orig)) && DECL_VISIBILITY (SYMBOL_REF_DECL(orig)) != VISIBILITY_HIDDEN))
 	    emit_insn (gen_symGOTFUNCDESC2reg (reg, orig));
 	  else
 	    emit_insn (gen_symGOTOFFFUNCDESC2reg (reg, orig));

debug log:

solving 020422c ...
found 020422c in https://inbox.vuxu.org/musl/20241002-gcc-bump-v1-2-8f910fd54b1c@gmx.net/ ||
	https://inbox.vuxu.org/musl/ZxjsGeXjnu6lY68X@probook/ ||
	https://inbox.vuxu.org/musl/ZxjsGeXjnu6lY68X@probook/ ||
	https://inbox.vuxu.org/musl/ZxjsGeXjnu6lY68X@probook/

applying [1/4] https://inbox.vuxu.org/musl/20241002-gcc-bump-v1-2-8f910fd54b1c@gmx.net/
diff --git a/patches/gcc-13.3.0/0009-sh-fdpic-pr114641.diff b/patches/gcc-13.3.0/0009-sh-fdpic-pr114641.diff
new file mode 100644
index 0000000..020422c

1:10: space before tab in indent.
 	{
1:11: space before tab in indent.
 	  /* Weak functions may be NULL which doesn't work with
1:12: space before tab in indent.
 	     GOTOFFFUNCDESC because the runtime offset is not known.  */
1:15: space before tab in indent.
 	    emit_insn (gen_symGOTFUNCDESC2reg (reg, orig));
1:16: space before tab in indent.
 	  else
Checking patch patches/gcc-13.3.0/0009-sh-fdpic-pr114641.diff...
Applied patch patches/gcc-13.3.0/0009-sh-fdpic-pr114641.diff cleanly.
warning: squelched 2 whitespace errors
warning: 7 lines add whitespace errors.

skipping https://inbox.vuxu.org/musl/ZxjsGeXjnu6lY68X@probook/ for 020422c
skipping https://inbox.vuxu.org/musl/ZxjsGeXjnu6lY68X@probook/ for 020422c
skipping https://inbox.vuxu.org/musl/ZxjsGeXjnu6lY68X@probook/ for 020422c
index at:
100644 020422c30e8d16052967ca3ec9375b9232f39932	patches/gcc-13.3.0/0009-sh-fdpic-pr114641.diff

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).