This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: fix -fcompare-debug regression in free_lang_data


On Nov  8, 2009, Alexandre Oliva <aoliva@redhat.com> wrote:

> I see still a problem in Ada.  Maybe it's not visible with the default
> bootstrap-debug BUILD_CONFIG, because the incorrect use of flag_gtoggle
> hides it, but it's noticeable if you compile with say ada/einfo.adb
> (among tens of others) with '-O2 -fcompare-debug=-g' (without any other
> -g).

Another -fcompare-debug problem is that free_lang_data_in_block()
removes types from BLOCK_VARSes, and decl uids go out of sync depending
on whether a function is inlined with or without this transformation.
Out-of-sync decl uids has been a great recipe for codegen differences,
so lto needs to fix this somehow.

This problem is visible compiling tree.c itself with -g
-fcompare-debug=-g0: it's when gimple_op gets inlined into
find_decls_types_in_node that decl uids go out of sync, because the
CONST_CAST-introduced union is not there in the -g0 compilation, and it
remains in place in the -g compilation.

-- 
Alexandre Oliva, freedom fighter    http://FSFLA.org/~lxoliva/
You must be the change you wish to see in the world. -- Gandhi
Be Free! -- http://FSFLA.org/   FSF Latin America board member
Free Software Evangelist      Red Hat Brazil Compiler Engineer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]