bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gas/3130] New: Cannot get ASCII value of letter passed in parameter


From: markus+sw at gyger dot org
Subject: [Bug gas/3130] New: Cannot get ASCII value of letter passed in parameter
Date: 25 Aug 2006 12:23:32 -0000

gas 2.16.2 and earlier allowed to pass plain letters
to a macro where then the ASCII values of those could
be assigned to a symbol. E.g. with macros such as:

   .macro  ascii symbol string
   \symbol = 0
   .irp    quote, "'"
   .irpc   char, \string
   \symbol = \symbol << 8 | \quote\char
   .endr
   .endr
   .endm
or
   .macro  ascii symbol string quote="'"
   \symbol = 0
   .irpc   char, \string
   \symbol = \symbol << 8 | \quote\char
   .endr
   .endm

a call of

   ascii sym abcd

would result in the equivalent of

   sym = 'a << 24 | 'b << 16 | 'c << 8 | 'd

There doesn't seem to be an (even backwards compatible) way to do it in 2.17.

-- 
           Summary: Cannot get ASCII value of letter passed in parameter
           Product: binutils
           Version: 2.17
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gas
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: markus+sw at gyger dot org
                CC: bug-binutils at gnu dot org
 GCC build triplet: i386-pc-solaris2.10
  GCC host triplet: i386-pc-solaris2.10
GCC target triplet: h8300-elf


http://sourceware.org/bugzilla/show_bug.cgi?id=3130

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]