https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91555
Daniel Richard G. <skunk at iskunk dot org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #46761|0 |1 is obsolete| | --- Comment #2 from Daniel Richard G. <skunk at iskunk dot org> --- Created attachment 46762 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46762&action=edit Revised version of test program Hi Andrew, I revised the test program with the current version of those two functions. The erroneous behavior w.r.t. optimization is unchanged. >From what poking around I could do, the problem appears to occur in the binary search in time2sub(), which is why making the lo/hi variables volatile appears to straighten things out.