Bug on IRIX 4d 3.1 when -02 level optimizer used.

Len Lattanzi len at synthesis.Synthesis.COM
Thu Jun 1 08:51:21 AEST 1989


In article <8905261424.aa06578 at VGR.BRL.MIL> gwyn at BRL.MIL (Doug Gwyn, VLD/VMB) writes:
:Actually, it is just after args[1] received a pointer to "2" that
:the first for-loop terminates prematurely.  strtok() definitely
:returned "2" and that was definitely stored into args[1], but the
:first for-loop failed to keep looping for what should have been
:another two calls to strtok().

This seems to be a bug in the 1.31 as1 (instruction reorganizer). Version
2.0 works the same as the '-g' version. What seems to happening is that
i++ of the for-loop is moved before args[i] = strtok() without
changing the reference to args[i-1].

-Len
 Len Lattanzi (len at Synthesis.com) <{ames,pyramid,decwrl}!mips!synthesis!len>
 Synthesis Software Solutions, Inc. 		The RISC Software Company
I would have put a disclaimer here but I already posted the article.



More information about the Comp.sys.sgi mailing list