This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] PowerPC: Fix POWER6 s_isnanf.S: END(__isnan) toEND(__isnanf) to match EALIGN(__isnanf,...)
- From: Ryan Arnold <rsa at us dot ibm dot com>
- To: libc-alpha at sources dot redhat dot com
- Date: Wed, 16 Mar 2011 10:49:55 -0500
- Subject: [PATCH] PowerPC: Fix POWER6 s_isnanf.S: END(__isnan) toEND(__isnanf) to match EALIGN(__isnanf,...)
- Reply-to: rsa at us dot ibm dot com
Recent changes to the GNU AS now cause it to Error on .size expressions
where there isn't a label in the same module that matches the constant
used in the .size expression, e.g.,
sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S:45: Error: .size
expression does not evaluate to a constant
Basically, in this case the function entry point was defined as
EALIGN(__isnanf, 4, 0) and the closing defined erroneously as
END(__isnan). This should be END(__isnanf).
This is fixed with the attached patch.
Ryan S. Arnold
IBM Linux Technology Center
Fix POWER6 END(__isnan) to END(__isnanf) to match EALIGN(__isnanf,...).
2011-03-16 Ryan S. Arnold <rsa@us.ibm.com>
* sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
END(__isnan) to END(__isnanf) to match function entry point/label
EALIGN(__isnanf,...).
diff --git a/sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S b/sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S
index 12bf473..3b4a102 100644
--- a/sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S
+++ b/sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S
@@ -39,7 +39,7 @@ EALIGN (__isnanf, 4, 0)
L(NaN):
li r3,1 /* else return 1 */
blr
- END (__isnan)
+ END (__isnanf)
hidden_def (__isnanf)
weak_alias (__isnanf, isnanf)