diff options
author | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2017-05-19 14:39:44 +0000 |
---|---|---|
committer | Bernd Edlinger <edlinger@gcc.gnu.org> | 2017-05-19 14:39:44 +0000 |
commit | ff50231797977a56a0d256db645f1e004c6acf00 (patch) | |
tree | 643c9cb26148aa80dea4f81997110158d3bee05f /gcc/cp/class.c | |
parent | 6f2f4050aacf448f1e63a844845a1d0e7cde59ca (diff) | |
download | gcc-ff50231797977a56a0d256db645f1e004c6acf00.zip gcc-ff50231797977a56a0d256db645f1e004c6acf00.tar.gz gcc-ff50231797977a56a0d256db645f1e004c6acf00.tar.bz2 |
c-format.c (locus): Move out of function scope, add GTY attribute.
gcc/c-family:
2017-05-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
* c-format.c (locus): Move out of function scope,
add GTY attribute.
gcc/cp:
2017-05-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
* config-lang.in (gtfiles): Add c-family/c-format.c,
except.c, init.c, lambda.c and friend.c.
* class.c (dvirt_fn): Move out of function scope,
add GTY attribute.
* except.c (fn1-5, throw_fn, rethrow_fn, spec): Likewise.
* init.c (fn): Likewise.
* lambda.c (ptr_id, max_id): Likewise.
* friend.c (global_friend): Add GTY attribute.
From-SVN: r248290
Diffstat (limited to 'gcc/cp/class.c')
-rw-r--r-- | gcc/cp/class.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/cp/class.c b/gcc/cp/class.c index c0eb945..984fb09 100644 --- a/gcc/cp/class.c +++ b/gcc/cp/class.c @@ -9547,6 +9547,7 @@ dfs_accumulate_vtbl_inits (tree binfo, } static GTY(()) tree abort_fndecl_addr; +static GTY(()) tree dvirt_fn; /* Construct the initializer for BINFO's virtual function table. BINFO is part of the hierarchy dominated by T. If we're building a @@ -9720,8 +9721,6 @@ build_vtbl_initializer (tree binfo, /* Likewise for deleted virtuals. */ else if (DECL_DELETED_FN (fn_original)) { - static tree dvirt_fn; - if (!dvirt_fn) { tree name = get_identifier ("__cxa_deleted_virtual"); |