]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* config/i386/i386.c (ix86_fn_abi_va_list): Make static.
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 28 May 2010 12:59:32 +0000 (12:59 +0000)
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 28 May 2010 12:59:32 +0000 (12:59 +0000)
(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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159968 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/i386/i386-protos.h
gcc/config/i386/i386.c

index 8925b5a666934d2a7b9b7c1aee5378b79542866d..5c51b843e20dd82926f3ff78fdcda4c16e89a075 100644 (file)
@@ -1,3 +1,12 @@
+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
index 9af67b301c6230186914ba5817f7918d5bdeb436..eaff7ab505815bb707895876bdcb01495690729a 100644 (file)
@@ -192,10 +192,6 @@ extern void function_arg_advance (CUMULATIVE_ARGS *, enum machine_mode,
 #endif /* RTX_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_data_alignment (tree, int);
index c26a7323ee471e9c90641f48684ad75b2d5453f6..c9ac621e32b275de1d78db1216a61a951bbfdc00 100644 (file)
@@ -1981,6 +1981,7 @@ static bool ix86_expand_vector_init_one_nonzero (bool, enum machine_mode,
                                                 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
 {
@@ -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.
    It returns  the FNDECL specific va_list type.  */
 
-tree
+static tree
 ix86_fn_abi_va_list (tree fndecl)
 {
   if (!TARGET_64BIT)
@@ -30498,7 +30499,7 @@ ix86_fn_abi_va_list (tree fndecl)
 /* 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;
@@ -30571,31 +30572,36 @@ ix86_canonical_va_list_type (tree type)
 }
 
 /* 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.  */