]> git.ipfire.org Git - thirdparty/gcc.git/commit
Further use of mod_scope in modified_type_die
authorTom Tromey <tromey@adacore.com>
Wed, 21 Aug 2024 17:46:52 +0000 (11:46 -0600)
committerTom Tromey <tromey@adacore.com>
Tue, 1 Apr 2025 16:41:34 +0000 (10:41 -0600)
commit2fd74c790556a3de6c42efa564781aa2ac0e3596
treec7b54d78680b99f18536dc2342982b7bef835b86
parent01acd453d89ff5e414fade2dfeeae1f652143376
Further use of mod_scope in modified_type_die

I am working on some changes to GNAT to emit hierarchical DWARF --
i.e., where entities will have simple names nested in a DW_TAG_module.

While working on this I found a couple of paths in modified_type_die
where "mod_scope" should be used, but is not.  I suspect these cases
are only reachable by Ada code, as in both spots (subrange types and
base types), I believe that other languages don't generally have named
types in a non-top-level scope, and in these other situations,
mod_scope will still be correct.

gcc

* dwarf2out.cc (modified_type_die): Use mod_scope for
ranged types, base types, and array types.
gcc/dwarf2out.cc