+2010-05-28 Uros Bizjak <ubizjak@gmail.com>
+
+ * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
+ (ix86_canonical_va_list_type): Make static. Add declaration.
+ (ix86_enum_va_list): Make static. Reindent.
+ * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
+ (ix86_canonical_va_list_type): Ditto.
+ (ix86_enum_va_list): Ditto.
+
2010-05-28 Richard Guenther <rguenther@suse.de>
* lto-wrapper.c (run_gcc): With -save-temps generate a
rtx, rtx, int);
static void ix86_add_new_builtins (int);
static rtx ix86_expand_vec_perm_builtin (tree);
+static tree ix86_canonical_va_list_type (tree);
enum ix86_function_specific_strings
{
/* This function returns the calling abi specific va_list type node.
It returns the FNDECL specific va_list type. */
-tree
+static tree
ix86_fn_abi_va_list (tree fndecl)
{
if (!TARGET_64BIT)
/* Returns the canonical va_list type specified by TYPE. If there
is no valid TYPE provided, it return NULL_TREE. */
-tree
+static tree
ix86_canonical_va_list_type (tree type)
{
tree wtype, htype;
}
/* Iterate through the target-specific builtin types for va_list.
- IDX denotes the iterator, *PTREE is set to the result type of
- the va_list builtin, and *PNAME to its internal type.
- Returns zero if there is no element for this index, otherwise
- IDX should be increased upon the next call.
- Note, do not iterate a base builtin's name like __builtin_va_list.
- Used from c_common_nodes_and_builtins. */
+ IDX denotes the iterator, *PTREE is set to the result type of
+ the va_list builtin, and *PNAME to its internal type.
+ Returns zero if there is no element for this index, otherwise
+ IDX should be increased upon the next call.
+ Note, do not iterate a base builtin's name like __builtin_va_list.
+ Used from c_common_nodes_and_builtins. */
-int
+static int
ix86_enum_va_list (int idx, const char **pname, tree *ptree)
{
- if (!TARGET_64BIT)
- return 0;
- switch (idx) {
- case 0:
- *ptree = ms_va_list_type_node;
- *pname = "__builtin_ms_va_list";
- break;
- case 1:
- *ptree = sysv_va_list_type_node;
- *pname = "__builtin_sysv_va_list";
- break;
- default:
- return 0;
- }
- return 1;
+ if (TARGET_64BIT)
+ {
+ switch (idx)
+ {
+ default:
+ break;
+
+ case 0:
+ *ptree = ms_va_list_type_node;
+ *pname = "__builtin_ms_va_list";
+ return 1;
+
+ case 1:
+ *ptree = sysv_va_list_type_node;
+ *pname = "__builtin_sysv_va_list";
+ return 1;
+ }
+ }
+
+ return 0;
}
/* Initialize the GCC target structure. */