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
bfda9ccd
Commit
bfda9ccd
authored
Apr 25, 2017
by
Arnaud Charlet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code clean ups.
From-SVN: r247158
parent
ded462b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
4 deletions
+25
-4
gcc/ada/contracts.adb
+25
-4
No files found.
gcc/ada/contracts.adb
View file @
bfda9ccd
...
@@ -2025,12 +2025,33 @@ package body Contracts is
...
@@ -2025,12 +2025,33 @@ package body Contracts is
return
False
;
return
False
;
--
Determine
whether
the
subprogram
is
declared
in
the
visible
--
Determine
whether
the
subprogram
is
declared
in
the
visible
--
declarations
of
the
package
containing
the
type
.
--
declarations
of
the
package
containing
the
type
,
or
in
the
--
visible
declaration
of
a
child
unit
of
that
package
.
else
else
return
List_Containing
(
Subp_Decl
)
=
declare
Visible_Declarations
Decls
:
constant
List_Id
:=
(
Specification
(
Unit_Declaration_Node
(
Scope
(
Typ
))));
List_Containing
(
Subp_Decl
);
Subp_Scope
:
constant
Entity_Id
:=
Scope
(
Defining_Entity
(
Subp_Decl
));
Typ_Scope
:
constant
Entity_Id
:=
Scope
(
Typ
);
begin
return
Decls
=
Visible_Declarations
(
Specification
(
Unit_Declaration_Node
(
Typ_Scope
)))
or
else
(
Ekind
(
Subp_Scope
)
=
E_Package
and
then
Typ_Scope
/=
Subp_Scope
and
then
Is_Child_Unit
(
Subp_Scope
)
and
then
Is_Ancestor_Package
(
Typ_Scope
,
Subp_Scope
)
and
then
Decls
=
Visible_Declarations
(
Specification
(
Unit_Declaration_Node
(
Subp_Scope
))));
end
;
end
if
;
end
if
;
end
Has_Public_Visibility_Of_Subprogram
;
end
Has_Public_Visibility_Of_Subprogram
;
...
...
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