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
b1d8d229
Commit
b1d8d229
authored
Apr 21, 2016
by
Arnaud Charlet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor reformatting.
From-SVN: r235310
parent
78bc7fe6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
14 deletions
+13
-14
gcc/ada/freeze.ads
+11
-12
gcc/ada/sem_attr.adb
+2
-2
No files found.
gcc/ada/freeze.ads
View file @
b1d8d229
...
...
@@ -188,18 +188,17 @@ package Freeze is
--
actions
in
the
enclosing
list
and
reset
the
attribute
.
function
Freeze_Entity
(
E
:
Entity_Id
;
N
:
Node_Id
;
F_P
:
Boolean
:=
True
)
return
List_Id
;
(
E
:
Entity_Id
;
N
:
Node_Id
;
Do_Freeze_Profile
:
Boolean
:=
True
)
return
List_Id
;
--
Freeze
an
entity
,
and
return
Freeze
nodes
,
to
be
inserted
at
the
point
--
of
call
.
N
is
a
node
whose
source
location
corresponds
to
the
freeze
--
point
.
This
is
used
in
placing
warning
messages
in
the
situation
where
--
it
appears
that
a
type
has
been
frozen
too
early
,
e
.
g
.
when
a
primitive
--
operation
is
declared
after
the
freezing
point
of
its
tagged
type
.
--
Returns
No_List
if
no
freeze
nodes
needed
.
--
The
defaulted
parameter
F_P
is
used
when
E
is
a
subprogram
,
and
--
determines
whether
the
profile
of
the
subprogram
should
be
frozen
as
--
well
.
--
Returns
No_List
if
no
freeze
nodes
needed
.
Parameter
Do_Freeze_Profile
--
is
used
when
E
is
a
subprogram
,
and
determines
whether
the
profile
of
--
the
subprogram
should
be
frozen
as
well
.
procedure
Freeze_All
(
From
:
Entity_Id
;
After
:
in
out
Node_Id
);
--
Before
a
non
-
instance
body
,
or
at
the
end
of
a
declarative
part
,
...
...
@@ -216,11 +215,11 @@ package Freeze is
--
frozen
entities
.
procedure
Freeze_Before
(
N
:
Node_Id
;
T
:
Entity_Id
;
F_P
:
Boolean
:=
True
);
--
Freeze
T
then
Insert
the
generated
Freeze
nodes
before
the
node
N
--
The
flag
F_P
is
used
when
T
is
an
overloadable
entity
,
and
indicates
(
N
:
Node_Id
;
T
:
Entity_Id
;
Do_Freeze_Profile
:
Boolean
:=
True
);
--
Freeze
T
then
Insert
the
generated
Freeze
nodes
before
the
node
N
.
Flag
--
Do_Freeze_Profile
is
used
when
T
is
an
overloadable
entity
and
indicates
--
whether
its
profile
should
be
frozen
at
the
same
time
.
procedure
Freeze_Expression
(
N
:
Node_Id
);
...
...
gcc/ada/sem_attr.adb
View file @
b1d8d229
...
...
@@ -10165,7 +10165,7 @@ package body Sem_Attr is
-- the subprogram is not frozen at this point.
if not In_Spec_Expression then
Freeze_Before (N, Entity (P), False);
Freeze_Before (N, Entity (P),
Do_Freeze_Profile =>
False);
end if;
-- If it is a type, there is nothing to resolve.
...
...
@@ -10174,7 +10174,7 @@ package body Sem_Attr is
elsif Is_Overloadable (Entity (P)) then
if not In_Spec_Expression then
Freeze_Before (N, Entity (P), False);
Freeze_Before (N, Entity (P),
Do_Freeze_Profile =>
False);
end if;
-- Nothing to do if prefix is a type name
...
...
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