[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
GNU AS bug?
From: |
Almos Rajnai |
Subject: |
GNU AS bug? |
Date: |
Sun, 01 Jun 2003 11:01:14 -0700 |
Hello Dear Support,
I am involved in AmigaOS4 development in code very deep asm coding.
We had been encouraged to use GNU packages (because of its
completeness as a toolchain), therefore I had to convert my asm
sources to GAS format.
While I fought with the macro conversions (I have tons of code
generating macros) I found a bug(?):
GAS swallows some constants in .if structures. Please have a look at
the attached sources and listings.
I found a workaround as you can see in gasbug_corr.asm source, but it
was quite annoying, especially in nested macros to found where the
problem is.
I tried every versions I had and all behaved the very same. (I found
first in 2.9.1.)
So is it a "bug" or a "feature"? :)
I hope my error report will help.
Bye,
Almos Rajnai
--
- Rachy of Bi0Hazard---PowerAmiga owner -
-- Project Petunia - Flamingo ---
----- http://amigos.amiga.hu/rachy/ -----
-- e-mail: address@hidden - ICQ:16342960 ---
--------- Phone:+36 20 9891489 ----------
The following section of this message contains a file attachment
prepared for transmission using the Internet MIME message format.
If you are using Pegasus Mail, or any another MIME-compliant system,
you should be able to save it or view it from within your mailer.
If you cannot, please ask your system administrator for assistance.
---- File information -----------
File: gasbug.asm
Date: 1 Jun 2003, 10:33
Size: 85 bytes.
Type: Program-source
gasbug.asm
Description: Binary data
GAS LISTING gasbug.asm page 1
1
2 .set TFLAG_C, 1
3
4 .macro check
5
6 .if (0 & TFLAG_C)
7 .endif
8
9 .endm
10
11 .text
12 check
12 > .if (0&)
12 > .endif
13
The following section of this message contains a file attachment
prepared for transmission using the Internet MIME message format.
If you are using Pegasus Mail, or any another MIME-compliant system,
you should be able to save it or view it from within your mailer.
If you cannot, please ask your system administrator for assistance.
---- File information -----------
File: gasbug_corr.asm
Date: 1 Jun 2003, 10:33
Size: 87 bytes.
Type: Program-source
gasbug_corr.asm
Description: Binary data
GAS LISTING gasbug_corr.asm page 1
1
2 .set TFLAG_C, 1
3
4 .macro check
5
6 .if (0 & (TFLAG_C))
7 .endif
8
9 .endm
10
11 .text
12 check
12 > .if (0&(TFLAG_C))
12 > .endif
13
- GNU AS bug?,
Almos Rajnai <=