bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gas/16908] #line directives are ignored inside macros


From: cvs-commit at gcc dot gnu.org
Subject: [Bug gas/16908] #line directives are ignored inside macros
Date: Tue, 13 Dec 2022 08:12:11 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=16908

--- Comment #6 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The master branch has been updated by Jan Beulich <jbeulich@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=969b9a36506bfb386f8ce30f88f1a6a6ebbaca6e

commit 969b9a36506bfb386f8ce30f88f1a6a6ebbaca6e
Author: Jan Beulich <jbeulich@suse.com>
Date:   Tue Dec 13 09:11:53 2022 +0100

    gas: re-work line number tracking for macros and their expansions

    The PR gas/16908 workaround aimed at uniformly reporting line numbers
    to reference macro invocation sites. As mentioned in a comment this may
    be desirable for small macros, but often isn't for larger ones. As a
    first step improve diagnostics to report both locations, while aiming at
    leaving generated debug info unaltered.

    Note that macro invocation context is lost for any diagnostics issued
    only after all input was processed (or more generally for any use of
    as_*_where(), as the functions can't know whether the passed in location
    is related to [part of] the present stack of locations). To maintain the
    intended workaround behavior for PR gas/16908, a new as_where() is
    introduced to "look through" macro invocations, while the existing
    as_where() is renamed (and used in only very few places for now). Down
    the road as_where() will likely want to return a list of (file,line)
    pairs.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]