sem_prag.adb (Analyze_Global_Item): Move the check concerning the use of volatile...
authorHristian Kirtchev <kirtchev@adacore.com>
Mon, 24 Feb 2014 16:32:04 +0000 (16:32 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Mon, 24 Feb 2014 16:32:04 +0000 (17:32 +0100)
commitec77b14454cfb80c70a0b17b7ced31c8956af30b
tree939fc74fa146ce33b7c21e0acfb828e61c831b1f
parent32bba3c9d848935dbec4b070093574a34b0817a4
sem_prag.adb (Analyze_Global_Item): Move the check concerning the use of volatile objects as global items in a...

2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>

* sem_prag.adb (Analyze_Global_Item): Move the check concerning
the use of volatile objects as global items in a function to
the variable related checks section.
* sem_util.adb (Async_Readers_Enabled): Directly call
Has_Enabled_Property.
(Async_Writers_Enabled): Directly call Has_Enabled_Property.
(Effective_Reads_Enabled): Directly call Has_Enabled_Property.
(Effective_Writes_Enabled): Directly call Has_Enabled_Property.
(Has_Enabled_Property): Rename formal parameter State_Id to Item_Id.
Update the comment on usage. State_Has_Enabled_Property how handles
the original logic of the routine. Add processing for variables.
(State_Has_Enabled_Property): New routine.
(Variable_Has_Enabled_Property): New routine.

From-SVN: r208077
gcc/ada/ChangeLog
gcc/ada/sem_prag.adb
gcc/ada/sem_util.adb