[Bug rtl-optimization/33796] valgrind error with -O2 for linux kernel code

zadeck at naturalbridge dot com gcc-bugzilla@gcc.gnu.org
Sat Jan 12 17:54:00 GMT 2008



------- Comment #9 from zadeck at naturalbridge dot com  2008-01-12 16:34 -------
i personally think that this patch in #8 is not the right way to go.

unless there is a compelling argument that initializing this is going to have
some negative performance effect, we should properly initialize this
datastructure as we do (or at least try to do) for every other data structure
in the compiler.  While the current code that peter has written is correct, it
is quite tricky.  This compiler has way too much tricky code, which only adds
to the long term maintainance cost of the compiler.

the patch in 8 is not acceptable because it requires that the compiler be built
in a particular way to avoid the valgrind errors.  The last thing that you want
to have to do if you have a heisenbug is to rebuild your compiler in a way that
will change the layout and alignment of things.  


-- 


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



More information about the Gcc-bugs mailing list