powerpc32: Fix syntax error in __GLRO macro

Message ID 87blr14pgz.fsf_-_@igel.home
State New
Headers show
Series
  • powerpc32: Fix syntax error in __GLRO macro
Related show

Commit Message

Andreas Schwab Jan. 17, 2020, 11:45 p.m.
---
 sysdeps/powerpc/powerpc32/sysdep.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.25.0

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."

Comments

Tulio Magno Quites Machado Filho Jan. 17, 2020, 11:56 p.m. | #1
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!

-- 
Tulio Magno

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 */