https://sourceware.org/bugzilla/show_bug.cgi?id=19499
Bug ID: 19499
Summary: as ignores .file directives when generating error
messages
Product: binutils
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: gas
Assignee: unassigned at sourceware dot org
Reporter: ruperts at broadcom dot com
Target Milestone: ---
The documentation at
https://sourceware.org/binutils/docs/as/Errors.html says:
If a logical file name has been given (see .file) it is used for the
filename, otherwise the name of the current input file is used. If a
logical line number was given (see .line) then it is used to
calculate the number printed, otherwise the actual line in the
current source file is printed.
However, consider this transcript:
~ $ as --version
GNU assembler (GNU Binutils for Debian) 2.25.90.20160101
Copyright (C) 2015 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `x86_64-linux-gnu'.
~ $ cat test.s
.file 1 "test.c"
some_nonsense_insn 1 2 3
~ $ as test.s -o test.o
test.s: Assembler messages:
test.s:2: Error: no such instruction: `some_nonsense_insn 1 2 3'
I would expect the last two lines to begin with "test.c" rather than
"test.s".
--
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils