as doesn't recognize "# line file"

Mon Jan 27 17:23:00 GMT 2003


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.

 gcc file.S
 /tmp/ccZDcRWD.s: Assembler messages:
 /tmp/ccZDcRWD.s:5: Error: `%al' not allowed with `movw'
 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

More information about the Binutils mailing list