ada: Atomic_Synchronization is not a user-visible check
Remove all user-level documentation of the check name "Atomic_Synchronization". The documentation was confusing because this check should never be used in source code, and because it raises the question of whether All_Checks applies to it (it does not). Change the name Atomic_Synchronization to be _Atomic_Synchronization (with a leading underscore) so that it cannot be used in source code. This "check" is not really a check at all; it is used only internally in the implementation of Disable/Enable_Atomic_Synchronization, because the placement and scope of these pragmas match pragma Suppress. gcc/ada/ChangeLog: * doc/gnat_rm/implementation_defined_characteristics.rst: Remove Atomic_Synchronization. * doc/gnat_ugn/building_executable_programs_with_gnat.rst: Likewise. * doc/gnat_rm/implementation_defined_pragmas.rst: DRY. Consolidate documentation of Disable/Enable_Atomic_Synchronization. * checks.adb: Comment fix. * exp_util.ads: Likewise. * targparm.ads: Likewise. * types.ads: Likewise. * gnat1drv.adb: Likewise. DRY. * sem_prag.adb (Process_Disable_Enable_Atomic_Sync): Change name of Atomic_Synchronization to start with underscore. (Process_Suppress_Unsuppress): No need to check Comes_From_Source for Atomic_Synchronization anymore; _Atomic_Synchronization can never come from source. (Anyway, it shouldn't be ignored; it should be an error.) * snames.ads-tmpl (Atomic_Synchronization): Change name to start with underscore. * switch-c.adb (Scan_Front_End_Switches): Minor cleanup: Use 'in'. * gnat_rm.texi: Regenerate. * gnat_ugn.texi: Regenerate.
Showing
- gcc/ada/checks.adb 4 additions, 2 deletionsgcc/ada/checks.adb
- gcc/ada/doc/gnat_rm/implementation_defined_characteristics.rst 6 additions, 6 deletions...da/doc/gnat_rm/implementation_defined_characteristics.rst
- gcc/ada/doc/gnat_rm/implementation_defined_pragmas.rst 12 additions, 23 deletionsgcc/ada/doc/gnat_rm/implementation_defined_pragmas.rst
- gcc/ada/doc/gnat_ugn/building_executable_programs_with_gnat.rst 2 additions, 4 deletions...a/doc/gnat_ugn/building_executable_programs_with_gnat.rst
- gcc/ada/exp_util.ads 3 additions, 3 deletionsgcc/ada/exp_util.ads
- gcc/ada/gnat1drv.adb 1 addition, 4 deletionsgcc/ada/gnat1drv.adb
- gcc/ada/gnat_rm.texi 20 additions, 29 deletionsgcc/ada/gnat_rm.texi
- gcc/ada/gnat_ugn.texi 4 additions, 6 deletionsgcc/ada/gnat_ugn.texi
- gcc/ada/sem_prag.adb 6 additions, 13 deletionsgcc/ada/sem_prag.adb
- gcc/ada/snames.ads-tmpl 3 additions, 3 deletionsgcc/ada/snames.ads-tmpl
- gcc/ada/switch-c.adb 1 addition, 3 deletionsgcc/ada/switch-c.adb
- gcc/ada/targparm.ads 3 additions, 3 deletionsgcc/ada/targparm.ads
- gcc/ada/types.ads 1 addition, 2 deletionsgcc/ada/types.ads
Loading
Please register or sign in to comment