bring over build fixes from stable branch
diff --git a/src/mesa/sparc/clip.S b/src/mesa/sparc/clip.S
index fc5c677..4243cae 100644
--- a/src/mesa/sparc/clip.S
+++ b/src/mesa/sparc/clip.S
@@ -25,6 +25,13 @@
 #define VEC_SIZE_3   	7
 #define VEC_SIZE_4   	15
 
+#ifdef SVR4
+        /* Solaris requires this for 64-bit. */
+        .register %g2, #scratch
+        .register %g3, #scratch
+        .register %g7, #scratch
+#endif
+
 	.text
 	.align		64