[PATCH] PowerPC: Fix POWER6 s_isnanf.S: END(__isnan) to END(__isnanf) to match EALIGN(__isnanf,...)
Ryan Arnold
rsa@us.ibm.com
Wed Mar 16 15:53:00 GMT 2011
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)
More information about the Libc-alpha
mailing list