RE: [Gc] Re: boehm-gc merge for GCC
"Boehm, Hans" <[email protected]> Tue, 27 Nov 2012 01:08:20 +0000
| Newsgroups | gmane.comp.gcc.java.devel |
|---|---|
| Message-ID | <A3E67C2071F49C4CBC4F17E6D77CDDD23694F5A3@G9W0725.americas.hpqcorp.net> |
> > > - bdwgc now depends on another library (libatomic-ops). Shouldn't GCC > > be able to use it's atomic builtins for some supported targets at > > least? > > > Yes, but it sounds like far more effort than its worth to go and change > it > just for the sake of using builtins. Maybe libatomic-ops itself could > be > made to use the builtins when available. > Libatomic_ops should eventually be configurable to just use C11/C++11 atomic operations. That hasn't happened yet, but should be fairly easy. Or, if we wait long enough, we could just use the C11 primitves directly. Historically libatomic-ops preceded and influenced the C11/C++11 interface, but the C11/C++11 interface is a much better design (another iteration, a lot more careful thought by many more people, etc.) Hans