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

Bug#651595: gcc-4.6: miscompiles p11-kit 0.9 testsuite on i386



Package: gcc-4.6
Version: 4.6.2-6
Severity: normal

Hello,

on all i386 archs (linux, kfreebsd and GNU/hurd) p11-kit 0.9 showed a
testsuite error:

| 1) test__p11_hash_set_get_clear: hash-test.c:183: should be null

All other archs are fine. git bisect found this
http://cgit.freedesktop.org/p11-glue/p11-kit/commit/?id=969bcab592878322e410f4342a61fccc06b9addd
as triggering change. - The change only removes some unused code.

Rebuilding tests/hash-test.o with -O0 fixes the issue. The minimal
change is to set __attribute__((optimize("O0"))) on
CuFailInternal().

Both gcc-4.5 and gcc-snapshot 20111203-1 show the same behavior.

cu andreas



Reply to: