This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
as doesn't recognize "# line file"
- From: magro <magro at hotpop dot com>
- To: BINUTILS Archive <binutils at sources dot redhat dot com>
- Date: Tue, 28 Jan 2003 02:19:52 +0900
- Subject: as doesn't recognize "# line file"
Hello.
When I use as with cpp (by naming the source *.S and passing it to gcc),
as, when it outputs errors or warnings, it reports the name of a
temporary file (or {standard input} when gcc is invoked with -pipe).
Seems like as isn't recognizing the `# line "file"' generated by cpp.
Oh, by the way I'm using as-2.13.1 on i686-pc-linux-gnu, and
as-2.13.90 on i686-pc-cygwin.
e.g.:
gcc file.S
/tmp/ccZDcRWD.s: Assembler messages:
/tmp/ccZDcRWD.s:5: Error: `%al' not allowed with `movw'
e.g.2:
echo \
'# 1 file.S
movw %al, %al' > file.s
gcc file.s
file.s: Assembler messages:
file.s:2: Error: `%al' not allowed with `movw'
Is this how it's supposed to behave? According to the manual, `Using as',
it doesn't seem so, but I've never seen anyone say anything about it
(which makes me unsure if it's a bug or not).
Jun Inoue