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
13275056
Commit
13275056
authored
May 11, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(layout_type): Use POINTER_SIZE, instead of width of Pmode, when
appropriate. From-SVN: r7275
parent
6d100794
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
gcc/stor-layout.c
+9
-8
No files found.
gcc/stor-layout.c
View file @
13275056
...
...
@@ -702,23 +702,24 @@ layout_type (type)
break
;
case
OFFSET_TYPE
:
TYPE_SIZE
(
type
)
=
size_int
(
GET_MODE_BITSIZE
(
Pmode
));
TYPE_MODE
(
type
)
=
Pmode
;
TYPE_SIZE
(
type
)
=
size_int
(
POINTER_SIZE
);
TYPE_MODE
(
type
)
=
mode_for_size
(
POINTER_SIZE
,
GET_MODE_CLASS
(
Pmode
),
0
);
break
;
case
FUNCTION_TYPE
:
case
METHOD_TYPE
:
TYPE_MODE
(
type
)
=
mode_for_size
(
2
*
GET_MODE_BITSIZE
(
Pmode
),
MODE_INT
,
0
);
TYPE_SIZE
(
type
)
=
size_int
(
GET_MODE_BITSIZE
(
TYPE_MODE
(
type
)));
TYPE_MODE
(
type
)
=
mode_for_size
(
2
*
POINTER_SIZE
,
MODE_INT
,
0
);
TYPE_SIZE
(
type
)
=
size_int
(
2
*
POINTER_SIZE
);
break
;
case
POINTER_TYPE
:
case
REFERENCE_TYPE
:
TYPE_MODE
(
type
)
=
Pmode
;
TYPE_SIZE
(
type
)
=
size_int
(
GET_MODE_BITSIZE
(
TYPE_MODE
(
type
)));
TYPE_MODE
(
type
)
=
mode_for_size
(
POINTER_SIZE
,
GET_MODE_CLASS
(
Pmode
),
0
);
TYPE_SIZE
(
type
)
=
size_int
(
POINTER_SIZE
);
TREE_UNSIGNED
(
type
)
=
1
;
TYPE_PRECISION
(
type
)
=
GET_MODE_BITSIZE
(
TYPE_MODE
(
type
))
;
TYPE_PRECISION
(
type
)
=
POINTER_SIZE
;
break
;
case
ARRAY_TYPE
:
...
...
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