summaryrefslogtreecommitdiff
path: root/gcc/ada/sem_ch6.adb
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2004-11-19 11:56:53 +0100
committerArnaud Charlet <charlet@gcc.gnu.org>2004-11-19 11:56:53 +0100
commitbc202b70061a5e8765d537d4222b25284b24361a (patch)
treebd2bdeb5f19ff29203c41b2c8b4fd854bcaa43aa /gcc/ada/sem_ch6.adb
parent1d571f3b00a155910504a2b219c77b839aebbb16 (diff)
downloadgcc-bc202b70061a5e8765d537d4222b25284b24361a.tar.gz
errout.ads, errout.adb: (First_Sloc): New function
* errout.ads, errout.adb: (First_Sloc): New function * par-ch5.adb (P_Condition): Check for redundant parens is now a style check (-gnatyx) instead of being included as a redundant construct warning. * sem_ch6.adb: Change name Style_Check_Subprogram_Order to Style_Check_Order_Subprograms. * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads, stylesw.adb: Add Style_Check_Xtra_Parens * usage.adb: Add line for -gnatyx (check extra parens) * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx From-SVN: r90905
Diffstat (limited to 'gcc/ada/sem_ch6.adb')
-rw-r--r--gcc/ada/sem_ch6.adb2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ada/sem_ch6.adb b/gcc/ada/sem_ch6.adb
index 4b5d95153b6..58d7e53cb22 100644
--- a/gcc/ada/sem_ch6.adb
+++ b/gcc/ada/sem_ch6.adb
@@ -2978,7 +2978,7 @@ package body Sem_Ch6 is
-- Check body in alpha order if this is option
if Style_Check
- and then Style_Check_Subprogram_Order
+ and then Style_Check_Order_Subprograms
and then Nkind (N) = N_Subprogram_Body
and then Comes_From_Source (N)
and then In_Extended_Main_Source_Unit (N)