🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #5951

Numeric 'local' label in assembler ERROR

#5951
From: Kenneth R. (Randy) Lewis
Date: Sun, 12 Jan 1997 00:00
37 lines
2351 bytes
I have some hand-written assembler (68k) that uses a numeric 'local'
label, and a refernce to it.  Sample below:
--------------------------------------------------------
Line#  0124         ..
Line#  0125         ..
Line#  0126         subl    #_edata,d0
Line#  0127         lsrl    #2,d0
Line#  0128 1:      clrl    a0@+
Line#  0129         dbra    d0, 1b
Line#  0130         ..
Line#  0131         ..
-------------------------------------------------------XXX
Actual command line was:

make
cc -x assembler-with-cpp -traditional-cpp -D_LOCORE -I. -I../../../../arch -I../../../.. -DM68030
 -DFPCOPROC -DCC130 -DTIMEZONE="0" -DDST="0" -DDDB -DFFS -DSYSVSEM -DSYSVMSG -DSYSVSHM -DKTRACE
 -DCOMPAT_43 -DFIFO -DDEVPAGER -DSWAPPAGER -DCOMPAT_SUNOS -D_KERNEL -Dcc130 -c ../../cc130/locore.s
./../cc130/locore.s: Assembler messages:
./../cc130/locore.s:128: Error: Rest of line ignored. First ignored character is `1'.   <---- :(
./../cc130/locore.s:129: Error: parse error -- statement `dbra d0,1b' ignored           <---- :(
-------------------------------------------------------------------------------------------------XXX

I've scanned (not exhaustively) the Changelog (and Changelog.1), NOTES, NEWS...practically
everywhere and can't find a thing about this error.

The CYGNUS On-line Technical Reference (which by the way is EXCELLENT!) affirms that local
numeric labels 1...9 followed by a ":" in the form N: is OK and only states that the current
'C' compiler doesn't emit these guys.

These local numeric lables have been around for a while, and worked just fine under the
1.92-ish assembler. Now......

What gives?

Randy
Technical Details
Message-ID: <32D95223.6A24@mindspring.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 113d02,9c423fa27c390283,start
X-Google-Attributes: gid113d02,public
From: "Kenneth R. (Randy) Lewis" <krlewis@mindspring.com>
Subject: Numeric 'local' label in assembler ERROR
Date: 1997/01/12
Message-ID: <32D95223.6A24@mindspring.com>
X-Deja-AN: 209398883
sender: bug-gcc-request@prep.ai.mit.edu
x-server-date: 12 Jan 1997 21:04:45 GMT
content-type: text/plain; charset=us-ascii
organization: RTMX Incorporated
x-gateway: relay7.UU.NET from bug-gcc to gnu.gcc.bug; Sun, 12 Jan 1997 16:07:44 EST
mime-version: 1.0
reply-to: krlewis@mindspring.com
newsgroups: gnu.gcc.bug
x-mailer: Mozilla 3.01Gold (WinNT; I)