Re: Tested wanted: BSD-licensed libgcc replacement, libcompiler_rt

2010-10-25 Thread Rene Ladan
On 22-10-2010 16:30, Ed Schouten wrote:
 Hello everyone,
 
 At EuroBSDCon I was talking with some committers active in the area of
 Clang (brooks, kwm, others) about replacing our libgcc shipped with GCC
 4.2.1 with a BSD-licensed version. The LLVM folks have a BSD licensed
 implementation called libcompiler_rt. See:
 
   http://compiler-rt.llvm.org/

[...]
  I've created a branch in Subversion which replaces libgcc.a and
 libgcc_p.a with libcompiler_rt.a and libcompiler_rt_p.a and symlinks it
 to the original names. It seems to survive a `make universe' and it
 works properly on at least amd64.
[...]
 How to test this:
 
 - Check out the branch from SVN:
   svn co svn://svn.freebsd.org/base/user/ed/compiler-rt/
 - Rebuild and reinstall world (and kernel).
 - Rebuild all your software (yes, I know it's unfortunate).
 - See whether software crashes or misbehaves, while it didn't do that
   previously.
 
I noticed that the nvidia driver (from ports/x11/nvidia-driver*) needs
to be recompiled after upgrading from HEAD to this branch. If you don't,
it will load, but cause a panic when used by X.

Rene
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Tested wanted: BSD-licensed libgcc replacement, libcompiler_rt

2010-10-23 Thread Ed Schouten
Hi all,

* Ed Schouten e...@80386.nl, 20101022 16:30:
 At EuroBSDCon I was talking with some committers active in the area of
 Clang (brooks, kwm, others) about replacing our libgcc shipped with GCC
 4.2.1 with a BSD-licensed version. The LLVM folks have a BSD licensed
 implementation called libcompiler_rt. See:
 
   http://compiler-rt.llvm.org/

I was talking with Robert Watson about this the other day. The codebase
of compiler-rt also contains the libBlocksRuntime.so library, which
is fundamental in making Grand Central Dispatch (GCD) work. Because of
its small size (12 KB), I think I'll also include it in the import.

This means that after the import, libdispatch is the only port needed to
make Grand Central Dispatch work on FreeBSD HEAD.

-- 
 Ed Schouten e...@80386.nl
 WWW: http://80386.nl/


pgpyBb6J3YDS1.pgp
Description: PGP signature


Tested wanted: BSD-licensed libgcc replacement, libcompiler_rt

2010-10-22 Thread Ed Schouten
Hello everyone,

At EuroBSDCon I was talking with some committers active in the area of
Clang (brooks, kwm, others) about replacing our libgcc shipped with GCC
4.2.1 with a BSD-licensed version. The LLVM folks have a BSD licensed
implementation called libcompiler_rt. See:

http://compiler-rt.llvm.org/

Right now it is already complete enough to replace libgcc.a and
libgcc_p.a (mostly math rountines), but it doesn't yet implement the
functionality (e.g. unwinder) to replace libgcc_eh.a, libgcc_eh_p.a and
libgcc_s.so.1.

I've created a branch in Subversion which replaces libgcc.a and
libgcc_p.a with libcompiler_rt.a and libcompiler_rt_p.a and symlinks it
to the original names. It seems to survive a `make universe' and it
works properly on at least amd64. Right now the only issue I can think
of, is that __clear_cache() is broken on ARM, but that can be fixed
trivially.

My plan would be to commit this work to HEAD by the end of November (1
month from now), but it would be nice if it could get some more testing
in the mean time, especially on non-x86 architectures.

How to test this:

- Check out the branch from SVN:
svn co svn://svn.freebsd.org/base/user/ed/compiler-rt/
- Rebuild and reinstall world (and kernel).
- Rebuild all your software (yes, I know it's unfortunate).
- See whether software crashes or misbehaves, while it didn't do that
  previously.

In the mean time, I'll see if I can get the Ports folks to run an
exp-run with this branch, which should already give some coverage.

Thanks!

-- 
 Ed Schouten e...@80386.nl
 WWW: http://80386.nl/


pgp4nEKTk6e5K.pgp
Description: PGP signature


Re: Tested wanted: BSD-licensed libgcc replacement, libcompiler_rt

2010-10-22 Thread Ed Schouten
* Ed Schouten e...@80386.nl, 20101022 16:30:
 - Rebuild all your software (yes, I know it's unfortunate).

Right after I sent this, I thought I'd better clarify this. You don't
need to rebuild your software. This change will not break the existing
ABI. This step is just mentioned here, since libgcc.a is statically
linked into applications. Simply rebuilding and reinstall world is not
sufficient to make 3rd party applications use this.

-- 
 Ed Schouten e...@80386.nl
 WWW: http://80386.nl/


pgph9jTT1tKjk.pgp
Description: PGP signature