--- Comment #1 from rguenth at gcc dot gnu dot org 2009-10-03 16:33 ---
Where do you get all this testcases from ... ;)
Btw, making more functions static probably results in the same failure
without -fwhole-program (well, reproducing the same inline decision, that is).
--
rguenth
--- Comment #2 from regehr at cs dot utah dot edu 2009-10-03 16:42 ---
Created an attachment (id=18696)
-- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18696action=view)
failure-inducing input
There is no problem here at -O3. However if you make g_101 static then the
wrong answer
--- Comment #3 from regehr at cs dot utah dot edu 2009-10-03 16:44 ---
Making the variables static in addition to the functions causes the problem to
happen at -O3.
The bad behavior happens at -O3 only if g_101 is static.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41555