Commit 8bf85f21 by Uros Bizjak Committed by Uros Bizjak

i386.c (ix86_fn_abi_va_list): Make static.

	* 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.

From-SVN: r159968
parent b5611987
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> 2010-05-28 Richard Guenther <rguenther@suse.de>
* lto-wrapper.c (run_gcc): With -save-temps generate a * lto-wrapper.c (run_gcc): With -save-temps generate a
......
...@@ -192,10 +192,6 @@ extern void function_arg_advance (CUMULATIVE_ARGS *, enum machine_mode, ...@@ -192,10 +192,6 @@ extern void function_arg_advance (CUMULATIVE_ARGS *, enum machine_mode,
#endif /* RTX_CODE */ #endif /* RTX_CODE */
#ifdef TREE_CODE #ifdef TREE_CODE
extern int ix86_enum_va_list (int, const char **, tree *);
extern tree ix86_fn_abi_va_list (tree);
extern tree ix86_canonical_va_list_type (tree);
extern int ix86_return_pops_args (tree, tree, int); extern int ix86_return_pops_args (tree, tree, int);
extern int ix86_data_alignment (tree, int); extern int ix86_data_alignment (tree, int);
......
...@@ -1981,6 +1981,7 @@ static bool ix86_expand_vector_init_one_nonzero (bool, enum machine_mode, ...@@ -1981,6 +1981,7 @@ static bool ix86_expand_vector_init_one_nonzero (bool, enum machine_mode,
rtx, rtx, int); rtx, rtx, int);
static void ix86_add_new_builtins (int); static void ix86_add_new_builtins (int);
static rtx ix86_expand_vec_perm_builtin (tree); static rtx ix86_expand_vec_perm_builtin (tree);
static tree ix86_canonical_va_list_type (tree);
enum ix86_function_specific_strings enum ix86_function_specific_strings
{ {
...@@ -30482,7 +30483,7 @@ ix86_expand_vec_extract_even_odd (rtx targ, rtx op0, rtx op1, unsigned odd) ...@@ -30482,7 +30483,7 @@ ix86_expand_vec_extract_even_odd (rtx targ, rtx op0, rtx op1, unsigned odd)
/* This function returns the calling abi specific va_list type node. /* This function returns the calling abi specific va_list type node.
It returns the FNDECL specific va_list type. */ It returns the FNDECL specific va_list type. */
tree static tree
ix86_fn_abi_va_list (tree fndecl) ix86_fn_abi_va_list (tree fndecl)
{ {
if (!TARGET_64BIT) if (!TARGET_64BIT)
...@@ -30498,7 +30499,7 @@ ix86_fn_abi_va_list (tree fndecl) ...@@ -30498,7 +30499,7 @@ ix86_fn_abi_va_list (tree fndecl)
/* Returns the canonical va_list type specified by TYPE. If there /* Returns the canonical va_list type specified by TYPE. If there
is no valid TYPE provided, it return NULL_TREE. */ is no valid TYPE provided, it return NULL_TREE. */
tree static tree
ix86_canonical_va_list_type (tree type) ix86_canonical_va_list_type (tree type)
{ {
tree wtype, htype; tree wtype, htype;
...@@ -30578,24 +30579,29 @@ ix86_canonical_va_list_type (tree type) ...@@ -30578,24 +30579,29 @@ ix86_canonical_va_list_type (tree type)
Note, do not iterate a base builtin's name like __builtin_va_list. Note, do not iterate a base builtin's name like __builtin_va_list.
Used from c_common_nodes_and_builtins. */ Used from c_common_nodes_and_builtins. */
int static int
ix86_enum_va_list (int idx, const char **pname, tree *ptree) ix86_enum_va_list (int idx, const char **pname, tree *ptree)
{ {
if (!TARGET_64BIT) if (TARGET_64BIT)
return 0; {
switch (idx) { switch (idx)
{
default:
break;
case 0: case 0:
*ptree = ms_va_list_type_node; *ptree = ms_va_list_type_node;
*pname = "__builtin_ms_va_list"; *pname = "__builtin_ms_va_list";
break; return 1;
case 1: case 1:
*ptree = sysv_va_list_type_node; *ptree = sysv_va_list_type_node;
*pname = "__builtin_sysv_va_list"; *pname = "__builtin_sysv_va_list";
break;
default:
return 0;
}
return 1; return 1;
}
}
return 0;
} }
/* Initialize the GCC target structure. */ /* Initialize the GCC target structure. */
......
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