diff options
Diffstat (limited to 'gcc')
| -rw-r--r-- | gcc/varasm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c index 4835c30..2a0ad5f 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -1259,7 +1259,8 @@ notice_global_symbol (tree decl) const char **type = &first_global_object_name; if (first_global_object_name - || !TREE_PUBLIC (decl) || DECL_EXTERNAL (decl) + || !TREE_PUBLIC (decl) + || DECL_EXTERNAL (decl) || !DECL_NAME (decl) || (TREE_CODE (decl) != FUNCTION_DECL && (TREE_CODE (decl) != VAR_DECL |
