Commit 0884546e by Ben Elliston Committed by Ben Elliston

targhooks.h (default_decimal_float_supported_p): Declare.

	* targhooks.h (default_decimal_float_supported_p): Declare.
	* targhooks.c (default_decimal_float_supported_p): Define.
	* target-def.h (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Redefine to
	`default_decimal_float_supported_p'.
	* doc/tm.texi (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Update.

From-SVN: r109262
parent f13f406e
2006-01-03 Ben Elliston <bje@au.ibm.com>
* targhooks.h (default_decimal_float_supported_p): Declare.
* targhooks.c (default_decimal_float_supported_p): Define.
* target-def.h (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Redefine to
`default_decimal_float_supported_p'.
* doc/tm.texi (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Update.
2006-01-02 Adam Nemet <anemet@caviumnetworks.com>
* combine.c (apply_distributive_law <SUBREG>): Check
......
......@@ -1423,7 +1423,6 @@ may affect its placement.
@deftypefn {Target Hook} {bool} TARGET_DECIMAL_FLOAT_SUPPORTED_P (void)
Returns true if the target supports decimal floating point.
The default version of this hook always returns false.
@end deftypefn
@deftypefn {Target Hook} {const char *} TARGET_MANGLE_FUNDAMENTAL_TYPE (tree @var{type})
......
......@@ -339,6 +339,10 @@ Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#define TARGET_SCALAR_MODE_SUPPORTED_P default_scalar_mode_supported_p
#endif
#ifndef TARGET_DECIMAL_FLOAT_SUPPORTED_P
#define TARGET_DECIMAL_FLOAT_SUPPORTED_P default_decimal_float_supported_p
#endif
#ifndef TARGET_VECTOR_MODE_SUPPORTED_P
#define TARGET_VECTOR_MODE_SUPPORTED_P hook_bool_mode_false
#endif
......@@ -366,10 +370,6 @@ Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#define TARGET_MANGLE_FUNDAMENTAL_TYPE hook_constcharptr_tree_null
#define TARGET_ALLOCATE_INITIAL_VALUE NULL
#ifndef TARGET_DECIMAL_FLOAT_SUPPORTED_P
#define TARGET_DECIMAL_FLOAT_SUPPORTED_P hook_bool_void_false
#endif
#ifndef TARGET_INIT_LIBFUNCS
#define TARGET_INIT_LIBFUNCS hook_void_void
#endif
......
......@@ -270,6 +270,14 @@ default_scalar_mode_supported_p (enum machine_mode mode)
}
}
/* True if the target supports decimal floating point. */
bool
default_decimal_float_supported_p (void)
{
return ENABLE_DECIMAL_FLOAT;
}
/* NULL if INSN insn is valid within a low-overhead loop, otherwise returns
an error message.
......
......@@ -49,6 +49,7 @@ extern bool hook_callee_copies_named
extern void default_unwind_emit (FILE *, rtx);
extern bool default_scalar_mode_supported_p (enum machine_mode);
extern bool default_decimal_float_supported_p (void);
extern const char * default_invalid_within_doloop (rtx);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment