Next: , Previous: Running gnatelim, Up: Reducing the Size of Ada Executables with gnatelim

7.2.3 Correcting the List of Eliminate Pragmas

In some rare cases gnatelim may try to eliminate subprograms that are actually called in the program. In this case, the compiler will generate an error message of the form:

     file.adb:106:07: cannot call eliminated subprogram "My_Prog"

You will need to manually remove the wrong Eliminate pragmas from the gnat.adc file. You should recompile your program from scratch after that, because you need a consistent gnat.adc file during the entire compilation.