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
892f6e65
Commit
892f6e65
authored
Mar 08, 2008
by
Eric Botcazou
Committed by
Eric Botcazou
Mar 08, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decl.c (maybe_pad_type): Use value_factor_p.
* decl.c (maybe_pad_type): Use value_factor_p. From-SVN: r133039
parent
49a1fb2d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
gcc/ada/ChangeLog
+4
-0
gcc/ada/decl.c
+3
-4
No files found.
gcc/ada/ChangeLog
View file @
892f6e65
2008
-
03
-
08
Eric
Botcazou
<
ebotcazou
@
adacore
.
com
>
*
decl
.
c
(
maybe_pad_type
):
Use
value_factor_p
.
2008
-
03
-
08
Eric
Botcazou
<
ebotcazou
@
adacore
.
com
>
*
lang
.
opt
(
nostdlib
):
Move
around
.
*
misc
.
c
(
gnat_handle_option
):
Fix
formatting
.
(
gnat_dwarf_name
):
Move
around
.
gcc/ada/decl.c
View file @
892f6e65
...
...
@@ -5534,8 +5534,7 @@ maybe_pad_type (tree type, tree size, unsigned int align,
with the specified alignment. */
if
(
!
size
&&
INTEGRAL_TYPE_P
(
type
)
&&
host_integerp
(
orig_size
,
1
)
&&
(
TREE_INT_CST_LOW
(
orig_size
)
%
align
)
==
0
)
&&
value_factor_p
(
orig_size
,
align
))
{
type
=
copy_type
(
type
);
TYPE_ALIGN
(
type
)
=
align
;
...
...
@@ -5570,12 +5569,12 @@ maybe_pad_type (tree type, tree size, unsigned int align,
if
(
align
!=
0
&&
TREE_CODE
(
type
)
==
RECORD_TYPE
&&
TYPE_MODE
(
type
)
==
BLKmode
&&
host_integerp
(
orig_size
,
1
)
&&
TREE_CODE
(
orig_size
)
==
INTEGER_CST
&&
compare_tree_int
(
orig_size
,
MAX_FIXED_MODE_SIZE
)
<=
0
&&
(
!
size
||
(
TREE_CODE
(
size
)
==
INTEGER_CST
&&
compare_tree_int
(
size
,
MAX_FIXED_MODE_SIZE
)
<=
0
))
&&
tree_low_cst
(
orig_size
,
1
)
%
align
==
0
)
&&
value_factor_p
(
orig_size
,
align
)
)
type
=
make_packable_type
(
type
,
true
);
field
=
create_field_decl
(
get_identifier
(
"F"
),
type
,
record
,
0
,
...
...
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