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

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

From-SVN: r227717
This commit is contained in:
John David Anglin 2015-09-13 15:05:57 +00:00
parent 7b5dccb554
commit 7a84bf7192
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
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>
* config/gthr-rtems.h (__GTHREADS_CXX0X): New.

View File

@ -45,7 +45,7 @@ static int fixup_branch_offset[NOFFSETS] = { 32, -4 };
#define GET_FIELD(X, FROM, TO) \
((X) >> (31 - (TO)) & ((1 << ((TO) - (FROM) + 1)) - 1))
#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;
typedef int (*fptr_t) (void);