ia64.c (ia64_c_mode_for_suffix): New.

* config/ia64/ia64.c (ia64_c_mode_for_suffix): New.
	(TARGET_C_MODE_FOR_SUFFIX): New.

From-SVN: r127247
This commit is contained in:
Steve Ellcey 2007-08-06 18:04:33 +00:00 committed by Steve Ellcey
parent b441fbb053
commit a31fa2e0d3
2 changed files with 22 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2007-08-06 Steve Ellcey <sje@cup.hp.com>
* config/ia64/ia64.c (ia64_c_mode_for_suffix): New.
(TARGET_C_MODE_FOR_SUFFIX): New.
2007-08-06 Steve Ellcey <sje@cup.hp.com>
* config/ia64/div.md (m2subrf4_cond): Change 'g' to 'G'.

View File

@ -282,6 +282,7 @@ static const char *ia64_mangle_type (tree);
static const char *ia64_invalid_conversion (tree, tree);
static const char *ia64_invalid_unary_op (int, tree);
static const char *ia64_invalid_binary_op (int, tree, tree);
static enum machine_mode ia64_c_mode_for_suffix (char);
/* Table of valid machine attributes. */
static const struct attribute_spec ia64_attribute_table[] =
@ -485,6 +486,9 @@ static const struct attribute_spec ia64_attribute_table[] =
#undef TARGET_INVALID_BINARY_OP
#define TARGET_INVALID_BINARY_OP ia64_invalid_binary_op
#undef TARGET_C_MODE_FOR_SUFFIX
#define TARGET_C_MODE_FOR_SUFFIX ia64_c_mode_for_suffix
struct gcc_target targetm = TARGET_INITIALIZER;
typedef enum
@ -9849,4 +9853,17 @@ ia64_handle_version_id_attribute (tree *node ATTRIBUTE_UNUSED,
return NULL_TREE;
}
/* Target hook for c_mode_for_suffix. */
static enum machine_mode
ia64_c_mode_for_suffix (char suffix)
{
if (suffix == 'q')
return TFmode;
if (suffix == 'w')
return XFmode;
return VOIDmode;
}
#include "gt-ia64.h"