Browse source

Changelog

Query
From:
To:
Branch:
Path:
Message:
BugID:
User: +
Format:
: 1 checkin (+66/-6) by Arne Goedeke <el@laramies.com> Lines added/removed recently

Sunday 04 November 2018

2018-11-04 13:40:05 (2 weeks ago) by Arne Goedeke <el@laramies.com>

Tools.Standalone.precompile: handle args < 0 in PIKEFUN

The 'args' variable is signed even though it is never negative. This
situation is confusing for the C compiler because negative values
are not usually handled. In order to improve this situation the
CMOD precompiler will now check that args is non-negative and either
fatal (in PIKE_DEBUG) or use __buildin_assume to allow the compiler
to optimize away all code path which assume args to be negative.

[permalink]

Bugs? Suggestions?