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
3c92a2b8
Commit
3c92a2b8
authored
Jul 10, 2009
by
Arnaud Charlet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor reformatting.
From-SVN: r149475
parent
811c6a85
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
gcc/ada/sem_prag.adb
+7
-9
No files found.
gcc/ada/sem_prag.adb
View file @
3c92a2b8
...
...
@@ -3584,7 +3584,7 @@ package body Sem_Prag is
end if;
-- Components of imported CPP types must not have default
-- expressions because the constructor (if any) is
i
n the
-- expressions because the constructor (if any) is
o
n the
-- C++ side.
declare
...
...
@@ -6309,9 +6309,9 @@ package body Sem_Prag is
-- because in C++ they don'
t
have
a
dispatch
table
slot
.
--
However
,
in
Ada
the
constructor
has
the
profile
of
a
--
function
that
returns
a
tagged
type
and
therefore
it
has
--
been
considered
by
the
Semantic
analyzer
a
dispatching
--
primitive
operation
.
We
extract
it
now
from
the
list
of
--
primitive
operations
of
the
type
.
--
been
treated
as
a
primitive
operation
during
semantic
--
analysis
.
We
now
remove
it
from
the
list
of
primitive
--
operations
of
the
type
.
if
Is_Tagged_Type
(
Etype
(
Def_Id
))
and
then
not
Is_Class_Wide_Type
(
Etype
(
Def_Id
))
...
...
@@ -6320,9 +6320,7 @@ package body Sem_Prag is
Tag_Typ
:=
Etype
(
Def_Id
);
Elmt
:=
First_Elmt
(
Primitive_Operations
(
Tag_Typ
));
while
Present
(
Elmt
)
and
then
Node
(
Elmt
)
/=
Def_Id
loop
while
Present
(
Elmt
)
and
then
Node
(
Elmt
)
/=
Def_Id
loop
Next_Elmt
(
Elmt
);
end
loop
;
...
...
@@ -6331,8 +6329,8 @@ package body Sem_Prag is
end
if
;
--
For
backward
compatibility
,
if
the
constructor
returns
a
--
class
wide
type
we
internally
change
the
returned
type
to
--
the
corresponding
non
class
-
wide
type
.
--
class
wide
type
,
and
we
internally
change
the
return
type
to
--
the
corresponding
root
type
.
if
Is_Class_Wide_Type
(
Etype
(
Def_Id
))
then
Set_Etype
(
Def_Id
,
Root_Type
(
Etype
(
Def_Id
)));
...
...
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