aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2017-05-18 13:03:55 +0000
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2017-05-18 13:03:55 +0000
commit8eb8a179e2ab35163ed0ecc9820015c0acdbbef4 (patch)
tree8d21b271592578b37477a6e59fa09cff9a32da98
parent6f6c873e4ff09265fe96c08d58a72db98abc0678 (diff)
* c-decl.c (pushdecl_top_level): Delete unused function.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@248199 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/c/ChangeLog4
-rw-r--r--gcc/c/c-decl.c28
2 files changed, 4 insertions, 28 deletions
diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog
index 1f572a76df0..f747e08e66e 100644
--- a/gcc/c/ChangeLog
+++ b/gcc/c/ChangeLog
@@ -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.
diff --git a/gcc/c/c-decl.c b/gcc/c/c-decl.c
index da1e2c409e6..237e910df96 100644
--- a/gcc/c/c-decl.c
+++ b/gcc/c/c-decl.c
@@ -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;
-}
/* Issue a warning about implicit function declaration. ID is the function