aboutsummaryrefslogtreecommitdiff
path: root/gas/input-scrub.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2022-12-16 09:01:14 +0100
committerJan Beulich <jbeulich@suse.com>2022-12-16 09:01:14 +0100
commit22a8433e00fd33efcb1fa4961eb826cd97f2cd8b (patch)
tree0ccd9c48c3a0b29a69264f07303924fae4500c03 /gas/input-scrub.c
parent689933867ad45487751a6bb411e69cd91ef24990 (diff)
downloadgdb-22a8433e00fd33efcb1fa4961eb826cd97f2cd8b.zip
gdb-22a8433e00fd33efcb1fa4961eb826cd97f2cd8b.tar.gz
gdb-22a8433e00fd33efcb1fa4961eb826cd97f2cd8b.tar.bz2
gas: restore Dwarf info generation after macro diagnostic adjustments
While 6fdb723799e2 ("gas: re-work line number tracking for macros and their expansions") was meant to leave generated Dwarf as is, it really didn't (and the testcase intended to catch that wasn't covering the case which broke). Its adjustment to buffer_and_nest() didn't go far enough, leading to the "linefile" directive inserted at the top to also be processed later in the PRĀ gas/16908 workaround (which clearly isn't intended - it's being put there for processing during macro expansion only). That unnoticed flaw in turn led me to work around it by a (suspicious to me already at the time) conditional in as_where().
Diffstat (limited to 'gas/input-scrub.c')
-rw-r--r--gas/input-scrub.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/gas/input-scrub.c b/gas/input-scrub.c
index 6791ef2..c967fad 100644
--- a/gas/input-scrub.c
+++ b/gas/input-scrub.c
@@ -564,9 +564,6 @@ as_where (unsigned int *linep)
do
{
- if (!saved->is_linefile)
- break;
-
if (expansion != expanding_macro)
/* Nothing. */;
else if (saved->logical_input_file != NULL