summaryrefslogtreecommitdiff
path: root/gcc/ada/par-ch8.adb
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2012-12-05 10:35:24 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2012-12-05 10:35:24 +0000
commit60cd3d0e80844555587475098876db88b16109b0 (patch)
treecaa42aac6d7c84e97df5ac473685b58f3f10a81e /gcc/ada/par-ch8.adb
parentba640418bb6df4412d84551138ae37fe55f71e0d (diff)
downloadgcc-60cd3d0e80844555587475098876db88b16109b0.tar.gz
2012-12-05 Ed Schonberg <schonberg@adacore.com>
* sem_ch5.adb (Preanalyze_Range): If the expression, which denotes some domain of iteration, has a type with implicit dereference, and does not have any iterable aspects, insert dereference to obtain proper container type. 2012-12-05 Bob Duff <duff@adacore.com> * par-ch8.adb (P_Use_Type_Clause): Fix the Sloc for "use all type ..." to point to "use". 2012-12-05 Arnaud Charlet <charlet@adacore.com> * make.adb (Compile): Always pass -x adascil in CodePeer mode. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194198 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/par-ch8.adb')
-rw-r--r--gcc/ada/par-ch8.adb5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/ada/par-ch8.adb b/gcc/ada/par-ch8.adb
index eefd7d82316..fb2bf17c44d 100644
--- a/gcc/ada/par-ch8.adb
+++ b/gcc/ada/par-ch8.adb
@@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
--- Copyright (C) 1992-2010, Free Software Foundation, Inc. --
+-- Copyright (C) 1992-2012, 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- --
@@ -106,6 +106,7 @@ package body Ch8 is
function P_Use_Type_Clause return Node_Id is
Use_Node : Node_Id;
All_Present : Boolean;
+ Use_Sloc : constant Source_Ptr := Prev_Token_Ptr;
begin
if Token = Tok_All then
@@ -121,7 +122,7 @@ package body Ch8 is
All_Present := False;
end if;
- Use_Node := New_Node (N_Use_Type_Clause, Prev_Token_Ptr);
+ Use_Node := New_Node (N_Use_Type_Clause, Use_Sloc);
Set_All_Present (Use_Node, All_Present);
Set_Subtype_Marks (Use_Node, New_List);
Set_Used_Operations (Use_Node, No_Elist);