Skip to content
Snippets Groups Projects
  • Piotr Trojanek's avatar
    4a555bfe
    ada: Remove leftover code for counting protected entries · 4a555bfe
    Piotr Trojanek authored
    We used to count protected entries by iterating over component
    declarations, but then switched to iterating over entities and
    left some code that is no longer needed. Cleanup; semantics is
    unaffected (maybe except fixing an assertion failure in developer
    builds when there is pragma among entry family declarations).
    
    gcc/ada/
    
    	* exp_ch9.adb
    	(Build_Entry_Count_Expression): Remove loop over component declaration;
    	consequently remove a parameter that is no longer used; adapt callers.
    	(Make_Task_Create_Call): Refine type of a local variable.
    4a555bfe
    History
    ada: Remove leftover code for counting protected entries
    Piotr Trojanek authored
    We used to count protected entries by iterating over component
    declarations, but then switched to iterating over entities and
    left some code that is no longer needed. Cleanup; semantics is
    unaffected (maybe except fixing an assertion failure in developer
    builds when there is pragma among entry family declarations).
    
    gcc/ada/
    
    	* exp_ch9.adb
    	(Build_Entry_Count_Expression): Remove loop over component declaration;
    	consequently remove a parameter that is no longer used; adapt callers.
    	(Make_Task_Create_Call): Refine type of a local variable.