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
7ae99337
Commit
7ae99337
authored
Apr 18, 2006
by
Steve Ellcey
Committed by
Steve Ellcey
Apr 18, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* trans-io.c (gfc_build_io_library_fndecls): Align pad.
From-SVN: r113047
parent
503b5c9f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
gcc/fortran/ChangeLog
+4
-0
gcc/fortran/trans-io.c
+8
-0
No files found.
gcc/fortran/ChangeLog
View file @
7ae99337
2006-04-18 Steve Ellcey <sje@cup.hp.com>
* trans-io.c (gfc_build_io_library_fndecls): Align pad.
2006-04-16 Thomas Koenig <Thomas.Koenig@online.de>
PR fortran/26017
...
...
gcc/fortran/trans-io.c
View file @
7ae99337
...
...
@@ -227,6 +227,14 @@ gfc_build_io_library_fndecls (void)
pad_size
+=
32
*
TREE_INT_CST_LOW
(
TYPE_SIZE_UNIT
(
integer_type_node
));
pad_idx
=
build_index_type
(
build_int_cst
(
NULL_TREE
,
pad_size
));
types
[
IOPARM_type_pad
]
=
build_array_type
(
char_type_node
,
pad_idx
);
/* pad actually contains pointers and integers so it needs to have an
alignment that is at least as large as the needed alignment for those
types. See the st_parameter_dt structure in libgfortran/io/io.h for
what really goes into this space. */
TYPE_ALIGN
(
types
[
IOPARM_type_pad
])
=
MAX
(
TYPE_ALIGN
(
pchar_type_node
),
TYPE_ALIGN
(
gfc_get_int_type
(
gfc_max_integer_kind
)));
gfc_c_int_type_node
=
gfc_get_int_type
(
gfc_c_int_kind
);
for
(
ptype
=
IOPARM_ptype_common
;
ptype
<
IOPARM_ptype_num
;
ptype
++
)
...
...
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