aboutsummaryrefslogtreecommitdiff
path: root/gcc/symtab.c
diff options
context:
space:
mode:
authorTrevor Saunders <tsaunders@mozilla.com>2014-12-08 00:35:33 +0000
committerTrevor Saunders <tbsaunde@gcc.gnu.org>2014-12-08 00:35:33 +0000
commitb0122457bc82d5ae39a9b32655713dd279224ed4 (patch)
tree6fde94058fb755b85e710ae0f24c5c311127ea97 /gcc/symtab.c
parent35efb9ac399c35b12a330aedea8933fdb55f8a61 (diff)
downloadgcc-b0122457bc82d5ae39a9b32655713dd279224ed4.zip
gcc-b0122457bc82d5ae39a9b32655713dd279224ed4.tar.gz
gcc-b0122457bc82d5ae39a9b32655713dd279224ed4.tar.bz2
don't ICE when section attribute is used on things in comdats
gcc/ PR ipa/63621 * symtab.c (symtab_node::verify): Check for section attribute before asserting something isn't in a section and a comdat group. From-SVN: r218476
Diffstat (limited to 'gcc/symtab.c')
-rw-r--r--gcc/symtab.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/symtab.c b/gcc/symtab.c
index 3eceb88..101bc25 100644
--- a/gcc/symtab.c
+++ b/gcc/symtab.c
@@ -1102,7 +1102,8 @@ symtab_node::verify_base (void)
error_found = true;
}
if (get_section () && get_comdat_group ()
- && !implicit_section)
+ && !implicit_section
+ && !lookup_attribute ("section", DECL_ATTRIBUTES (decl)))
{
error ("Both section and comdat group is set");
error_found = true;