r1489 - / trunk/patches

jim at linuxfromscratch.org jim at linuxfromscratch.org
Sun Apr 30 13:02:52 PDT 2006


Author: jim
Date: 2006-04-30 14:02:51 -0600 (Sun, 30 Apr 2006)
New Revision: 1489

Added:
   trunk/patches/gcc-4.1.0-sparc_tls-1.patch
Modified:
   /
Log:
 r3190 at server (orig r1503):  jim | 2006-04-30 12:51:04 -0700
 Added:  gcc-4.1.0-sparc_tls-1.patch



Property changes on: 
___________________________________________________________________
Name: svk:merge
   - b6734a72-470d-0410-b049-f317dca95413:/:1498
   + b6734a72-470d-0410-b049-f317dca95413:/:1503

Added: trunk/patches/gcc-4.1.0-sparc_tls-1.patch
===================================================================
--- trunk/patches/gcc-4.1.0-sparc_tls-1.patch	                        (rev 0)
+++ trunk/patches/gcc-4.1.0-sparc_tls-1.patch	2006-04-30 20:02:51 UTC (rev 1489)
@@ -0,0 +1,24 @@
+Submitted By: Ryan Oliver <ryan at pha dot com dot au>
+Date: 2006-04-30
+Initial Package Version: 4.1.0
+Origin: Jakub
+Upstream Status: In GCC Trunk
+Description: Fixed in GCC SVN Revision #110522
+	* config/sparc/sparc.c (sparc_output_scratch_registers): Use
+	#ignore instead of #scratch for %g7 .register directive.
+
+--- trunk/gcc/config/sparc/sparc.c	2006/01/31 22:33:27	110451
++++ trunk/gcc/config/sparc/sparc.c	2006/02/02 22:49:01	110522
+@@ -3693,7 +3693,10 @@
+ 	  && ! sparc_hard_reg_printed [i])
+ 	{
+ 	  sparc_hard_reg_printed [i] = 1;
+-	  fprintf (file, "\t.register\t%%g%d, #scratch\n", i);
++	  /* %g7 is used as TLS base register, use #ignore
++	     for it instead of #scratch.  */
++	  fprintf (file, "\t.register\t%%g%d, #%s\n", i,
++		   i == 7 ? "ignore" : "scratch");
+ 	}
+       if (i == 3) i = 5;
+     }
+




More information about the cross-lfs mailing list