mirror of git://gcc.gnu.org/git/gcc.git
mips.h (CASE_VECTOR_MODE): For not TARGET_MIPS16_SHORT_JUMP_TABLES use ptr_mode.
2012-08-25 Richard Sandiford <rdsandiford@googlemail.com>
Andrew Pinski <apinski@cavium.com>
* config/mips/mips.h (CASE_VECTOR_MODE): For not
TARGET_MIPS16_SHORT_JUMP_TABLES use ptr_mode.
(CASE_VECTOR_SHORTEN_MODE): Likewise.
Co-Authored-By: Andrew Pinski <apinski@cavium.com>
From-SVN: r190670
This commit is contained in:
parent
c141b97e70
commit
ca97b221ce
|
|
@ -1,3 +1,10 @@
|
||||||
|
2012-08-25 Richard Sandiford <rdsandiford@googlemail.com>
|
||||||
|
Andrew Pinski <apinski@cavium.com>
|
||||||
|
|
||||||
|
* config/mips/mips.h (CASE_VECTOR_MODE): For not
|
||||||
|
TARGET_MIPS16_SHORT_JUMP_TABLES use ptr_mode.
|
||||||
|
(CASE_VECTOR_SHORTEN_MODE): Likewise.
|
||||||
|
|
||||||
2012-08-25 Uros Bizjak <ubizjak@gmail.com>
|
2012-08-25 Uros Bizjak <ubizjak@gmail.com>
|
||||||
|
|
||||||
* config/i386/i386.h (FP_REG_P): Remove macro.
|
* config/i386/i386.h (FP_REG_P): Remove macro.
|
||||||
|
|
|
||||||
|
|
@ -2336,12 +2336,13 @@ typedef struct mips_args {
|
||||||
|
|
||||||
#define JUMP_TABLES_IN_TEXT_SECTION TARGET_MIPS16_SHORT_JUMP_TABLES
|
#define JUMP_TABLES_IN_TEXT_SECTION TARGET_MIPS16_SHORT_JUMP_TABLES
|
||||||
|
|
||||||
#define CASE_VECTOR_MODE SImode
|
#define CASE_VECTOR_MODE (TARGET_MIPS16_SHORT_JUMP_TABLES ? SImode : ptr_mode)
|
||||||
|
|
||||||
/* Only use short offsets if their range will not overflow. */
|
/* Only use short offsets if their range will not overflow. */
|
||||||
#define CASE_VECTOR_SHORTEN_MODE(MIN, MAX, BODY) \
|
#define CASE_VECTOR_SHORTEN_MODE(MIN, MAX, BODY) \
|
||||||
(TARGET_MIPS16_SHORT_JUMP_TABLES && ((MIN) >= -32768 && (MAX) < 32768) \
|
(!TARGET_MIPS16_SHORT_JUMP_TABLES ? ptr_mode \
|
||||||
? HImode : SImode)
|
: ((MIN) >= -32768 && (MAX) < 32768) ? HImode \
|
||||||
|
: SImode)
|
||||||
|
|
||||||
#define CASE_VECTOR_PC_RELATIVE TARGET_MIPS16_SHORT_JUMP_TABLES
|
#define CASE_VECTOR_PC_RELATIVE TARGET_MIPS16_SHORT_JUMP_TABLES
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue