gas: don't ignore .linefile inside false conditionals
authorJan Beulich <jbeulich@suse.com>
Wed, 18 May 2022 07:37:00 +0000 (09:37 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 18 May 2022 07:37:00 +0000 (09:37 +0200)
commit43fe575c32f8d63e397280aa65e5fe39d587112e
tree18ed37cb49652a5e706e121f93bd6ecd29a5f8a0
parent2e55c34282273f69099bf90bc6d2f38959545e10
gas: don't ignore .linefile inside false conditionals

When assembling code previously pre-processed by a C compiler, long
enough comments may have been collapsed into "# <line> <file>"
constructs. If we skip these, line numbers (and possibly even file
names) will be off / wrong in both diagnostics and debug info.
gas/cond.c
gas/testsuite/gas/all/cond-2.l [new file with mode: 0644]
gas/testsuite/gas/all/cond-2.s [new file with mode: 0644]
gas/testsuite/gas/all/gas.exp