Commit 7a84bf71 by John David Anglin

fptr.c (SIGN_EXTEND): Cast -1 to unsigned.

	* config/pa/fptr.c (SIGN_EXTEND): Cast -1 to unsigned.

From-SVN: r227717
parent 7b5dccb5
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.
......
...@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment