]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Give a warning for huge imported objects
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 21 Aug 2025 08:21:59 +0000 (10:21 +0200)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Thu, 11 Sep 2025 09:10:50 +0000 (11:10 +0200)
commit7efa3b5b2fa1d5e21d6a7e6bf124ffc100501938
treeeebd380fee732f5bf054171093fd4c408afbdfac
parent88a389ac8664360aaf8b2a628df8da24b678daa8
ada: Give a warning for huge imported objects

This is a follow-up to a recent change, where a warning was implemented
for huge library-level objects.  However it is not given if the objects
are imported, although an indirection is also added for them under the
hood to match the export side.

gcc/ada/ChangeLog:

* gcc-interface/decl.cc (gnat_to_gnu_entity) <E_Variable>: Give a
warning for huge imported objects as well.
gcc/ada/gcc-interface/decl.cc