about summary refs log tree commit diff
path: root/sysdeps/sparc/sparc64/strchr.S
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/sparc/sparc64/strchr.S')
-rw-r--r--sysdeps/sparc/sparc64/strchr.S3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/sparc/sparc64/strchr.S b/sysdeps/sparc/sparc64/strchr.S
index b017640914..361e0cefbb 100644
--- a/sysdeps/sparc/sparc64/strchr.S
+++ b/sysdeps/sparc/sparc64/strchr.S
@@ -25,6 +25,9 @@
 #ifndef XCC
 #define XCC xcc
 #define USE_BPR
+	.register	%g2, #scratch
+	.register	%g3, #scratch
+	.register	%g7, #scratch
 #endif
 
 	/* Normally, this uses