This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch committed] Fix visibility-1[46].c, weak-1.c and weak-16.c on SH


visibility-1[46].c and weak-{1,16}.c fails on SH.  I've committed
the attached patch which is very similar to those recently applied
to s390 and arm by Jakub.  Tested with bootstrap and the top level
"make -k check" on sh4-unknown-linux-gnu.

Regards,
	kaz
--
2008-11-23  Kaz Kojima  <kkojima@gcc.gnu.org>

	* config/sh/sh.md (consttable_4): Call mark_symbol_refs_as_used.

--- ORIG/trunk/gcc/config/sh/sh.md	2008-10-11 09:42:18.000000000 +0900
+++ LOCAL/trunk/gcc/config/sh/sh.md	2008-11-03 22:24:18.000000000 +0900
@@ -10237,7 +10237,10 @@ mov.l\\t1f,r0\\n\\
  "*
 {
   if (operands[1] != const0_rtx)
-    assemble_integer (operands[0], 4, BITS_PER_UNIT * 4, 1);
+    {
+      assemble_integer (operands[0], 4, BITS_PER_UNIT * 4, 1);
+      mark_symbol_refs_as_used (operands[0]);
+    }
   return \"\";
 }"
  [(set_attr "length" "4")


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]