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
7a84bf71
Commit
7a84bf71
authored
Sep 13, 2015
by
John David Anglin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fptr.c (SIGN_EXTEND): Cast -1 to unsigned.
* config/pa/fptr.c (SIGN_EXTEND): Cast -1 to unsigned. From-SVN: r227717
parent
7b5dccb5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
+5
-1
libgcc/ChangeLog
+4
-0
libgcc/config/pa/fptr.c
+1
-1
No files found.
libgcc/ChangeLog
View file @
7a84bf71
2015
-
09
-
13
John
David
Anglin
<
danglin
@
gcc
.
gnu
.
org
>
*
config
/
pa
/
fptr
.
c
(
SIGN_EXTEND
):
Cast
-
1
to
unsigned
.
2015
-
09
-
03
Sebastian
Huber
<
sebastian
.
huber
@
embedded
-
brains
.
de
>
2015
-
09
-
03
Sebastian
Huber
<
sebastian
.
huber
@
embedded
-
brains
.
de
>
*
config
/
gthr
-
rtems
.
h
(
__GTHREADS_CXX0X
):
New
.
*
config
/
gthr
-
rtems
.
h
(
__GTHREADS_CXX0X
):
New
.
...
...
libgcc/config/pa/fptr.c
View file @
7a84bf71
...
@@ -45,7 +45,7 @@ static int fixup_branch_offset[NOFFSETS] = { 32, -4 };
...
@@ -45,7 +45,7 @@ static int fixup_branch_offset[NOFFSETS] = { 32, -4 };
#define GET_FIELD(X, FROM, TO) \
#define GET_FIELD(X, FROM, TO) \
((X) >> (31 - (TO)) & ((1 << ((TO) - (FROM) + 1)) - 1))
((X) >> (31 - (TO)) & ((1 << ((TO) - (FROM) + 1)) - 1))
#define SIGN_EXTEND(VAL,BITS) \
#define SIGN_EXTEND(VAL,BITS) \
((int) ((VAL) >> ((BITS) - 1) ? (
-1
<< (BITS)) | (VAL) : (VAL)))
((int) ((VAL) >> ((BITS) - 1) ? (
(unsigned)(-1)
<< (BITS)) | (VAL) : (VAL)))
struct
link_map
;
struct
link_map
;
typedef
int
(
*
fptr_t
)
(
void
);
typedef
int
(
*
fptr_t
)
(
void
);
...
...
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