[96434] trunk/dports/lang/erlang

ryandesign at macports.org ryandesign at macports.org
Thu Aug 9 15:47:45 PDT 2012


Revision: 96434
          https://trac.macports.org/changeset/96434
Author:   ryandesign at macports.org
Date:     2012-08-09 15:47:45 -0700 (Thu, 09 Aug 2012)
Log Message:
-----------
erlang: fix comments in PPC assembly file so port can compile on PPC (#32649)

Modified Paths:
--------------
    trunk/dports/lang/erlang/Portfile

Added Paths:
-----------
    trunk/dports/lang/erlang/files/patch-erts_emulator_hipe_hipe_ppc_bifs.m4.diff

Modified: trunk/dports/lang/erlang/Portfile
===================================================================
--- trunk/dports/lang/erlang/Portfile	2012-08-09 22:43:28 UTC (rev 96433)
+++ trunk/dports/lang/erlang/Portfile	2012-08-09 22:47:45 UTC (rev 96434)
@@ -55,6 +55,7 @@
 # http://www.erlang.org/pipermail/erlang-bugs/2009-January/001171.html
 patchfiles      patch-toolbar.erl.diff \
                 patch-erts_emulator_Makefile.in.diff \
+                patch-erts_emulator_hipe_hipe_ppc_bifs.m4.diff \
                 patch-erts_configure.diff \
                 patch-disable_wx.diff
 

Added: trunk/dports/lang/erlang/files/patch-erts_emulator_hipe_hipe_ppc_bifs.m4.diff
===================================================================
--- trunk/dports/lang/erlang/files/patch-erts_emulator_hipe_hipe_ppc_bifs.m4.diff	                        (rev 0)
+++ trunk/dports/lang/erlang/files/patch-erts_emulator_hipe_hipe_ppc_bifs.m4.diff	2012-08-09 22:47:45 UTC (rev 96434)
@@ -0,0 +1,62 @@
+--- erts/emulator/hipe/hipe_ppc_bifs.m4.orig	2011-12-14 04:22:11.000000000 -0600
++++ erts/emulator/hipe/hipe_ppc_bifs.m4	2011-12-25 13:18:53.000000000 -0600
+@@ -32,12 +32,12 @@
+ 	.text
+ 	.p2align 2
+ 
+-define(TEST_GOT_MBUF,`LOAD r4, P_MBUF(P)	# `TEST_GOT_MBUF'
++define(TEST_GOT_MBUF,`LOAD r4, P_MBUF(P)	; `TEST_GOT_MBUF'
+ 	CMPI r4, 0
+ 	bne- 3f
+ 2:')
+ define(HANDLE_GOT_MBUF,`
+-3:	bl CSYM(nbif_$1_gc_after_bif)	# `HANDLE_GOT_MBUF'
++3:	bl CSYM(nbif_$1_gc_after_bif)	; `HANDLE_GOT_MBUF'
+ 	b 2b')
+ 
+ 
+@@ -62,7 +62,7 @@
+ 
+ 	/* Save caller-save registers and call the C function. */
+ 	SAVE_CONTEXT_BIF
+-	STORE	r4, P_ARG0(r3)		# Store BIF__ARGS in def_arg_reg[]
++	STORE	r4, P_ARG0(r3)		; Store BIF__ARGS in def_arg_reg[]
+ 	addi	r4, r3, P_ARG0
+ 	CALL_BIF($2)
+ 	TEST_GOT_MBUF
+@@ -92,7 +92,7 @@
+ 
+ 	/* Save caller-save registers and call the C function. */
+ 	SAVE_CONTEXT_BIF
+-	STORE	r4, P_ARG0(r3)		# Store BIF__ARGS in def_arg_reg[]
++	STORE	r4, P_ARG0(r3)		; Store BIF__ARGS in def_arg_reg[]
+ 	STORE	r5, P_ARG1(r3)
+ 	addi	r4, r3, P_ARG0
+ 	CALL_BIF($2)
+@@ -124,7 +124,7 @@
+ 
+ 	/* Save caller-save registers and call the C function. */
+ 	SAVE_CONTEXT_BIF
+-	STORE	r4, P_ARG0(r3)		# Store BIF__ARGS in def_arg_reg[]
++	STORE	r4, P_ARG0(r3)		; Store BIF__ARGS in def_arg_reg[]
+ 	STORE	r5, P_ARG1(r3)
+ 	STORE	r6, P_ARG2(r3)
+ 	addi	r4, r3, P_ARG0
+@@ -214,7 +214,7 @@
+ 
+ 	/* Save caller-save registers and call the C function. */
+ 	SAVE_CONTEXT_GC
+-	STORE	r4, P_ARG0(r3)		# Store BIF__ARGS in def_arg_reg[]
++	STORE	r4, P_ARG0(r3)		; Store BIF__ARGS in def_arg_reg[]
+ 	addi	r4, r3, P_ARG0
+ 	CALL_BIF($2)
+ 	TEST_GOT_MBUF
+@@ -244,7 +244,7 @@
+ 
+ 	/* Save caller-save registers and call the C function. */
+ 	SAVE_CONTEXT_GC
+-	STORE	r4, P_ARG0(r3)		# Store BIF__ARGS in def_arg_reg[]
++	STORE	r4, P_ARG0(r3)		; Store BIF__ARGS in def_arg_reg[]
+ 	STORE	r5, P_ARG1(r3)
+ 	addi	r4, r3, P_ARG0
+ 	CALL_BIF($2)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120809/d7d0ff98/attachment.html>


More information about the macports-changes mailing list