LTO and libelf (and FreeBSD)
Gerald Pfeifer
gerald@pfeifer.com
Mon May 24 22:51:00 GMT 2010
On Sun, 23 May 2010, Kai Wang wrote:
>> Based on this, it will be great if you can apply your patch to
>> -CURRENT, 8-STABLE and 7-STABLE.
> I'll see what I can do.
Thanks!
> The elf_update() failure is caused by an alignment check inside
> FreeBSD elf_update(). [...]
> Anyway, I attached a patch for FreeBSD libelf which removes the
> d_align check against section aligment. Please try applying it to a
> vanilla FreeBSD 7.3 libelf (The patch includes the previous
> elf_getbase() change) and run the gcc test suite again...
This works like a charm, and we now go from
http://gcc.gnu.org/ml/gcc-testresults/2010-05/msg02150.html
to
http://gcc.gnu.org/ml/gcc-testresults/2010-05/msg02245.html
basically fixing all of LTO and WHOPR, see below for details:
=== g++ Summary === vanilla patched Richard's latest
libelf GCC patch libelf+
Richard's
# of expected passes 22876 23118 23118 23361
# of unexpected failures 425 142 142 7 <===
# of expected failures 151 151 151 151
# of unresolved testcases 124 66 66 5 <===
# of unsupported tests 150 150 150 150
=== gcc Summary ===
# of expected passes 64021 67099 67099 70184
# of unexpected failures 3806 1667 1667 102 <===
# of unexpected successes 1 1 1 1
# of expected failures 171 171 171 171
# of unresolved testcases 2580 1292 1292 7 <===
# of unsupported tests 1284 1284 1284 1284
=== gfortran Summary === (one test added for the last run)
# of expected passes 34094 34122 34123 34145
# of unexpected failures 48 27 27 11 <===
# of expected failures 22 22 22 22
# of unresolved testcases 37 16 16 0 <===
# of unsupported tests 266 266 266 266
What is your plan of applying these patches to libelf in FreeBSD?
Gerald
More information about the Gcc
mailing list