When a main subprogram had its CPU or priority specified first by an aspect
specification and then by a corresponding pragma, then the pragma was silently
ignored. Now such a pragma is rejected.
gcc/ada/ChangeLog:
* sem_ch13.adb (Analyze_Aspect_Specifications): Record aspect CPU and
Priority applied to subprogram as a representation item.
Discard_Node (RTE (RE_Activate_Tasks));
end if;
+ -- Record aspect specification as a representation item
+ -- to detect pragmas that would duplicate it.
+
+ Record_Rep_Item (E, Aspect);
+
-- Handling for these aspects in subprograms is complete
goto Continue;