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
b200d1aa
Commit
b200d1aa
authored
Jan 24, 1996
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(pointer_int_sum): Use TYPE_PRECISION (sizetype) not
POINTER_SIZE to agree with expr.c. From-SVN: r11088
parent
92acadfe
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
gcc/c-typeck.c
+3
-3
No files found.
gcc/c-typeck.c
View file @
b200d1aa
...
@@ -2645,11 +2645,11 @@ pointer_int_sum (resultcode, ptrop, intop)
...
@@ -2645,11 +2645,11 @@ pointer_int_sum (resultcode, ptrop, intop)
intop
=
convert
(
int_type
,
TREE_OPERAND
(
intop
,
0
));
intop
=
convert
(
int_type
,
TREE_OPERAND
(
intop
,
0
));
}
}
/* Convert the integer argument to a type the same size as
a pointer
/* Convert the integer argument to a type the same size as
sizetype
so the multiply won't overflow spuriously. */
so the multiply won't overflow spuriously. */
if
(
TYPE_PRECISION
(
TREE_TYPE
(
intop
))
!=
POINTER_SIZE
)
if
(
TYPE_PRECISION
(
TREE_TYPE
(
intop
))
!=
TYPE_PRECISION
(
sizetype
)
)
intop
=
convert
(
type_for_size
(
POINTER_SIZE
,
0
),
intop
);
intop
=
convert
(
type_for_size
(
TYPE_PRECISION
(
sizetype
)
,
0
),
intop
);
/* Replace the integer argument with a suitable product by the object size.
/* Replace the integer argument with a suitable product by the object size.
Do this multiplication as signed, then convert to the appropriate
Do this multiplication as signed, then convert to the appropriate
...
...
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