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
dc46505a
Commit
dc46505a
authored
Sep 05, 2000
by
Bruce Korb
Committed by
Bruce Korb
Sep 05, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PAGESIZE is not portable
From-SVN: r36166
parent
a3bcdaf9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
+2
-1
gcc/ChangeLog
+1
-0
gcc/fixinc/fixincl.c
+1
-1
No files found.
gcc/ChangeLog
View file @
dc46505a
...
...
@@ -2,6 +2,7 @@
* gcc/fixinc/fixincl.c(load_file): always read header files
with sizes that are a multiple of the page size.
& use libiberty's getpagesize for determining that.
2000-09-05 Alexandre Oliva <aoliva@redhat.com>
...
...
gcc/fixinc/fixincl.c
View file @
dc46505a
...
...
@@ -359,7 +359,7 @@ load_file ( fname )
/* IF the file size is a multiple of the page size,
THEN sometimes you will seg fault trying to access a trailing byte */
if
((
stbf
.
st_size
&
(
PAGESIZE
-
1
))
==
0
)
if
((
stbf
.
st_size
&
(
getpagesize
()
-
1
))
==
0
)
res
=
(
char
*
)
BAD_ADDR
;
else
res
=
(
char
*
)
mmap
((
void
*
)
NULL
,
data_map_size
,
PROT_READ
,
...
...
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