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
20475e78
Commit
20475e78
authored
Mar 10, 2004
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(build_pointer_type_for_mode): Fix comments and whitespace.
From-SVN: r79293
parent
4f5b645a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
gcc/tree.c
+6
-5
No files found.
gcc/tree.c
View file @
20475e78
...
@@ -3792,7 +3792,8 @@ build_pointer_type_for_mode (tree to_type, enum machine_mode mode)
...
@@ -3792,7 +3792,8 @@ build_pointer_type_for_mode (tree to_type, enum machine_mode mode)
{
{
tree
t
=
TYPE_POINTER_TO
(
to_type
);
tree
t
=
TYPE_POINTER_TO
(
to_type
);
/* First, if we already have a type for pointers to TO_TYPE, use it. */
/* First, if we already have a type for pointers to TO_TYPE and it's
the proper mode, use it. */
if
(
t
!=
0
&&
mode
==
ptr_mode
)
if
(
t
!=
0
&&
mode
==
ptr_mode
)
return
t
;
return
t
;
...
@@ -3801,13 +3802,13 @@ build_pointer_type_for_mode (tree to_type, enum machine_mode mode)
...
@@ -3801,13 +3802,13 @@ build_pointer_type_for_mode (tree to_type, enum machine_mode mode)
TREE_TYPE
(
t
)
=
to_type
;
TREE_TYPE
(
t
)
=
to_type
;
TYPE_MODE
(
t
)
=
mode
;
TYPE_MODE
(
t
)
=
mode
;
/* Record this type as the pointer to TO_TYPE. */
/* We can only record one type as "the" pointer to TO_TYPE. We choose to
record the pointer whose mode is ptr_mode. */
if
(
mode
==
ptr_mode
)
if
(
mode
==
ptr_mode
)
TYPE_POINTER_TO
(
to_type
)
=
t
;
TYPE_POINTER_TO
(
to_type
)
=
t
;
/* Lay out the type. This function has many callers that are concerned
/* Lay out the type. This function has many callers that are concerned
with expression-construction, and this simplifies them all.
with expression-construction, and this simplifies them all. */
Also, it guarantees the TYPE_SIZE is in the same obstack as the type. */
layout_type
(
t
);
layout_type
(
t
);
return
t
;
return
t
;
...
...
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