about summary refs log tree commit diff
path: root/sysdeps/powerpc/tst-tlsifunc.c
diff options
context:
space:
mode:
authorPaul A. Clarke <pc@us.ibm.com>2021-10-19 09:49:12 -0500
committerPaul A. Clarke <pc@us.ibm.com>2021-11-03 09:17:28 -0500
commit9fea0f1a2a6e4f7946505c358ab99ea3ab846274 (patch)
tree2a3861a51a14782bfe652e4f4314b1d2f34d0957 /sysdeps/powerpc/tst-tlsifunc.c
parentd3bf2f5927d51258a51ac7fde04f4805f8ee294a (diff)
downloadglibc-9fea0f1a2a6e4f7946505c358ab99ea3ab846274.tar.gz
glibc-9fea0f1a2a6e4f7946505c358ab99ea3ab846274.tar.xz
glibc-9fea0f1a2a6e4f7946505c358ab99ea3ab846274.zip
[powerpc] Tighten contraints for asm constant parameters
There are a few places where only known numeric values are acceptable for
`asm` parameters, yet the constraint "i" is used.  "i" can include
"symbolic constants whose values will be known only at assembly time or
later."

Use "n" instead of "i" where known numeric values are required.

Suggested-by: Segher Boessenkool <segher@kernel.crashing.org>
Reviewed-by: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
Diffstat (limited to 'sysdeps/powerpc/tst-tlsifunc.c')
-rw-r--r--sysdeps/powerpc/tst-tlsifunc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/powerpc/tst-tlsifunc.c b/sysdeps/powerpc/tst-tlsifunc.c
index c8c0bada45..f2eaf11bb4 100644
--- a/sysdeps/powerpc/tst-tlsifunc.c
+++ b/sysdeps/powerpc/tst-tlsifunc.c
@@ -49,7 +49,7 @@ get_platform (void)
 
   __asm__  ("lwz %0,%1(%2)\n"
 	    : "=r" (tmp)
-	    : "i" (__ATPLATOFF), "b" (tp));
+	    : "n" (__ATPLATOFF), "b" (tp));
 
   return tmp;
 }