sem_ch13.adb (Analyze_Aspect_Specifications): Aspect Depends is now a delayed aspect.
authorHristian Kirtchev <kirtchev@adacore.com>
Fri, 12 Apr 2013 12:52:32 +0000 (12:52 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Fri, 12 Apr 2013 12:52:32 +0000 (14:52 +0200)
commitfd8b40539cd4af7c08207dfdf61a98aea6deeab9
tree09735f28653f7fa5124ce0e81628fad32c72ccba
parentc2658843ea5068503078a7ac9b280179739bb17f
sem_ch13.adb (Analyze_Aspect_Specifications): Aspect Depends is now a delayed aspect.

2013-04-12  Hristian Kirtchev  <kirtchev@adacore.com>

* sem_ch13.adb (Analyze_Aspect_Specifications): Aspect
Depends is now a delayed aspect. The delay is required
due to the interplay between aspects Depends and Global.
(Check_Aspect_At_Freeze_Point): Add an entry for aspect Depends.
* sem_prag.adb: Reformat various error messages.
(Add_Item): New subsidiary routine.
(Analyze_Pragma): Add new variables
Global_Seen, Result_Seen, Subp_Inputs and Subp_Outputs. The
analysis of pragma Depends now has the capability to check
the proper mode and usage of subprogram inputs and outputs.
(Appears_In): New routine.
(Check_Function_Return): New routine.
(Check_Mode): New routine.
(Check_Usage): New routine.
(Collect_Subprogram_Inputs_Outputs): New routine.

From-SVN: r197900
gcc/ada/ChangeLog
gcc/ada/sem_ch13.adb
gcc/ada/sem_prag.adb