re PR target/81473 ([avr] build fails due to INT8_MIN and friends.)
gcc/ PR target/81473 * config/avr/avr.c (avr_optimize_casesi): Don't use INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX. From-SVN: r250301
This commit is contained in:
parent
ec15a15207
commit
f94f48ffac
2 changed files with 9 additions and 3 deletions
|
@ -1,3 +1,9 @@
|
|||
2017-07-18 Georg-Johann Lay <avr@gjlay.de>
|
||||
|
||||
PR target/81473
|
||||
* config/avr/avr.c (avr_optimize_casesi): Don't use
|
||||
INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX.
|
||||
|
||||
2017-07-18 Robin Dapp <rdapp@linux.vnet.ibm.com>
|
||||
|
||||
* tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Remove
|
||||
|
|
|
@ -553,9 +553,9 @@ avr_optimize_casesi (rtx_insn *insns[6], rtx *xop)
|
|||
HOST_WIDE_INT hig_idx = low_idx + num_idx;
|
||||
|
||||
// Maximum ranges of (un)signed QImode resp. HImode.
|
||||
int imin = QImode == mode ? INT8_MIN : INT16_MIN;
|
||||
int imax = QImode == mode ? INT8_MAX : INT16_MAX;
|
||||
unsigned umax = QImode == mode ? UINT8_MAX : UINT16_MAX;
|
||||
unsigned umax = QImode == mode ? 0xff : 0xffff;
|
||||
int imax = QImode == mode ? 0x7f : 0x7fff;
|
||||
int imin = -imax - 1;
|
||||
|
||||
// Testing the case range and whether it fits into the range of the
|
||||
// (un)signed mode. This test should actually always pass because it
|
||||
|
|
Loading…
Add table
Reference in a new issue