diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/ipa-icf.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 194f390..151cb89 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-01-09 Jan Hubicka <hubicka@ucw.cz> + + * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL + w/o DECL_NAME. + 2016-01-08 Jakub Jelinek <jakub@redhat.com> PR tree-optimization/69167 diff --git a/gcc/ipa-icf.c b/gcc/ipa-icf.c index be5d0b7..aaa6a47 100644 --- a/gcc/ipa-icf.c +++ b/gcc/ipa-icf.c @@ -3400,7 +3400,8 @@ sem_item_optimizer::merge_classes (unsigned int prev_class_count) sem_item *source = c->members[0]; - if (MAIN_NAME_P (DECL_NAME (source->decl))) + if (DECL_NAME (source->decl) + && MAIN_NAME_P (DECL_NAME (source->decl))) /* If merge via wrappers, picking main as the target can be problematic. */ source = c->members[1]; |