* c-decl.c (pushdecl_top_level): Delete unused function.
authorNathan Sidwell <nathan@acm.org>
Thu, 18 May 2017 13:03:55 +0000 (13:03 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Thu, 18 May 2017 13:03:55 +0000 (13:03 +0000)
From-SVN: r248199

gcc/c/ChangeLog
gcc/c/c-decl.c

index 1f572a7..f747e08 100644 (file)
@@ -1,3 +1,7 @@
+2017-05-18  Nathan Sidwell  <nathan@acm.org>
+
+       * c-decl.c (pushdecl_top_level): Delete unused function.
+
 2017-05-18  Marek Polacek  <polacek@redhat.com>
 
        * c-decl.c (match_builtin_function_types): Use NULL_TREE instead of 0.
index da1e2c4..237e910 100644 (file)
@@ -3089,34 +3089,6 @@ pushdecl (tree x)
     }
   return x;
 }
-
-/* Record X as belonging to file scope.
-   This is used only internally by the Objective-C front end,
-   and is limited to its needs.  duplicate_decls is not called;
-   if there is any preexisting decl for this identifier, it is an ICE.  */
-
-tree
-pushdecl_top_level (tree x)
-{
-  tree name;
-  bool nested = false;
-  gcc_assert (VAR_P (x) || TREE_CODE (x) == CONST_DECL);
-
-  name = DECL_NAME (x);
-
- gcc_assert (TREE_CODE (x) == CONST_DECL || !I_SYMBOL_BINDING (name));
-
-  if (TREE_PUBLIC (x))
-    {
-      bind (name, x, external_scope, /*invisible=*/true, /*nested=*/false,
-           UNKNOWN_LOCATION);
-      nested = true;
-    }
-  if (file_scope)
-    bind (name, x, file_scope, /*invisible=*/false, nested, UNKNOWN_LOCATION);
-
-  return x;
-}
 \f
 
 /* Issue a warning about implicit function declaration.  ID is the function