]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Do not build dispatch tables for generics
authorRonan Desplanques <desplanques@adacore.com>
Wed, 5 Mar 2025 15:18:49 +0000 (16:18 +0100)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Mon, 9 Jun 2025 06:32:08 +0000 (08:32 +0200)
commit31b7b7518e5842509e8fdbef6dc38e6a4ce28396
tree71fc4a405409054a0e7251c4059d0d4fdfce0537
parent7f31b28fe199e35a9f19cf1b15e632880a6d7706
ada: Do not build dispatch tables for generics

Before this patch, Build_Static_Dispatch_Tables was called on generic
package bodies. While this has not been proved to cause any actual bug,
it was clearly inappropriate and also useless, so this patch removes
those calls.

gcc/ada/ChangeLog:

* sem_ch10.adb (Analyze_Compilation_Unit): Check for generic bodies.
* exp_disp.adb (Build_Dispatch_Tables): Likewise.
gcc/ada/exp_disp.adb
gcc/ada/sem_ch10.adb