On 05/20/2015 01:49 PM, John Marino wrote:
I have maintained unwind support for FreeBSD i386 and x86_64 in my
"gnat-aux" repository for many years (I created it). I've always
intended on contributing it back to GCC, but I never got around to
"proving" it worked until now.
Happens. I can't count how many things I've written but never finished
for various reasons through the years.
The version I've been using actually has two flavors: FreeBSD 8 and
below and FreeBSD 9 and above. However, the last of the FreeBSD 8
releases reaches EOL at the end of June so the unwind support I've
attached here drops the FreeBSD 8 variation for simplicity's sake.
Seems reasonable. We're not nearly as aggressive at dropping dead code
as we perhaps could/should be.
Note that I provided a similar unwind support for DragonFly a few months
ago. Please consider applying the attached patch to gcc trunk. (copy
of patch found here:
http://leaf.dragonflybsd.org/~marino/freebsd/freebsd-unwind-support.diff )
Thanks for pointing that out. It's a shame that the BSDs can't share
this code, but such is life.
Suggested text for libgcc/ChangeLog:
2015-05-XX John Marino <gnu...@marino.st>
* config.host (i[34567]86-*-freebsd*, x86_64-*-freebsd*):
Set md_unwind_header
* config/i386/freebsd-unwind.h: New.
Also please recall that my copyright assignment to FSF is in order!
Thanks for pointing that out. Otherwise I'd probably have asked the
redundant question :-)
Installed on the trunk.
Thanks,
jeff