Skip to content
This repository has been archived by the owner on Jun 20, 2019. It is now read-only.

Commit

Permalink
Bug 94 - ICE in bootstrapping with GCC HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuclaw committed Feb 2, 2014
1 parent 19bc497 commit 6ed2b58
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions gcc/d/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2014-02-02 Iain Buclaw <ibuclaw@gdcproject.org>

* d-decls.cc(ClassDeclaration::toVtblSymbol): Don't mark __vtbl
symbols as virtual. They are global static symbols.

2014-01-12 Iain Buclaw <ibuclaw@gdcproject.org>

* d-decls.cc(EnumDeclaration::toDebug): Build TYPE_DECL only for
Expand Down
3 changes: 1 addition & 2 deletions gcc/d/d-decls.cc
Original file line number Diff line number Diff line change
Expand Up @@ -663,10 +663,9 @@ ClassDeclaration::toVtblSymbol (void)
TREE_READONLY (decl) = 1;
TREE_CONSTANT (decl) = 1;
TREE_ADDRESSABLE (decl) = 1;
// from cp/class.c

DECL_CONTEXT (decl) = d_decl_context (this);
DECL_ARTIFICIAL (decl) = 1;
DECL_VIRTUAL_P (decl) = 1;
DECL_ALIGN (decl) = TARGET_VTABLE_ENTRY_ALIGN;
}
return vtblsym;
Expand Down

0 comments on commit 6ed2b58

Please sign in to comment.