gnupic: Re:gpasm segfaults (11) when compiling mpasm code


Previous by date: 18 Dec 2014 16:18:42 -0000 gpasm segfaults (11) when compiling mpasm code, Kustaa Nyholm
Next by date: 18 Dec 2014 16:18:42 -0000 Re:gpasm segfaults (11) when compiling mpasm code, Kustaa Nyholm
Previous in thread:
Next in thread: 18 Dec 2014 16:18:42 -0000 Re:gpasm segfaults (11) when compiling mpasm code, Kustaa Nyholm

Subject: Re:gpasm segfaults (11) when compiling mpasm code
From: Joe Pfeiffer ####@####.####
Date: 18 Dec 2014 16:18:42 -0000
Message-Id: <21650.65117.770499.898635@pfeifferfamily.net>

I just tried it on a Linux box, and I can verify that it happens there
too.  I poked around a little, and found that the segfault happens at
line 237 of parse.y, when parsing the macro at line 75 of boot.inc:

UD_INIT	macro
	endm
UD_TX	macro	BYTE
	endm
UD_TXB	macro	BYTE
	endm

I stuck an instruction in the macro and it segfaulted in the second
macro; I stuck an instruction in that one and it stopped segfaulting:

UD_INIT	macro
	movlw	0
	endm
UD_TX	macro	BYTE
	movlw	0
	endm
UD_TXB	macro	BYTE
	endm

(that's right, I didn't need an instruction in the third empty macro).

So that's a workaround at some level....
-- 
Joseph J. Pfeiffer, Jr., Ph.D.                 http://pfeifferfamily.net/
1440 Tierra del Sol Dr                         575.525.2764 (H)
Las Cruces, NM 88007                           575.496.3501 (C)

Previous by date: 18 Dec 2014 16:18:42 -0000 gpasm segfaults (11) when compiling mpasm code, Kustaa Nyholm
Next by date: 18 Dec 2014 16:18:42 -0000 Re:gpasm segfaults (11) when compiling mpasm code, Kustaa Nyholm
Previous in thread:
Next in thread: 18 Dec 2014 16:18:42 -0000 Re:gpasm segfaults (11) when compiling mpasm code, Kustaa Nyholm


Powered by ezmlm-browse 0.20.