diff options
author | Bernd Schmidt <bernds@codesourcery.com> | 2014-11-06 17:19:48 +0000 |
---|---|---|
committer | Bernd Schmidt <bernds@gcc.gnu.org> | 2014-11-06 17:19:48 +0000 |
commit | dc2af904c90c2644c2d8364c68e42264e854ff2a (patch) | |
tree | 4e848cc26ba0119f178b8262c8ae3d830b4ed5bb /gcc/varasm.c | |
parent | 4ad4ebfeae632ead1aa06203690ec7701569bb2f (diff) | |
download | gcc-dc2af904c90c2644c2d8364c68e42264e854ff2a.zip gcc-dc2af904c90c2644c2d8364c68e42264e854ff2a.tar.gz gcc-dc2af904c90c2644c2d8364c68e42264e854ff2a.tar.bz2 |
Add a new asm hook to print the end of a variable definition.
* target.def (decl_end): New hook.
* varasm.c (assemble_variable_contents, assemble_constant_contents):
Use it.
* doc/tm.texi.in (TARGET_ASM_DECL_END): Add.
* doc/tm.texi: Regenerate.
From-SVN: r217196
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r-- | gcc/varasm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c index 40eeb5e..8d857a4 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -2041,6 +2041,7 @@ assemble_variable_contents (tree decl, const char *name, else /* Leave space for it. */ assemble_zeros (tree_to_uhwi (DECL_SIZE_UNIT (decl))); + targetm.asm_out.decl_end (); } } @@ -3347,6 +3348,8 @@ assemble_constant_contents (tree exp, const char *label, unsigned int align) /* Output the value of EXP. */ output_constant (exp, size, align); + + targetm.asm_out.decl_end (); } /* We must output the constant data referred to by SYMBOL; do so. */ |