lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


>>>>> "Philippe" == Philippe Verdy <verdyp@gmail.com> writes:

 Philippe> could this be related to
 Philippe> /* maximum length of the conversion of a number to a string */
 Philippe> #define MAXNUMBER2STR   50

No.

It's to do with the fact that the lua value is a tagged union which can
be either a 64-bit integer or 64-bit double. Optimization code which
is taking advantage of the fact that the type is known at the callsite
to produce specialized variants of the called function was confusing the
types and passing them in incorrect registers as a result.

See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96040

-- 
Andrew.