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
845e4228
Commit
845e4228
authored
Aug 18, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(pcfinclude): Use HOST_WIDE_INT for rounding a pointer.
From-SVN: r1881
parent
b39a6d43
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
gcc/cccp.c
+6
-5
No files found.
gcc/cccp.c
View file @
845e4228
...
...
@@ -4384,11 +4384,12 @@ pcfinclude (buf, limit, name, op)
/* First skip to a longword boundary */
/* ??? Why a 4-byte boundary? On all machines? */
/* NOTE: while int may not be as wide as a pointer on some machins,
this is correct nonethelesss works anyway.
Do not try risky measures here to get another type to use! */
if
((
int
)
cp
&
3
)
cp
+=
4
-
((
int
)
cp
&
3
);
/* NOTE: This works correctly even if HOST_WIDE_INT
is narrower than a pointer.
Do not try risky measures here to get another type to use!
Do not include gstddef.h or stddef.h--either one will fail! */
if
((
HOST_WIDE_INT
)
cp
&
3
)
cp
+=
4
-
((
HOST_WIDE_INT
)
cp
&
3
);
/* Now get the string. */
str
=
(
STRINGDEF
*
)
cp
;
...
...
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