]> gcc.gnu.org Git - gcc.git/commit
sem_elim.ads (Check_For_Eliminated_Subprogram): New procedure for checking for refere...
authorGary Dismukes <dismukes@adacore.com>
Mon, 20 Apr 2009 09:37:30 +0000 (11:37 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Mon, 20 Apr 2009 09:37:30 +0000 (11:37 +0200)
commit16212e894ae04b6de4d10d6992c2eabe1d6866ac
tree067b6fb3d3db09d6874a82087fceda2ef195ae17
parent6e55ac7a64a64ac0b066e5fc67969fa47a8f0e89
sem_elim.ads (Check_For_Eliminated_Subprogram): New procedure for checking for references to eliminated subprograms that should...

2009-04-20  Gary Dismukes  <dismukes@adacore.com>

* sem_elim.ads (Check_For_Eliminated_Subprogram): New procedure for
checking for references to eliminated subprograms that should be
flagged.
(Eliminate_Error_Message): Update comment to say "references" rather
than "calls" (since attribute cases are handled here as well).

* sem_elim.adb (Check_For_Eliminated_Subprogram): New procedure for
checking for references to eliminated subprograms that should be
flagged.  Add with and use of Sem and Sem_Util.

* sem_res.adb (Resolve_Call): Reject calls to eliminated subprograms.
Add with and use of Sem_Elim.

* sem_attr.adb (Analyze_Access_Attribute): Reject access attributes
applied to eliminated subprograms.
(Analyze_Attribute): Reject 'Address and 'Code_Address applied to
eliminated subprograms.
Add with and use of Sem_Elim.

* sem_disp.adb (Check_Dispatching_Call): Remove error check for calls
to eliminated subprograms, now handled during Resolve_Call.
Remove with and use of Sem_Elim.

* exp_disp.adb (Make_DT): Get Ultimate_Alias of primitive before
testing Is_Eliminated, for proper handling of primitive derived from
eliminated subprograms.

From-SVN: r146385
gcc/ada/exp_disp.adb
gcc/ada/sem_attr.adb
gcc/ada/sem_disp.adb
gcc/ada/sem_elim.adb
gcc/ada/sem_elim.ads
gcc/ada/sem_res.adb
This page took 0.06201 seconds and 5 git commands to generate.