events.c:609:13: warning: iteration 2147483647 invokes undefined behavior [-Waggressive-loop-optimizations]
Submitted by Sverd Johnsen
Assigned to Xorg Project Team
Description
1.18.3
When building the xorg package as used by Arch Linux with LTO, not all components can be build due to the following compiler error in the final stages of the build for some binaries:
events.c: In function 'XineramaConfineCursorToWindow': events.c:609:13: warning: iteration 2147483647 invokes undefined behavior [-Waggressive-loop-optimizations] events.c:609:11: note: within this loop events.c:605:49: error: array subscript is below array bounds [-Werror=array-bounds] events.c:606:31: error: array subscript is below array bounds [-Werror=array-bounds] events.c:610:39: error: array subscript is below array bounds [-Werror=array-bounds] events.c:617:38: error: array subscript is below array bounds [-Werror=array-bounds] events.c:619:35: error: array subscript is below array bounds [-Werror=array-bounds]
Unfortunately I dont have the complete build log anymore and I won't be able to reproduce this any time soon so dont expect any followup information.