public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Ian Lance Taylor <ian@zembu.com>
To: dh@ctechnologies.se
Cc: ecos-discuss@sourceware.cygnus.com
Subject: Re: [ECOS] Macro problems in arm-elf-as
Date: Tue, 15 Jun 1999 09:45:00 -0000	[thread overview]
Message-ID: <19990615164519.8787.qmail@daffy.airs.com> (raw)
In-Reply-To: <37663832.4CD56748@ctechnologies.se>

   Date: Tue, 15 Jun 1999 13:25:38 +0200
   From: Dan Hovang <dh@ctechnologies.se>

   It seems like the arm-elf-as macro routines are broken. Following
   code works in cygwin32 as aswell as in binutils-2.9.1 compiled under
   RedHat Linux 6.0, but not in arm-elf-as as in ecosSWtools-arm-990321.

	   .macro test, t1, t2
	   .int \t1
   label\@:
	   .int \t2
	   .endm

	   test 1, 2
	   test 3, 4
	   test 5, 6

   bash-2.02$ arm-elf-as test.S -o test
   test.S: Assembler messages:
   test.S:8: Error: bad instruction `label\'
   test.S:9: Error: bad instruction `label\'
   test.S:10: Error: bad instruction `label\'

   I've browsed some sources in the ecosSWtools and compared them against
   binutils (read.c and macro.c) but I've not been able to locate the
   problem. Any ideas, anyone?

The problem is that `@' is the comment character for ARM assembly
code.  That takes precedence over the special meaning of `\@' in a
macro.  The third line in your test case is being seen as just
`label\'.  The `@' and everything following it are being treated as a
comment.

I unfortunately don't have any clever suggestions.

Ian

  reply	other threads:[~1999-06-15  9:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-15  4:26 Dan Hovang
1999-06-15  9:45 ` Ian Lance Taylor [this message]
1999-06-15 14:40   ` The Utz Family
1999-06-15 15:18     ` Ian Lance Taylor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=19990615164519.8787.qmail@daffy.airs.com \
    --to=ian@zembu.com \
    --cc=dh@ctechnologies.se \
    --cc=ecos-discuss@sourceware.cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).