summaryrefslogtreecommitdiff
path: root/gcc/ada/sem_warn.ads
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2010-09-10 14:57:08 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2010-09-10 14:57:08 +0000
commit4749555368227d07230709bd46a42f7cd606e804 (patch)
treeed14d7de3ef1a53dbe0e83502aded4097105d1c4 /gcc/ada/sem_warn.ads
parentc2b89d6e7605077da096cb231aac8bfb1aac5c76 (diff)
downloadgcc-4749555368227d07230709bd46a42f7cd606e804.tar.gz
2010-09-10 Robert Dewar <dewar@adacore.com>
* sem_ch13.adb (Check_Record_Representation_Clause): Implement record gap warnings. * sem_warn.ads, sem_warn.adb (Warn_On_Record_Holes): New warning flag. * usage.adb: Add lines for -gnatw.h/H * gnat_ugn.texi: Add documentation for J519-010 Warn on record holes/gaps * ug_words: Add entries for -gnatw.h/-gnatw.H * vms_data.ads: Add entries for [NO]AVOIDGAPS 2010-09-10 Gary Dismukes <dismukes@adacore.com> * sem_ch6.adb: Update comment. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164186 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/sem_warn.ads')
-rw-r--r--gcc/ada/sem_warn.ads16
1 files changed, 15 insertions, 1 deletions
diff --git a/gcc/ada/sem_warn.ads b/gcc/ada/sem_warn.ads
index e74e144fc5b..259a470f507 100644
--- a/gcc/ada/sem_warn.ads
+++ b/gcc/ada/sem_warn.ads
@@ -6,7 +6,7 @@
-- --
-- S p e c --
-- --
--- Copyright (C) 1999-2009, Free Software Foundation, Inc. --
+-- Copyright (C) 1999-2010, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
@@ -33,6 +33,20 @@ with Types; use Types;
package Sem_Warn is
+ -------------------
+ -- Warning Flags --
+ -------------------
+
+ -- These flags are activated or deactivated by -gnatw switches and control
+ -- whether warnings of a given class will be generated or not.
+
+ -- Note: most of these flags are still in opt, but the plan is to move them
+ -- here as time goes by.
+
+ Warn_On_Record_Holes : Boolean := False;
+ -- Warn when explicit record component clauses leave uncovered holes (gaps)
+ -- in a record layout. Off by default, set by -gnatw.h (but not -gnatwa).
+
------------------------
-- Warnings Off Table --
------------------------