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
0f168ccc
Commit
0f168ccc
authored
Apr 25, 2017
by
Arnaud Charlet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor reformatting.
From-SVN: r247232
parent
28ccbd3f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
14 deletions
+14
-14
gcc/ada/sem_cat.adb
+0
-1
gcc/ada/sem_ch13.adb
+8
-9
gcc/ada/sem_util.adb
+6
-4
No files found.
gcc/ada/sem_cat.adb
View file @
0f168ccc
...
@@ -1978,7 +1978,6 @@ package body Sem_Cat is
...
@@ -1978,7 +1978,6 @@ package body Sem_Cat is
if
Comes_From_Source
(
Typ
)
and
then
Is_Type
(
Typ
)
if
Comes_From_Source
(
Typ
)
and
then
Is_Type
(
Typ
)
and
then
Ekind
(
Typ
)
/=
E_Incomplete_Type
and
then
Ekind
(
Typ
)
/=
E_Incomplete_Type
then
then
--
Check
that
the
type
can
be
meaningfully
transmitted
to
another
--
Check
that
the
type
can
be
meaningfully
transmitted
to
another
--
partition
(
E
.2.2
(
8
)).
--
partition
(
E
.2.2
(
8
)).
...
...
gcc/ada/sem_ch13.adb
View file @
0f168ccc
...
@@ -1181,11 +1181,11 @@ package body Sem_Ch13 is
...
@@ -1181,11 +1181,11 @@ package body Sem_Ch13 is
-- Start of processing for Analyze_Aspects_At_Freeze_Point
-- Start of processing for Analyze_Aspects_At_Freeze_Point
begin
begin
-- Must be visible in current scope, but if this is a type from
-- Must be visible in current scope, but if this is a type from
a nested
--
a nested package it may be frozen from an object declaration
--
package it may be frozen from an object declaration in the enclosing
--
in the enclosing scope, so install the package declaration
s
--
scope, so install the package declarations to complete the analysi
s
--
to complete the analysis of the aspects, if any. If the package
--
of the aspects, if any. If the package itself is frozen the type will
--
itself is frozen the type will
have been frozen as well.
-- have been frozen as well.
if not Scope_Within_Or_Same (Current_Scope, Scope (E)) then
if not Scope_Within_Or_Same (Current_Scope, Scope (E)) then
if Is_Type (E) and then From_Nested_Package (E) then
if Is_Type (E) and then From_Nested_Package (E) then
...
@@ -1208,11 +1208,10 @@ package body Sem_Ch13 is
...
@@ -1208,11 +1208,10 @@ package body Sem_Ch13 is
return;
return;
end;
end;
else
-- Aspects from other entities in different contexts are analyzed
-- elsewhere.
-- Aspects from other entities in different contexts are
-- analyzed elsewhere.
else
return;
return;
end if;
end if;
end if;
end if;
...
...
gcc/ada/sem_util.adb
View file @
0f168ccc
...
@@ -7581,11 +7581,13 @@ package body Sem_Util is
...
@@ -7581,11 +7581,13 @@ package body Sem_Util is
function From_Nested_Package (T : Entity_Id) return Boolean is
function From_Nested_Package (T : Entity_Id) return Boolean is
Pack : constant Entity_Id := Scope (T);
Pack : constant Entity_Id := Scope (T);
begin
begin
return Ekind (Pack) = E_Package
return
and then not Is_Frozen (Pack)
Ekind (Pack) = E_Package
and then not Scope_Within_Or_Same (Current_Scope, Pack)
and then not Is_Frozen (Pack)
and then In_Open_Scopes (Scope (Pack));
and then not Scope_Within_Or_Same (Current_Scope, Pack)
and then In_Open_Scopes (Scope (Pack));
end From_Nested_Package;
end From_Nested_Package;
-----------------------
-----------------------
...
...
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