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
1efa38d1
Commit
1efa38d1
authored
Jan 17, 2012
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libgo: Solaris and Irix compatibility patches.
From Rainer Orth. From-SVN: r183246
parent
eec3e72c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
4 deletions
+10
-4
libgo/configure
+1
-0
libgo/configure.ac
+1
-0
libgo/runtime/go-map-delete.c
+1
-1
libgo/runtime/go-map-index.c
+2
-2
libgo/runtime/mem.c
+5
-1
No files found.
libgo/configure
View file @
1efa38d1
...
...
@@ -13467,6 +13467,7 @@ is_darwin=no
is_freebsd
=
no
is_irix
=
no
is_linux
=
no
is_netbsd
=
no
is_rtems
=
no
is_solaris
=
no
GOOS
=
unknown
...
...
libgo/configure.ac
View file @
1efa38d1
...
...
@@ -126,6 +126,7 @@ is_darwin=no
is_freebsd=no
is_irix=no
is_linux=no
is_netbsd=no
is_rtems=no
is_solaris=no
GOOS=unknown
...
...
libgo/runtime/go-map-delete.c
View file @
1efa38d1
...
...
@@ -20,7 +20,7 @@ __go_map_delete (struct __go_map *map, const void *key)
const
struct
__go_map_descriptor
*
descriptor
;
const
struct
__go_type_descriptor
*
key_descriptor
;
uintptr_t
key_offset
;
_Bool
(
*
equalfn
)
(
const
void
*
,
const
void
*
,
size
_t
);
_Bool
(
*
equalfn
)
(
const
void
*
,
const
void
*
,
uintptr
_t
);
size_t
key_hash
;
size_t
key_size
;
size_t
bucket_index
;
...
...
libgo/runtime/go-map-index.c
View file @
1efa38d1
...
...
@@ -21,7 +21,7 @@ __go_map_rehash (struct __go_map *map)
const
struct
__go_type_descriptor
*
key_descriptor
;
uintptr_t
key_offset
;
size_t
key_size
;
size_t
(
*
hashfn
)
(
const
void
*
,
size
_t
);
uintptr_t
(
*
hashfn
)
(
const
void
*
,
uintptr
_t
);
uintptr_t
old_bucket_count
;
void
**
old_buckets
;
uintptr_t
new_bucket_count
;
...
...
@@ -80,7 +80,7 @@ __go_map_index (struct __go_map *map, const void *key, _Bool insert)
const
struct
__go_map_descriptor
*
descriptor
;
const
struct
__go_type_descriptor
*
key_descriptor
;
uintptr_t
key_offset
;
_Bool
(
*
equalfn
)
(
const
void
*
,
const
void
*
,
size
_t
);
_Bool
(
*
equalfn
)
(
const
void
*
,
const
void
*
,
uintptr
_t
);
size_t
key_hash
;
size_t
key_size
;
size_t
bucket_index
;
...
...
libgo/runtime/mem.c
View file @
1efa38d1
/* Defining _XOPEN_SOURCE hides the declaration of madvise() on Solaris <
11 and the MADV_DONTNEED definition on IRIX 6.5. */
#undef _XOPEN_SOURCE
#include <errno.h>
#include <unistd.h>
...
...
@@ -67,7 +71,7 @@ runtime_SysAlloc(uintptr n)
}
void
runtime_SysUnused
(
void
*
v
,
uintptr
n
)
runtime_SysUnused
(
void
*
v
__attribute__
((
unused
)),
uintptr
n
__attribute__
((
unused
))
)
{
#ifdef MADV_DONTNEED
runtime_madvise
(
v
,
n
,
MADV_DONTNEED
);
...
...
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