This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
[lto] Streaming out language-specific DECL/TYPEs
- From: Diego Novillo <dnovillo at google dot com>
- To: Kenneth Zadeck <zadeck at naturalbridge dot com>, Bill Maddox <maddox at google dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 2 Jun 2008 20:10:34 -0400
- Subject: [lto] Streaming out language-specific DECL/TYPEs
In g++.dg/torture/20070621-1.C we are trying to stream out a structure
that contains a TEMPLATE_DECL. This currently causes a failure in
lto-function-out.c:output_tree because not only TEMPLATE_DECL is
C++-specific, we can't even access its fields from lto-function-out.c.
The only way I see to handle these cases is to use a langhook. I
appreciate that we are trying to get rid of these, but this is only a
langhook used when streaming things out (in cc1plus). On the way in
(lto1), we would not need the langhook, as we would just mechanically
recreate the fields.
Thoughts?
Diego.