[PATCH 00/21] PowerPC: multiarch support for PPC64

Adhemerval Zanella azanella@linux.vnet.ibm.com
Thu Dec 19 14:50:00 GMT 2013


On 19-12-2013 12:10, Andreas Schwab wrote:
> ../sysdeps/powerpc/powerpc64/power7/memrchr.S: Assembler messages:
> ../sysdeps/powerpc/powerpc64/power7/memrchr.S:25: Error: non-constant expression in ".if" statement
> ../sysdeps/powerpc/powerpc64/power7/memrchr.S:25: Error: non-constant expression in ".if" statement
> ../sysdeps/powerpc/powerpc64/power7/memrchr.S:25: Error: non-constant expression in ".if" statement
> ../sysdeps/powerpc/powerpc64/power7/memrchr.S:25: Error: non-constant expression in ".if" statement
>
> Andreas.
>
Thanks for spotting it and I think you built with --enable-profile, right? I don't think this is
really related to my patch, I tried to build sysdeps/powerpc/powerpc64/power7/memrchr.S with
-DPROF and I saw the same issue. I will investigate this today, but looks like this code is
triggering it:

 66         .macro SAVE_ARG NARG
 67         .if \NARG
 68         SAVE_ARG \NARG-1
 69         std     2+\NARG,call_mcount_parm_offset-8+8*(\NARG)(1)
 70         .endif
 71         .endm

Has the .if command been deprecated or is something not right in this code?



More information about the Libc-alpha mailing list