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
b6dc26ba
Commit
b6dc26ba
authored
Apr 28, 2017
by
Arnaud Charlet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor reformatting.
From-SVN: r247388
parent
85be939e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
12 deletions
+15
-12
gcc/ada/sem_ch6.adb
+5
-4
gcc/ada/sem_res.adb
+10
-8
No files found.
gcc/ada/sem_ch6.adb
View file @
b6dc26ba
...
...
@@ -3111,10 +3111,11 @@ package body Sem_Ch6 is
end
;
end
if
;
--
Freezing
an
access
type
does
not
freeze
the
designated
--
type
,
but
freezing
conversions
between
access
to
interfaces
--
requires
that
the
interface
types
themselves
be
frozen
,
so
--
that
dispatch
table
entities
are
properly
created
.
--
Freezing
an
access
type
does
not
freeze
the
designated
type
,
--
but
freezing
conversions
between
access
to
interfaces
requires
--
that
the
interface
types
themselves
be
frozen
,
so
that
dispatch
--
table
entities
are
properly
created
.
--
Unclear
whether
a
more
general
rule
is
needed
???
elsif
Nkind
(
Node
)
=
N_Type_Conversion
...
...
gcc/ada/sem_res.adb
View file @
b6dc26ba
...
...
@@ -11945,6 +11945,7 @@ package body Sem_Res is
function In_Instance_Code return Boolean is
Par : Node_Id;
begin
if not In_Instance then
return False;
...
...
@@ -11953,24 +11954,25 @@ package body Sem_Res is
Par := Parent (N);
while Present (Par) loop
-- The expression is part of an actual object if it appears
--
in
the generated object declaration in the instance.
-- The expression is part of an actual object if it appears
in
-- the generated object declaration in the instance.
if Nkind (Par) = N_Object_Declaration
and then Present (Corresponding_Generic_Association (Par))
and then Present (Corresponding_Generic_Association (Par))
then
return False;
else
exit when
Nkind (Par)
in N_Statement_Other_Than_Procedure_Call
or else Nkind (Par) in N_Subprogram_Call
or else Nkind (Par) in N_Declaration;
exit when
Nkind (Par)
in N_Statement_Other_Than_Procedure_Call
or else Nkind (Par) in N_Subprogram_Call
or else Nkind (Par) in N_Declaration;
end if;
Par := Parent (Par);
end loop;
-- Otherwise the expression appears within the instantiated unit
.
-- Otherwise the expression appears within the instantiated unit
return True;
end if;
...
...
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