]> gcc.gnu.org Git - gcc.git/commit
ada: Fix Ada representation of r_debug and link_map types
authorMarc Poulhiès <poulhies@adacore.com>
Thu, 12 Jan 2023 15:13:45 +0000 (16:13 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 16 May 2023 08:30:57 +0000 (10:30 +0200)
commit2ffa7a68401b0f40360f7bd3dfcecc8e34ff7c14
tree436dcdd9043becb9696bfa7a2a2eca46507f0f68
parent6c0b94efaa811e7234c9ae790927d3741542935f
ada: Fix Ada representation of r_debug and link_map types

Both record types need to have their components 'aliased' to match their
C version. The mismatch could be observed when using LTO:

  warning: type of 'r_debug' does not match original declaration
       [-Wlto-type-mismatch]

  /usr/include/link.h:66:23: note: type 'struct r_debug' should match
  type 'struct  system__traceback__symbolic__module_name__build_...
   ...cache_for_all_modules__r_debug_type'

gcc/ada/

* libgnat/s-tsmona__linux.adb (link_map, r_debug_type): Add
'aliased' on all components.
gcc/ada/libgnat/s-tsmona__linux.adb
This page took 0.067337 seconds and 5 git commands to generate.