[Ada] Fix an ICE on instantiated subprogram with -gnatc
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 11 Dec 2018 11:09:41 +0000 (11:09 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Tue, 11 Dec 2018 11:09:41 +0000 (11:09 +0000)
commit56bad7dbfb28ef984d23ff9f69de5db431d02a15
tree0ff7eb418285fe6af1d3921a51cbadc66c815f63
parentacbdd83d73ce56d1367581e1cbd78f85e9b4b0bf
[Ada] Fix an ICE on instantiated subprogram with -gnatc

The following should compile quietly:

$ gcc -c p-proc.ads -gnatc

procedure P.Proc is new G;

with Q;

package P is

  generic procedure G;

end P;

with System;
with Unchecked_Conversion;

package Q is

  generic package Inner_G is

    type T is access all Integer;

    function Cnv is new Unchecked_Conversion (System.Address, T);

  end Inner_G;

end Q;

2018-12-11  Eric Botcazou  <ebotcazou@adacore.com>

gcc/ada/

* gcc-interface/trans.c (elaborate_all_entities_for_package):
Skip aliasing subprograms.

From-SVN: r266984
gcc/ada/ChangeLog
gcc/ada/gcc-interface/trans.c