public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* RFA/PATCH: gas support for $ prefix for hex literals
@ 2000-06-22  8:36 Frank Ch. Eigler
  2000-06-23  3:27 ` Alan Modra
  0 siblings, 1 reply; 2+ messages in thread
From: Frank Ch. Eigler @ 2000-06-22  8:36 UTC (permalink / raw)
  To: binutils; +Cc: Nick Clifton

Hi -

I believe the following patch is a reasonable way to implement support
for `$'-prefixing for hexadecimal literals.  (For the target of my interest,
`$' chars won't appear in identifiers.)  May I commit?  Comments?

- FChE

2000-06-22  Frank Ch. Eigler  <fche@redhat.com>

	* expr.c (operand): Permit $hex literals if LITERAL_PREFIXDOLLAR_HEX
	is defined.

Index: expr.c
===================================================================
RCS file: /cvs/src/src/gas/expr.c,v
retrieving revision 1.17
diff -c -p -r1.17 expr.c
*** expr.c	2000/06/19 01:22:39	1.17
--- expr.c	2000/06/22 15:35:41
*************** operand (expressionP)
*** 820,825 ****
--- 820,831 ----
                          expressionP);
        break;
  
+ #ifdef LITERAL_PREFIXDOLLAR_HEX
+     case '$':
+       integer_constant (16, expressionP);
+       break;
+ #endif
+ 
      case '0':
        /* non-decimal radix */
  

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: RFA/PATCH: gas support for $ prefix for hex literals
  2000-06-22  8:36 RFA/PATCH: gas support for $ prefix for hex literals Frank Ch. Eigler
@ 2000-06-23  3:27 ` Alan Modra
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Modra @ 2000-06-23  3:27 UTC (permalink / raw)
  To: Frank Ch. Eigler; +Cc: binutils, Nick Clifton

On Thu, 22 Jun 2000, Frank Ch. Eigler wrote:

> May I commit?  Comments?

Yes.  Looks good to me.

Regards, Alan Modra
-- 
Linuxcare.  Support for the Revolution.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-06-23  3:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-06-22  8:36 RFA/PATCH: gas support for $ prefix for hex literals Frank Ch. Eigler
2000-06-23  3:27 ` Alan Modra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).