This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/42088] flag_gtoggle in free_lang_data hides -fcompare-debug errors
- From: "rguenther at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Nov 2009 15:36:50 -0000
- Subject: [Bug lto/42088] flag_gtoggle in free_lang_data hides -fcompare-debug errors
- References: <bug-42088-334@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #12 from rguenther at suse dot de 2009-11-19 15:36 -------
Subject: Re: flag_gtoggle in free_lang_data hides -fcompare-debug
errors
On Thu, 19 Nov 2009, ebotcazou at gcc dot gnu dot org wrote:
> ------- Comment #11 from ebotcazou at gcc dot gnu dot org 2009-11-19 15:11 -------
> > For not doing the boolean_type_node fixing we'd need to not pre-load the
> > streamer chache with (selected) builtin type nodes but instead stream them
> > with every unit and function and pass them through the merging machinery.
> > Basically make lto_get_common_nodes return an empty vector (that likely
> > requires us to register and fixup all builtin types in lto1 before starting
> > to stream in stuff - I likely have some patches doing this somewhere).
>
> Can't boolean_type_node (and sizetypes) be special-cased somehow, since it
> seems that the other builtin types aren't problematic?
The problem is that they are used in other builtin types (well, maybe not,
but that's a big problem with various pointer types).
I will look into getting the lto1 fixups into trunk (ISTR they fix
some corner-cases anyway), it should then be easy to experiment with
excluding single builtin types from the cache pre-loading.
Richard.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42088