This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix PR52482, libitm compilation in OSX ppc with old cctools


Hi all,

PR52482 seems to be cause by old gas not supporting named parameters in
macros. Xcode-2.5 (last available for OSX PPC) gas version is 1.38.

Patch is against gcc-4.8.4, but affected lines have not changed in SVN HEAD.

BR

Carlos

diff -ur gcc-4.8.4.old/libitm/config/powerpc/sjlj.S gcc-4.8.4/libitm/config/powerpc/sjlj.S
--- gcc-4.8.4.old/libitm/config/powerpc/sjlj.S	2014-04-04 16:17:55.000000000 +0200
+++ gcc-4.8.4/libitm/config/powerpc/sjlj.S	2015-07-03 11:34:23.000000000 +0200
@@ -83,16 +83,16 @@
 	bl	\name
 .endm
 #elif defined(_CALL_DARWIN)
-.macro FUNC name
+.macro FUNC
 	.globl	_$0
 _$0:
 .endmacro
-.macro END name
+.macro END
 .endmacro
-.macro HIDDEN name
+.macro HIDDEN
 	.private_extern _$0
 .endmacro
-.macro CALL name
+.macro CALL
 	bl	_$0
 .endmacro
 # ifdef __ppc64__
-- 
'Whoever has the power in society determines what can be studied, determines
what can be observed, determines what can be thought.'

Michael Crichton, "Micro" (2011)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]