]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Keep source locations for inlined subprograms from predefined units
authorPiotr Trojanek <trojanek@adacore.com>
Fri, 17 Oct 2025 08:33:44 +0000 (10:33 +0200)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Mon, 3 Nov 2025 14:15:17 +0000 (15:15 +0100)
commit0c320ec602c1cc2d700925d0163539b18268fc60
tree34361316030d8f7c38134cad0148bc7ff3f50c49
parent2671814409b19e9ce90c03e6837e21ae5cf085f1
ada: Keep source locations for inlined subprograms from predefined units

Frontend inlining, which is now deprecated and only enabled with switch -gnatN
is used, used to reset source locations for subprograms from predefined units.
This was a workaround to prevent the debugger from visiting internal code in
Ada.Tags, but this problem no longer occurs (even when switch -gnatN is used)
and is no longer needed. This patch removes it, because it confused
compile-time evaluation, which makes use of source locations to recognize code
within IF statements.

gcc/ada/ChangeLog:

* inline.adb (Process_Sloc): Remove.
gcc/ada/inline.adb