]> git.ipfire.org Git - thirdparty/gcc.git/commit
Use DW_TAG_module for Ada
authorTom Tromey <tromey@adacore.com>
Thu, 18 Apr 2024 15:08:23 +0000 (09:08 -0600)
committerTom Tromey <tromey@adacore.com>
Fri, 17 May 2024 19:08:08 +0000 (13:08 -0600)
commit9b6acf5357818ce7ff234c504ed79078a06d0e0f
tree44b13707d3ff99519924e917a573dc5afb78b39a
parent770657d02c986c8724214dba51f21bb3c299ebae
Use DW_TAG_module for Ada

DWARF is not especially clear on the distinction between
DW_TAG_namespace and DW_TAG_module, but I think that DW_TAG_module is
more appropriate for Ada.  This patch changes the compiler to do this.
Note that the Ada compiler does not yet create NAMESPACE_DECLs.

gcc

* dwarf2out.cc (gen_namespace_die): Use DW_TAG_module for Ada.
gcc/dwarf2out.cc