bug-gnu-utils
[Top][All Lists]
Advanced

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

GNU as bug (?): expression calculation with list-option (as -a)


From: Wolfgang Moser
Subject: GNU as bug (?): expression calculation with list-option (as -a)
Date: Fri, 22 Aug 2003 17:08:17 +0200 (DFT)

-----BEGIN PGP SIGNED MESSAGE-----

Hello,

recently I ran over a problem with GNU as configured for the
Atmel AVR, the version is:

   GNU assembler version 2.14 (avr) using BFD version 2.14 20030612
   GNU assembler 2.14 20030612
   Copyright 2002 Free Software Foundation, Inc.
   This program is free software; you may redistribute it under the terms of
   the GNU General Public License.  This program has absolutely no warranty.
   This assembler was configured for a target of `avr'.

   (binutils-2.14 were configured with:  --target=avr)


The assembler behaves differently on the calculation of
expressions, if any of the list options is used. I attached a
piece of code, that demonstrates the problem. If assembling it
with:

  #> avr-as atmel-asbr.s

anything wents fine and an  a.out  file is generated. If
additionally one of the list options is used, the assembler
bails out and doesn't produce an  a.out  file:

  #> avr-as atmel-asbr.s -al=atmel-asbr.lst
  atmel-asbr.s: Assembler messages:
  atmel-asbr.s:33: Error: non-constant expression in ".if" statement
  wrong number of entries
  atmel-asbr.s:35: Error: .err encountered
  atmel-asbr.s:42: Error: non-constant expression in ".if" statement


Is this problem the same as described in:
  http://sources.redhat.com/ml/bug-binutils/2002-q2/msg00412.html
and can it not be fixed yet until a rewrite of the gas listing
code occurs?


Womo

- -- 
  ------ to obtain more infos about me, look up the page  ------
      ----     http://www.gm.fh-koeln.de/~womo/mail     ----

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
Charset: noconv

iQCVAwUBP0Yj1Fjej+ZA1Me5AQEGLwQAnpdfl38Zt8C+l3V1ZeNo0qCkxIYd7v9b
tS9ztpXxx6gUVbqGuyFtDtDc7r6logsH7X214Bq0GGSUO4DYhb/m0fpP0xhMShtA
WRL0uP8XOQ27wH1K8rVRZAWWCKWugCOIMCkBzGTPlwEp9MrKpqmqdZa6EsghT+Nj
T9pBwtikhUU=
=ILJi
-----END PGP SIGNATURE-----

Attachment: atmel-asbr.s
Description: Text document


reply via email to

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