mirror of git://gcc.gnu.org/git/gcc.git
cris.c (cris_atomic_align_for_mode): New function.
* config/cris/cris.c (cris_atomic_align_for_mode): New function. (TARGET_ATOMIC_ALIGN_FOR_MODE): Define. From-SVN: r205276
This commit is contained in:
parent
e52876717c
commit
faee0106d8
|
|
@ -1,3 +1,8 @@
|
||||||
|
2013-11-22 Hans-Peter Nilsson <hp@axis.com>
|
||||||
|
|
||||||
|
* config/cris/cris.c (cris_atomic_align_for_mode): New function.
|
||||||
|
(TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
|
||||||
|
|
||||||
2013-11-22 Yuri Rumyantsev <ysrumyan@gmail.com>
|
2013-11-22 Yuri Rumyantsev <ysrumyan@gmail.com>
|
||||||
|
|
||||||
* config/i386/i386.c(processor_alias_table): Enable PTA_AES,
|
* config/i386/i386.c(processor_alias_table): Enable PTA_AES,
|
||||||
|
|
|
||||||
|
|
@ -93,6 +93,8 @@ static int cris_reg_overlap_mentioned_p (rtx, rtx);
|
||||||
static enum machine_mode cris_promote_function_mode (const_tree, enum machine_mode,
|
static enum machine_mode cris_promote_function_mode (const_tree, enum machine_mode,
|
||||||
int *, const_tree, int);
|
int *, const_tree, int);
|
||||||
|
|
||||||
|
static unsigned int cris_atomic_align_for_mode (enum machine_mode);
|
||||||
|
|
||||||
static void cris_print_base (rtx, FILE *);
|
static void cris_print_base (rtx, FILE *);
|
||||||
|
|
||||||
static void cris_print_index (rtx, FILE *);
|
static void cris_print_index (rtx, FILE *);
|
||||||
|
|
@ -227,6 +229,9 @@ int cris_cpu_version = CRIS_DEFAULT_CPU_VERSION;
|
||||||
#undef TARGET_PROMOTE_FUNCTION_MODE
|
#undef TARGET_PROMOTE_FUNCTION_MODE
|
||||||
#define TARGET_PROMOTE_FUNCTION_MODE cris_promote_function_mode
|
#define TARGET_PROMOTE_FUNCTION_MODE cris_promote_function_mode
|
||||||
|
|
||||||
|
#undef TARGET_ATOMIC_ALIGN_FOR_MODE
|
||||||
|
#define TARGET_ATOMIC_ALIGN_FOR_MODE cris_atomic_align_for_mode
|
||||||
|
|
||||||
#undef TARGET_STRUCT_VALUE_RTX
|
#undef TARGET_STRUCT_VALUE_RTX
|
||||||
#define TARGET_STRUCT_VALUE_RTX cris_struct_value_rtx
|
#define TARGET_STRUCT_VALUE_RTX cris_struct_value_rtx
|
||||||
#undef TARGET_SETUP_INCOMING_VARARGS
|
#undef TARGET_SETUP_INCOMING_VARARGS
|
||||||
|
|
@ -4019,6 +4024,14 @@ cris_promote_function_mode (const_tree type ATTRIBUTE_UNUSED,
|
||||||
return CRIS_PROMOTED_MODE (mode, *punsignedp, type);
|
return CRIS_PROMOTED_MODE (mode, *punsignedp, type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Atomic types require alignment to be at least their "natural" size. */
|
||||||
|
|
||||||
|
static unsigned int
|
||||||
|
cris_atomic_align_for_mode (enum machine_mode mode)
|
||||||
|
{
|
||||||
|
return GET_MODE_BITSIZE (mode);
|
||||||
|
}
|
||||||
|
|
||||||
/* Let's assume all functions return in r[CRIS_FIRST_ARG_REG] for the
|
/* Let's assume all functions return in r[CRIS_FIRST_ARG_REG] for the
|
||||||
time being. */
|
time being. */
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue