Patchwork powerpc32: Fix syntax error in __GLRO macro

login
register
mail settings
Submitter Andreas Schwab
Date Jan. 17, 2020, 11:45 p.m.
Message ID <87blr14pgz.fsf_-_@igel.home>
Download mbox | patch
Permalink /patch/37429/
State Committed
Headers show

Comments

Andreas Schwab - Jan. 17, 2020, 11:45 p.m.
---
 sysdeps/powerpc/powerpc32/sysdep.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Tulio Magno Quites Machado Filho - Jan. 17, 2020, 11:56 p.m.
Andreas Schwab <schwab@linux-m68k.org> writes:

> diff --git a/sysdeps/powerpc/powerpc32/sysdep.h b/sysdeps/powerpc/powerpc32/sysdep.h
> index 0dee5f2757..2ba009e919 100644
> --- a/sysdeps/powerpc/powerpc32/sysdep.h
> +++ b/sysdeps/powerpc/powerpc32/sysdep.h
> @@ -179,7 +179,7 @@ GOT_LABEL:			;					      \
>  #else
>  /* Position-dependent code does not require access to the GOT.  */
>  # define __GLRO(rOUT, rGOT, member, offset)				\
> -	lis     rOUT,(member+LOWORD)@ha					\
> +	lis     rOUT,(member+LOWORD)@ha;					\
>  	lwz     rOUT,(member+LOWORD)@l(rOUT)
>  #endif	/* PIC */

Thanks!

Patch

diff --git a/sysdeps/powerpc/powerpc32/sysdep.h b/sysdeps/powerpc/powerpc32/sysdep.h
index 0dee5f2757..2ba009e919 100644
--- a/sysdeps/powerpc/powerpc32/sysdep.h
+++ b/sysdeps/powerpc/powerpc32/sysdep.h
@@ -179,7 +179,7 @@  GOT_LABEL:			;					      \
 #else
 /* Position-dependent code does not require access to the GOT.  */
 # define __GLRO(rOUT, rGOT, member, offset)				\
-	lis     rOUT,(member+LOWORD)@ha					\
+	lis     rOUT,(member+LOWORD)@ha;					\
 	lwz     rOUT,(member+LOWORD)@l(rOUT)
 #endif	/* PIC */