This patch adds support of assembler directive ".macro" and ".equ" to gtags-parser.
gtags-parser/asm_parse.y | 28 ++++++++++++++++++++++++++++
gtags-parser/asm_scan.l | 7 +++++--
2 files changed, 33 insertions(+), 2 deletions(-)
===== example =====
$ cat a.s
.equ PSW_IE,0x80
PSW_IE equ 0x80
.macro sti
or PSW_IE,psw
.endm
cli macro
and ~PSW_IE,psw
nop
nop
endm
$ global -f a.s
PSW_IE 1 a.s .equ PSW_IE,0x80
PSW_IE 2 a.s PSW_IE equ 0x80
sti 4 a.s .macro sti
cli 8 a.s cli macro
----
Hideki IWAMOTO [EMAIL PROTECTED]
pickup-macro-and-equ.patch
Description: Binary data
_______________________________________________ Bug-global mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-global
