This is the mail archive of the
binutils-cvs@sources.redhat.com
mailing list for the binutils project.
src/gas ChangeLog macro.c macro.h read.c tests ...
- From: jbeulich at sourceware dot org
- To: binutils-cvs at sources dot redhat dot com
- Date: 25 Apr 2005 06:43:47 -0000
- Subject: src/gas ChangeLog macro.c macro.h read.c tests ...
CVSROOT: /cvs/src
Module name: src
Changes by: jbeulich@sourceware.org 2005-04-25 06:43:46
Modified files:
gas : ChangeLog macro.c macro.h read.c
gas/testsuite : ChangeLog
gas/testsuite/gas/macros: badarg.l badarg.s
Log message:
gas/
2005-04-25 Jan Beulich <jbeulich@novell.com>
* macro.c (macro_expand_body): Replace locals indicator parameters
with actual macro_entry. New local variables macro_line and err.
Don't return when encountering an error, just record the fact.
Detect local symbol name colliding with parameter. Track line number
inside of macro expansion.
(do_formals): Move local variable name to wider scope. Check
parameter of the same name doesn't already exist. In MRI mode, also
check it doesn't collide with the argument count pseudo-parameter).
(define_macro): Add file and line number parameters. Remove local
variable namestr. New local variable error. Initialize macro_entry
members file, line, and name. Don't return when encountering an
error, just record the fact. Use %s in some diagnostics for read.c
to insert the macro name. Free macro_entry on error.
(macro_expand): Pass macro_entry to macro_epand_body. Don't return
when encountering an error, just record the fact.
(expand_irp): Don't return when encountering an error, just record
the fact.
* macro.h (macro_struct): New members name, file, and line.
(define_macro): Add file and line number parameters.
* read.c (s_macro): Pass file and line to define_macro. Tag warning
regarding pseudo-op redefinition with the file/line that macro
definition started at.
gas/testsuite/
2005-04-25 Jan Beulich <jbeulich@novell.com>
* gas/macros/badarg.s: Add tests for collisions between/among macro
parameters and local symbols.
* gas/macros/badarg.l: Adjust.
Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gas/ChangeLog.diff?cvsroot=src&r1=1.2501&r2=1.2502
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gas/macro.c.diff?cvsroot=src&r1=1.31&r2=1.32
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gas/macro.h.diff?cvsroot=src&r1=1.11&r2=1.12
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gas/read.c.diff?cvsroot=src&r1=1.97&r2=1.98
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gas/testsuite/ChangeLog.diff?cvsroot=src&r1=1.837&r2=1.838
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gas/testsuite/gas/macros/badarg.l.diff?cvsroot=src&r1=1.1&r2=1.2
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gas/testsuite/gas/macros/badarg.s.diff?cvsroot=src&r1=1.1&r2=1.2