[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/25275] New: Dollar labels do not work
From: |
sergey.belyashov at gmail dot com |
Subject: |
[Bug gas/25275] New: Dollar labels do not work |
Date: |
Fri, 13 Dec 2019 10:44:23 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=25275
Bug ID: 25275
Summary: Dollar labels do not work
Product: binutils
Version: 2.34 (HEAD)
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: gas
Assignee: unassigned at sourceware dot org
Reporter: sergey.belyashov at gmail dot com
Target Milestone: ---
Note: Dollar label is true temporary label which lives between two normal label
definition.
I trying to compile next Z80 code (z80-unknown-coff, target is not sufficient,
but DOLLAR_LOCAL_LABELS should be defined as 1 in target sources: tc-*.h and/or
te-*.h):
.text
.org 0
start:
di
jr 000100$
000100$:
jp .Lbegin
;
.Lbegin:
ld b,5
000100$:
inc a
jr z,000101$
djnz 000100$
ret
000101$:
ret
.end
$ LC_MESSAGES=C ../as-new -z80 -a test.s
test.s: Assembler messages:
test.s: Error: local label `"100" (instance number 3 of a dollar label)' is not
defined
GAS LISTING test.s page 1
1 .text
2 .org 0
3 start:
4 ???? F3 di
5 ???? 18 00 jr 000100$
6 000100$:
7 ???? C3 06 00 jp .Lbegin
8 ;
9 .Lbegin:
10 ???? 06 05 ld b,5
11 000100$:
12 ???? 3C inc a
13 ???? 28 03 jr z,000101$
14 ???? 10 FF djnz 000100$
15 ???? C9 ret
16 000101$:
17 ???? C9 ret
18 .end
GAS LISTING test.s page 2
DEFINED SYMBOLS
*ABS*:0000000000000000 fake
test.s:3 .text:0000000000000000 start
UNDEFINED SYMBOLS
L1003
Compiler does not known dollar-labels defined before use. Is it OK?
Moreover, I try to find any test for dollar-label usage, but it not present. So
this feature exists in sources but not tested anythere!
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug gas/25275] New: Dollar labels do not work,
sergey.belyashov at gmail dot com <=