aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2016-07-21 12:25:00 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2016-07-21 12:25:00 +0000
commit01771d4361d3fc7e89e292db5f15aa11783e7ec7 (patch)
tree6ccb528b6e7bd8484f44e339a0245205bba13e7e /gcc/cp
parentc7880c8c9220bd7cad0a711130417fd34c7d8497 (diff)
downloadgcc-01771d4361d3fc7e89e292db5f15aa11783e7ec7.zip
gcc-01771d4361d3fc7e89e292db5f15aa11783e7ec7.tar.gz
gcc-01771d4361d3fc7e89e292db5f15aa11783e7ec7.tar.bz2
function-tests.c (build_trivial_generic_function): Set BLOCK_SUPERCONTEXT of DECL_INITIAL.
2016-07-21 Richard Biener <rguenther@suse.de> * function-tests.c (build_trivial_generic_function): Set BLOCK_SUPERCONTEXT of DECL_INITIAL. * omp-low.c (create_omp_child_function): Likewise. (grid_expand_target_grid_body): Likewise. * cgraphunit.c (init_lowered_empty_function): Likewise. (cgraph_node::expand_thunk): Likewise. * tree-parloops.c (create_loop_fn): Likewise. * ipa.c (cgraph_build_static_cdtor_1): Likewise. cp/ * vtable-class-hierarchy.c (vtv_generate_init_routine): Set DECL_IGNORED_P. java/ * jcf-parse.c (java_emit_static_constructor): Set BLOCK_SUPERCONTEXT of DECL_INITIAL. From-SVN: r238589
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/vtable-class-hierarchy.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 30a0b44..e7f5cb0 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+2016-07-21 Richard Biener <rguenther@suse.de>
+
+ * vtable-class-hierarchy.c (vtv_generate_init_routine): Set
+ DECL_IGNORED_P.
+
2016-07-21 Jakub Jelinek <jakub@redhat.com>
PR c++/71941
diff --git a/gcc/cp/vtable-class-hierarchy.c b/gcc/cp/vtable-class-hierarchy.c
index a3a49b6..8c5f4c2 100644
--- a/gcc/cp/vtable-class-hierarchy.c
+++ b/gcc/cp/vtable-class-hierarchy.c
@@ -1182,6 +1182,9 @@ vtv_generate_init_routine (void)
TREE_STATIC (vtv_fndecl) = 1;
TREE_USED (vtv_fndecl) = 1;
DECL_PRESERVE_P (vtv_fndecl) = 1;
+ /* We are running too late to generate any meaningful debug information
+ for this routine. */
+ DECL_IGNORED_P (vtv_fndecl) = 1;
if (flag_vtable_verify == VTV_PREINIT_PRIORITY && !TARGET_PECOFF)
DECL_STATIC_CONSTRUCTOR (vtv_fndecl) = 0;