------- Comment #9 from rguenther at suse dot de  2009-11-18 20:52 -------
Subject: Re:  flag_gtoggle in free_lang_data hides -fcompare-debug
 errors

On Wed, 18 Nov 2009, aoliva at gcc dot gnu dot org wrote:

> ------- Comment #8 from aoliva at gcc dot gnu dot org  2009-11-18 20:05 
> -------
> We used to do such things, using pointers rather than UIDs even, and I fixed a
> number of such issues to avoid codegen differences.  But hey, if you could
> prove that a DECL uid would never affect decisions taken by the compiler,
> including decisions that might depend on the order in which you perform 
> similar
> tests over difference pieces of code, more power to you, don't let me stand on
> your way.  Bonus points if you can devise a way to avoid such dependences on
> UIDs from being accidentally introduced at a later time.

This is what we have bootstrap-debug for.  Btw, I obviously cannot
"prove" anything.  But one could randomize the delta we add to
next_decl_uid - we should get bootstrap comparison errors very
reliably that way.  (I remember doing that once, but I don't remember
the outcome)

Richard.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42088

Reply via email to