[Bug gas/31255] keyword arguments do not work with .altmacro

2024-04-16 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31255

--- Comment #4 from Nick Clifton  ---
I have updated the example in the assembler documentation to make it clear that
the .altmacro pseudo-op is affecting the invocation of the macro, not the
definition.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/31255] keyword arguments do not work with .altmacro

2024-04-16 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=31255

--- Comment #3 from Sourceware Commits  ---
The master branch has been updated by Nick Clifton :

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=8c8de179c20bf5225a08599bee21a60fcde898fc

commit 8c8de179c20bf5225a08599bee21a60fcde898fc
Author: Nick Clifton 
Date:   Tue Apr 16 12:06:08 2024 +0100

Gas Doc: Update example of how .altmacro affects the interpretation of
macro arguments.

  PR 31255

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/31255] keyword arguments do not work with .altmacro

2024-04-12 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31255

Nick Clifton  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
   Assignee|unassigned at sourceware dot org   |nickc at redhat dot com
 Resolution|--- |FIXED
 CC||nickc at redhat dot com

--- Comment #2 from Nick Clifton  ---
Hi Seanga,

  Thanks for reporting this problem.

  I have checked in a small patch to update the assembler's documentation.  The
.altmacro entry now includes:

  'No passing arguments to macros based upon keyword assignment.'
 In altmacro mode arguments cannot be passed to macros by keyword
 assignment.

and the .macro entry includes:

 Note however that when operating in altmacro mode arguments
 can only be specified by position, not keyword.

  Thus for example:

   .altmacro
   .macro foo bar=1, baz=2
   .print "\bar \baz"
   .endm

   foo baz=3

  Will print:

   baz=3 2

  Rather than the expected:

   1 3

Cheers
  Nick

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/31255] keyword arguments do not work with .altmacro

2024-04-12 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=31255

--- Comment #1 from Sourceware Commits  ---
The master branch has been updated by Nick Clifton :

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=99daf56f4b4bf831bb29bffb79f2172f1b316cb9

commit 99daf56f4b4bf831bb29bffb79f2172f1b316cb9
Author: Nick Clifton 
Date:   Fri Apr 12 16:51:51 2024 +0100

Update description of macro keyword argument assignment in assembler
documentation.

  PR 31255

-- 
You are receiving this mail because:
You are on the CC list for the bug.