This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]