@@ -1216,12 +1216,13 @@ pph_read_tree (struct lto_input_block *ib ATTRIBUTE_UNUSED,
DECL_INITIAL (expr) = pph_in_tree (stream);
break;
+ case VAR_DECL:
+ DECL_CHAIN (expr) = pph_in_tree (stream);
case CONST_DECL:
case FIELD_DECL:
case NAMESPACE_DECL:
case PARM_DECL:
case USING_DECL:
- case VAR_DECL:
/* FIXME pph: Should we merge DECL_INITIAL into lang_specific? */
DECL_INITIAL (expr) = pph_in_tree (stream);
pph_in_lang_specific (stream, expr);
@@ -1232,6 +1233,7 @@ pph_read_tree (struct lto_input_block *ib ATTRIBUTE_UNUSED,
pph_in_lang_specific (stream, expr);
DECL_SAVED_TREE (expr) = pph_in_tree (stream);
DECL_STRUCT_FUNCTION (expr) = pph_in_struct_function (stream);
+ DECL_CHAIN (expr) = pph_in_tree (stream);
break;
case TYPE_DECL:
@@ -1062,12 +1062,13 @@ pph_write_tree (struct output_block *ob, tree expr, bool ref_p)
pph_out_tree_or_ref_1 (stream, DECL_INITIAL (expr), ref_p, 3);
break;
+ case VAR_DECL:
+ pph_out_tree_or_ref_1 (stream, DECL_CHAIN (expr), ref_p, 3);
case CONST_DECL:
case FIELD_DECL:
case NAMESPACE_DECL:
case PARM_DECL:
case USING_DECL:
- case VAR_DECL:
/* FIXME pph: Should we merge DECL_INITIAL into lang_specific? */
pph_out_tree_or_ref_1 (stream, DECL_INITIAL (expr), ref_p, 3);
pph_out_lang_specific (stream, expr, ref_p);
@@ -1078,6 +1079,7 @@ pph_write_tree (struct output_block *ob, tree expr, bool ref_p)
pph_out_lang_specific (stream, expr, ref_p);
pph_out_tree_or_ref_1 (stream, DECL_SAVED_TREE (expr), ref_p, 3);
pph_out_struct_function (stream, DECL_STRUCT_FUNCTION (expr), ref_p);
+ pph_out_tree_or_ref_1 (stream, DECL_CHAIN (expr), ref_p, 3);
break;
case TYPE_DECL:
@@ -1,5 +1,4 @@
-// { dg-xfail-if "BOGUS" { "*-*-*" } { "-fpph-map=pph.map" } }
-// { dg-bogus "'mbr_decl_inline' was not declared in this scope" "" { xfail *-*-* } 0 }
+// pph asm xdiff
#include "x1functions.h"
@@ -1,6 +1,4 @@
-// { dg-xfail-if "BOGUS" { "*-*-*" } { "-fpph-map=pph.map" } }
-// { dg-bogus "c1variables.h:5:8: error: 'int D::mbr_uninit_plain' is not a static member of 'struct D'" "" { xfail *-*-* } 0 }
-// { dg-bogus "c1variables.h:6:14: error: 'const int D::mbr_init_const' is not a static member of 'struct D'" "" { xfail *-*-* } 0 }
+// pph asm xdiff
#include "x1variables.h"