mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_synci if TARGET_SYNCI.

gcc/
	* config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_synci
	if TARGET_SYNCI.

gcc/testsuite/
	* gcc.target/mips/mips.exp: Work out default -msynci setting.

From-SVN: r190784
This commit is contained in:
Richard Sandiford 2012-08-29 18:57:49 +00:00 committed by Richard Sandiford
parent 1860430ab5
commit 166c02bde9
4 changed files with 18 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2012-08-29 Richard Sandiford <rdsandiford@googlemail.com>
* config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_synci
if TARGET_SYNCI.
2012-08-29 Oleg Endo <olegendo@gcc.gnu.org>
* config/sh/sh.opt (menable-tas): Rename to mtas.

View File

@ -517,6 +517,9 @@ struct mips_cpu_info {
if (TARGET_OCTEON) \
builtin_define ("__OCTEON__"); \
\
if (TARGET_SYNCI) \
builtin_define ("__mips_synci"); \
\
/* Macros dependent on the C dialect. */ \
if (preprocessing_asm_p ()) \
{ \

View File

@ -1,3 +1,7 @@
2012-08-29 Richard Sandiford <rdsandiford@googlemail.com>
* gcc.target/mips/mips.exp: Work out default -msynci setting.
2012-08-28 Joey Ye <joey.ye@arm.com>
* gcc.dg/tree-ssa/ssa-dom-thread-3.c: Add -fno-short-enums.

View File

@ -767,6 +767,12 @@ proc mips-dg-init {} {
"-mno-smartmips",
#endif
#ifdef __mips_synci
"-msynci",
#else
"-mno-synci",
#endif
0
};
}]