Commit c517fc92 by Jan Hubicka Committed by Jan Hubicka

rtti.c: Include tm_p.h


	* rtti.c: Include tm_p.h
	(emit_tinfo_decl): Force RTTI data to be aligned to required
	ABI alignment only.

From-SVN: r210887
parent 8ce8d98e
2014-05-23 Jan Hubicka <hubicka@ucw.cz> 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
* rtti.c: Include tm_p.h
(emit_tinfo_decl): Force RTTI data to be aligned to required
ABI alignment only.
2014-05-23 Jan Hubicka <hubicka@ucw.cz>
* class.c (build_vtable): Align vtables to TARGET_VTABLE_ENTRY_ALIGN * class.c (build_vtable): Align vtables to TARGET_VTABLE_ENTRY_ALIGN
ignoring other target adjustments. ignoring other target adjustments.
......
...@@ -24,6 +24,7 @@ along with GCC; see the file COPYING3. If not see ...@@ -24,6 +24,7 @@ along with GCC; see the file COPYING3. If not see
#include "coretypes.h" #include "coretypes.h"
#include "tm.h" #include "tm.h"
#include "tree.h" #include "tree.h"
#include "tm_p.h"
#include "stringpool.h" #include "stringpool.h"
#include "stor-layout.h" #include "stor-layout.h"
#include "cp-tree.h" #include "cp-tree.h"
...@@ -1596,6 +1597,12 @@ emit_tinfo_decl (tree decl) ...@@ -1596,6 +1597,12 @@ emit_tinfo_decl (tree decl)
DECL_INITIAL (decl) = init; DECL_INITIAL (decl) = init;
mark_used (decl); mark_used (decl);
cp_finish_decl (decl, init, false, NULL_TREE, 0); cp_finish_decl (decl, init, false, NULL_TREE, 0);
/* Avoid targets optionally bumping up the alignment to improve
vector instruction accesses, tinfo are never accessed this way. */
#ifdef DATA_ABI_ALIGNMENT
DECL_ALIGN (decl) = DATA_ABI_ALIGNMENT (decl, TYPE_ALIGN (TREE_TYPE (decl)));
DECL_USER_ALIGN (decl) = true;
#endif
return true; return true;
} }
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment