Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
efd3c368
Commit
efd3c368
authored
Jul 18, 2014
by
Arnaud Charlet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update comments
From-SVN: r212819
parent
4b03d946
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
gcc/ada/sem_ch7.adb
+16
-0
No files found.
gcc/ada/sem_ch7.adb
View file @
efd3c368
...
...
@@ -184,6 +184,11 @@ package body Sem_Ch7 is
Prag : Node_Id;
begin
-- Due to the timing of contract analysis, delayed pragmas may be
-- subject to the wrong SPARK_Mode, usually that of the enclosing
-- context. To remedy this, restore the original SPARK_Mode of the
-- related package body.
Save_SPARK_Mode_And_Set (Body_Id, Mode);
Prag := Get_Pragma (Body_Id, Pragma_Refined_State);
...
...
@@ -204,6 +209,9 @@ package body Sem_Ch7 is
Error_Msg_N ("package & requires state refinement", Spec_Id);
end if;
-- Restore the SPARK_Mode of the enclosing context after all delayed
-- pragmas have been analyzed.
Restore_SPARK_Mode (Mode);
end Analyze_Package_Body_Contract;
...
...
@@ -848,6 +856,11 @@ package body Sem_Ch7 is
Prag
:
Node_Id
;
begin
--
Due
to
the
timing
of
contract
analysis
,
delayed
pragmas
may
be
--
subject
to
the
wrong
SPARK_Mode
,
usually
that
of
the
enclosing
--
context
.
To
remedy
this
,
restore
the
original
SPARK_Mode
of
the
--
related
package
.
Save_SPARK_Mode_And_Set
(
Pack_Id
,
Mode
);
--
Analyze
the
initialization
related
pragmas
.
Initializes
must
come
...
...
@@ -876,6 +889,9 @@ package body Sem_Ch7 is
end
if
;
end
if
;
--
Restore
the
SPARK_Mode
of
the
enclosing
context
after
all
delayed
--
pragmas
have
been
analyzed
.
Restore_SPARK_Mode
(
Mode
);
end
Analyze_Package_Contract
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment