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
bba74577
Commit
bba74577
authored
May 05, 2008
by
Eric Botcazou
Committed by
Eric Botcazou
May 05, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* decl.c (maybe_pad_type): Add ??? comment.
From-SVN: r134953
parent
23688481
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletions
+11
-1
gcc/ada/ChangeLog
+4
-0
gcc/ada/decl.c
+7
-1
No files found.
gcc/ada/ChangeLog
View file @
bba74577
2008
-
05
-
05
Eric
Botcazou
<
ebotcazou
@
adacore
.
com
>
*
decl
.
c
(
maybe_pad_type
):
Add
???
comment
.
2008
-
05
-
03
Eric
Botcazou
<
ebotcazou
@
adacore
.
com
>
2008
-
05
-
03
Eric
Botcazou
<
ebotcazou
@
adacore
.
com
>
*
decl
.
c
(
components_to_record
):
Zero
the
alignment
of
the
qualified
*
decl
.
c
(
components_to_record
):
Zero
the
alignment
of
the
qualified
gcc/ada/decl.c
View file @
bba74577
...
@@ -5671,7 +5671,13 @@ maybe_pad_type (tree type, tree size, unsigned int align,
...
@@ -5671,7 +5671,13 @@ maybe_pad_type (tree type, tree size, unsigned int align,
integral mode, which will be much more efficient. There is no point
integral mode, which will be much more efficient. There is no point
in doing so if a size is specified unless it is also a small constant
in doing so if a size is specified unless it is also a small constant
size and it is incorrect to do so if we cannot guarantee that the mode
size and it is incorrect to do so if we cannot guarantee that the mode
will be naturally aligned since the field must always be addressable. */
will be naturally aligned since the field must always be addressable.
??? This might not always be a win when done for a stand-alone object:
since the nominal and the effective type of the object will now have
different modes, a VIEW_CONVERT_EXPR will be required for converting
between them and it might be hard to overcome afterwards, including
at the RTL level when the stand-alone object is accessed as a whole. */
if
(
align
!=
0
if
(
align
!=
0
&&
TREE_CODE
(
type
)
==
RECORD_TYPE
&&
TREE_CODE
(
type
)
==
RECORD_TYPE
&&
TYPE_MODE
(
type
)
==
BLKmode
&&
TYPE_MODE
(
type
)
==
BLKmode
...
...
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