[PATCH] mpi: Fix powerpc32 build

Andre Amorim andre at amorim.me
Wed Apr 25 15:37:07 CEST 2018


I do understand 4 bit maths

On 25 April 2018 at 13:09, <dirk.eibach at gdsys.cc> wrote:

> From: Dirk Eibach <dirk.eibach at gdsys.cc>
>
> The ENTRY macro is called with C format parameter.
> Adding a second underscore breaks the build.
>
> Signed-off-by: Dirk Eibach <dirk.eibach at gdsys.cc>
> ---
>  mpi/powerpc32/syntax.h | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/mpi/powerpc32/syntax.h b/mpi/powerpc32/syntax.h
> index 5d4af9f0..fa69b64b 100644
> --- a/mpi/powerpc32/syntax.h
> +++ b/mpi/powerpc32/syntax.h
> @@ -45,10 +45,10 @@
>  #define CALL_MCOUNT /* no profiling */
>
>  #define        ENTRY(name)                                 \
> -  ASM_GLOBAL_DIRECTIVE C_SYMBOL_NAME(name);                \
> -  ASM_TYPE_DIRECTIVE (C_SYMBOL_NAME(name), at function)       \
> +  ASM_GLOBAL_DIRECTIVE name;               \
> +  ASM_TYPE_DIRECTIVE (name, at function)      \
>    .align ALIGNARG(2);                                      \
> -  C_LABEL(name)                                            \
> +  name:                                            \
>    CALL_MCOUNT
>
>  #define EALIGN_W_0  /* No words to insert.  */
> @@ -63,11 +63,11 @@
>  /* EALIGN is like ENTRY, but does alignment to 'words'*4 bytes
>     past a 2^align boundary.  */
>  #define EALIGN(name, alignt, words)                    \
> -  ASM_GLOBAL_DIRECTIVE C_SYMBOL_NAME(name);            \
> -  ASM_TYPE_DIRECTIVE (C_SYMBOL_NAME(name), at function)   \
> +  ASM_GLOBAL_DIRECTIVE name;           \
> +  ASM_TYPE_DIRECTIVE (name, at function)  \
>    .align ALIGNARG(alignt);                             \
>    EALIGN_W_##words;                                    \
> -  C_LABEL(name)
> +  name:
>
>  #undef END
>  #define END(name)                   \
> --
> 2.16.3
>
>
> _______________________________________________
> Gcrypt-devel mailing list
> Gcrypt-devel at gnupg.org
> http://lists.gnupg.org/mailman/listinfo/gcrypt-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gcrypt-devel/attachments/20180425/3d949d7a/attachment.html>


More information about the Gcrypt-devel mailing list