rs6000.c (rs6000_explicit_options): Make static.
* config/rs6000/rs6000.c (rs6000_explicit_options): Make static. (rs6000_attribute_table): Make static; move before use. From-SVN: r148738
This commit is contained in:
parent
47ff3434c7
commit
c885ca8996
@ -1,3 +1,8 @@
|
||||
2009-06-19 Ian Lance Taylor <iant@google.com>
|
||||
|
||||
* config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
|
||||
(rs6000_attribute_table): Make static; move before use.
|
||||
|
||||
2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
|
||||
|
||||
* tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
|
||||
|
@ -258,7 +258,7 @@ static GTY(()) section *toc_section;
|
||||
int rs6000_alignment_flags;
|
||||
|
||||
/* True for any options that were explicitly set. */
|
||||
struct {
|
||||
static struct {
|
||||
bool aix_struct_ret; /* True if -maix-struct-ret was used. */
|
||||
bool alignment; /* True if -malign- was used. */
|
||||
bool spe_abi; /* True if -mabi=spe/no-spe was used. */
|
||||
@ -775,7 +775,6 @@ static bool rs6000_ms_bitfield_layout_p (const_tree);
|
||||
static tree rs6000_handle_struct_attribute (tree *, tree, tree, int, bool *);
|
||||
static void rs6000_eliminate_indexed_memrefs (rtx operands[2]);
|
||||
static const char *rs6000_mangle_type (const_tree);
|
||||
EXPORTED_CONST struct attribute_spec rs6000_attribute_table[];
|
||||
static void rs6000_set_default_type_attributes (tree);
|
||||
static rtx rs6000_savres_routine_sym (rs6000_stack_t *, bool, bool, bool);
|
||||
static rtx rs6000_emit_stack_reset (rs6000_stack_t *, rtx, rtx, int, bool);
|
||||
@ -1034,6 +1033,22 @@ static const char alt_reg_names[][8] =
|
||||
"sfp"
|
||||
};
|
||||
#endif
|
||||
|
||||
/* Table of valid machine attributes. */
|
||||
|
||||
static const struct attribute_spec rs6000_attribute_table[] =
|
||||
{
|
||||
/* { name, min_len, max_len, decl_req, type_req, fn_type_req, handler } */
|
||||
{ "altivec", 1, 1, false, true, false, rs6000_handle_altivec_attribute },
|
||||
{ "longcall", 0, 0, false, true, true, rs6000_handle_longcall_attribute },
|
||||
{ "shortcall", 0, 0, false, true, true, rs6000_handle_longcall_attribute },
|
||||
{ "ms_struct", 0, 0, false, false, false, rs6000_handle_struct_attribute },
|
||||
{ "gcc_struct", 0, 0, false, false, false, rs6000_handle_struct_attribute },
|
||||
#ifdef SUBTARGET_ATTRIBUTE_TABLE
|
||||
SUBTARGET_ATTRIBUTE_TABLE,
|
||||
#endif
|
||||
{ NULL, 0, 0, false, false, false, NULL }
|
||||
};
|
||||
|
||||
#ifndef MASK_STRICT_ALIGN
|
||||
#define MASK_STRICT_ALIGN 0
|
||||
@ -20571,22 +20586,6 @@ rs6000_initialize_trampoline (rtx addr, rtx fnaddr, rtx cxt)
|
||||
}
|
||||
|
||||
|
||||
/* Table of valid machine attributes. */
|
||||
|
||||
const struct attribute_spec rs6000_attribute_table[] =
|
||||
{
|
||||
/* { name, min_len, max_len, decl_req, type_req, fn_type_req, handler } */
|
||||
{ "altivec", 1, 1, false, true, false, rs6000_handle_altivec_attribute },
|
||||
{ "longcall", 0, 0, false, true, true, rs6000_handle_longcall_attribute },
|
||||
{ "shortcall", 0, 0, false, true, true, rs6000_handle_longcall_attribute },
|
||||
{ "ms_struct", 0, 0, false, false, false, rs6000_handle_struct_attribute },
|
||||
{ "gcc_struct", 0, 0, false, false, false, rs6000_handle_struct_attribute },
|
||||
#ifdef SUBTARGET_ATTRIBUTE_TABLE
|
||||
SUBTARGET_ATTRIBUTE_TABLE,
|
||||
#endif
|
||||
{ NULL, 0, 0, false, false, false, NULL }
|
||||
};
|
||||
|
||||
/* Handle the "altivec" attribute. The attribute may have
|
||||
arguments as follows:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user