aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/sem_ch13.adb
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2015-05-26 12:49:18 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2015-05-26 12:49:18 +0200
commitad4ba28bb0d6acbd78ca6f2da71d987f6bd17ea6 (patch)
tree529389619f9f210e3855bc6754e7da9d1ceb16f7 /gcc/ada/sem_ch13.adb
parent241ebe892af143aaf8cce4bfd80f9b8dce97fe72 (diff)
downloadgcc-ad4ba28bb0d6acbd78ca6f2da71d987f6bd17ea6.zip
gcc-ad4ba28bb0d6acbd78ca6f2da71d987f6bd17ea6.tar.gz
gcc-ad4ba28bb0d6acbd78ca6f2da71d987f6bd17ea6.tar.bz2
[multiple changes]
2015-05-26 Robert Dewar <dewar@adacore.com> * exp_prag.adb, sem_ch3.adb, sem_ch5.adb, exp_ch11.adb, ghost.adb, exp_ch6.adb, sem_ch6.adb, sem_ch8.adb, sem_ch11.adb, sem_ch13.adb, exp_ch3.adb: Minor reformatting. 2015-05-26 Bob Duff <duff@adacore.com> * treepr.adb: Minor improvement to debugging routines (pp, pn) robustness. Rearrange the code so passing a nonexistent Node_Id prints "No such node" rather than crashing, and causing gdb to generate confusing messages. 2015-05-26 Gary Dismukes <dismukes@adacore.com> * sem_util.adb: Minor typo fix. 2015-05-26 Yannick Moy <moy@adacore.com> * sem_aux.adb (Subprogram_Body_Entity): Deal with subprogram stubs. From-SVN: r223685
Diffstat (limited to 'gcc/ada/sem_ch13.adb')
-rw-r--r--gcc/ada/sem_ch13.adb6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/ada/sem_ch13.adb b/gcc/ada/sem_ch13.adb
index 8db5b50..d994ba3 100644
--- a/gcc/ada/sem_ch13.adb
+++ b/gcc/ada/sem_ch13.adb
@@ -7763,14 +7763,14 @@ package body Sem_Ch13 is
function Build_Invariant_Procedure_Declaration
(Typ : Entity_Id) return Node_Id
is
+ Loc : constant Source_Ptr := Sloc (Typ);
GM : constant Ghost_Mode_Type := Ghost_Mode;
- Loc : constant Source_Ptr := Sloc (Typ);
Decl : Node_Id;
Obj_Id : Entity_Id;
SId : Entity_Id;
begin
- -- Check for duplicate definiations
+ -- Check for duplicate definitions
if Has_Invariants (Typ) and then Present (Invariant_Procedure (Typ)) then
return Empty;
@@ -8011,7 +8011,7 @@ package body Sem_Ch13 is
-- analyzed at the end of the private part, but that yields the
-- wrong visibility.
- -- Historic note: we used to set N as the parent, but a package
+ -- Historical note: we used to set N as the parent, but a package
-- specification as the parent of an expression is bizarre.
Set_Parent (Expr, Parent (Arg2));