From: jbeulich Date: Tue, 8 Mar 2005 13:59:20 +0000 (+0000) Subject: gas/ X-Git-Tag: pre_wait_sig_exit~2705 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=9085112beb4d9dbeeb9f2e4d98075adc41512545;p=pf3gnuchains%2Fpf3gnuchains4x.git gas/ 2004-03-08 Jan Beulich * doc/as.texinfo: Add sentence to indicate redefining a macro is an error, and point to .purgem documentation if someone really needs re-definitions. * NEWS: Mention macro redefinition is now an error. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 9aa62bcd12..4961d61b96 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,10 @@ +2004-03-08 Jan Beulich + + * doc/as.texinfo: Add sentence to indicate redefining a macro is an + error, and point to .purgem documentation if someone really needs + re-definitions. + * NEWS: Mention macro redefinition is now an error. + 2005-03-08 Jan Beulich * config/tc-ia64.c (emit_one_bundle): Track last slot user insn was diff --git a/gas/NEWS b/gas/NEWS index 293668c59d..dd636a3b91 100644 --- a/gas/NEWS +++ b/gas/NEWS @@ -1,5 +1,7 @@ -*- text -*- +* Redefinition of macros now results in an error. + * New command line option -mhint.b=[ok|warning|error] for IA64 targets. * New command line option -munwind-check=[warning|error] for IA64 diff --git a/gas/doc/as.texinfo b/gas/doc/as.texinfo index a22cb2a61d..124419c969 100644 --- a/gas/doc/as.texinfo +++ b/gas/doc/as.texinfo @@ -4838,8 +4838,10 @@ With that definition, @samp{SUM 0,5} is equivalent to this assembly input: Begin the definition of a macro called @var{macname}. If your macro definition requires arguments, specify their names after the macro name, separated by commas or spaces. You can supply a default value for any -macro argument by following the name with @samp{=@var{deflt}}. For -example, these are all valid @code{.macro} statements: +macro argument by following the name with @samp{=@var{deflt}}. You +cannot define two macros with the same @var{macname} unless it has been +subject to the @code{.purgem} directive (@xref{Purgem}.) between the two +definitions. For example, these are all valid @code{.macro} statements: @table @code @item .macro comm