diff options
author | Giuliano Belinassi <giuliano.belinassi@usp.br> | 2020-08-22 17:43:43 -0300 |
---|---|---|
committer | Giuliano Belinassi <giuliano.belinassi@usp.br> | 2020-08-22 17:43:43 -0300 |
commit | a926878ddbd5a98b272c22171ce58663fc04c3e0 (patch) | |
tree | 86af256e5d9a9c06263c00adc90e5fe348008c43 /gcc/ada/lib-xref-spark_specific.adb | |
parent | 542730f087133690b47e036dfd43eb0db8a650ce (diff) | |
parent | 07cbaed8ba7d1b6e4ab3a9f44175502a4e1ecdb1 (diff) | |
download | gcc-devel/autopar_devel.zip gcc-devel/autopar_devel.tar.gz gcc-devel/autopar_devel.tar.bz2 |
Merge branch 'autopar_rebase2' into autopar_develdevel/autopar_devel
Quickly commit changes in the rebase branch.
Diffstat (limited to 'gcc/ada/lib-xref-spark_specific.adb')
-rw-r--r-- | gcc/ada/lib-xref-spark_specific.adb | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gcc/ada/lib-xref-spark_specific.adb b/gcc/ada/lib-xref-spark_specific.adb index 0ad7044..269d8ee 100644 --- a/gcc/ada/lib-xref-spark_specific.adb +++ b/gcc/ada/lib-xref-spark_specific.adb @@ -6,7 +6,7 @@ -- -- -- B o d y -- -- -- --- Copyright (C) 2011-2019, Free Software Foundation, Inc. -- +-- Copyright (C) 2011-2020, 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- -- @@ -181,11 +181,11 @@ package body SPARK_Specific is -- If N is the defining identifier for a subprogram, then return the -- enclosing subprogram or package, not this subprogram. - if Nkind_In (N, N_Defining_Identifier, N_Defining_Operator_Symbol) - and then (Ekind (N) in Entry_Kind - or else Ekind (N) = E_Subprogram_Body - or else Ekind (N) in Generic_Subprogram_Kind - or else Ekind (N) in Subprogram_Kind) + if Nkind (N) in N_Defining_Identifier | N_Defining_Operator_Symbol + and then Ekind (N) in Entry_Kind + | E_Subprogram_Body + | Generic_Subprogram_Kind + | Subprogram_Kind then Context := Parent (Unit_Declaration_Node (N)); @@ -291,10 +291,10 @@ package body SPARK_Specific is procedure Create_Heap is begin - Name_Len := Name_Of_Heap_Variable'Length; - Name_Buffer (1 .. Name_Len) := Name_Of_Heap_Variable; - - Heap := Make_Defining_Identifier (Standard_Location, Name_Enter); + Heap := + Make_Defining_Identifier + (Standard_Location, + Name_Enter (Name_Of_Heap_Variable)); Set_Ekind (Heap, E_Variable); Set_Is_Internal (Heap, True); |