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
da81cc57
Commit
da81cc57
authored
Aug 30, 2019
by
Eric Botcazou
Committed by
Eric Botcazou
Aug 30, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gcc-interface/trans.c (Attribute_to_gnu) <Attr_Size>: Add assertion.
From-SVN: r275187
parent
81e753d9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
gcc/ada/ChangeLog
+4
-0
gcc/ada/gcc-interface/trans.c
+3
-0
No files found.
gcc/ada/ChangeLog
View file @
da81cc57
2019
-
08
-
30
Eric
Botcazou
<
ebotcazou
@
adacore
.
com
>
2019
-
08
-
30
Eric
Botcazou
<
ebotcazou
@
adacore
.
com
>
*
gcc
-
interface
/
trans
.
c
(
Attribute_to_gnu
)
<
Attr_Size
>:
Add
assertion
.
2019
-
08
-
30
Eric
Botcazou
<
ebotcazou
@
adacore
.
com
>
*
gcc
-
interface
/
gigi
.
h
(
gigi_checking_assert
):
New
macro
.
*
gcc
-
interface
/
gigi
.
h
(
gigi_checking_assert
):
New
macro
.
*
gcc
-
interface
/
decl
.
c
(
gnat_to_gnu_entity
)
<
E_Modular_Integer_Type
>:
*
gcc
-
interface
/
decl
.
c
(
gnat_to_gnu_entity
)
<
E_Modular_Integer_Type
>:
Remove
redundant
test
and
adjust
comments
.
Minor
tweaks
.
Remove
redundant
test
and
adjust
comments
.
Minor
tweaks
.
...
...
gcc/ada/gcc-interface/trans.c
View file @
da81cc57
...
@@ -2351,6 +2351,9 @@ Attribute_to_gnu (Node_Id gnat_node, tree *gnu_result_type_p, int attribute)
...
@@ -2351,6 +2351,9 @@ Attribute_to_gnu (Node_Id gnat_node, tree *gnu_result_type_p, int attribute)
gnu_type
=
TREE_TYPE
(
DECL_CHAIN
(
TYPE_FIELDS
(
gnu_type
)));
gnu_type
=
TREE_TYPE
(
DECL_CHAIN
(
TYPE_FIELDS
(
gnu_type
)));
}
}
/* The type must be frozen at this point. */
gcc_assert
(
COMPLETE_TYPE_P
(
gnu_type
));
/* If we're looking for the size of a field, return the field size. */
/* If we're looking for the size of a field, return the field size. */
if
(
TREE_CODE
(
gnu_prefix
)
==
COMPONENT_REF
)
if
(
TREE_CODE
(
gnu_prefix
)
==
COMPONENT_REF
)
gnu_result
=
DECL_SIZE
(
TREE_OPERAND
(
gnu_prefix
,
1
));
gnu_result
=
DECL_SIZE
(
TREE_OPERAND
(
gnu_prefix
,
1
));
...
...
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