
On Wed, Nov 12, 2008 at 4:34 PM, Marshall Clow <marshall@idio.com> wrote:
At 10:29 AM -0500 11/12/08, Neal Becker wrote:
Anyone testing on llvm compiler? (I'm trying it now on linux F9 x86_64 llvm-2.4)
I believe that the llvm support for C++ is best described as "currently quite limited". I expect this to change over the next year or so, though.
The clang front end is certainly only in an experimental stage, but LLVM also support the gcc front end (LLVM-gcc) which means that its C++ support should be about as good as native GCC. As the backend is quite different and there might be some small differences in the front end, it might still make sense to test on it. -- gpd

Giovanni Piero Deretta wrote:
On Wed, Nov 12, 2008 at 4:34 PM, Marshall Clow <marshall@idio.com> wrote:
At 10:29 AM -0500 11/12/08, Neal Becker wrote:
Anyone testing on llvm compiler? (I'm trying it now on linux F9 x86_64 llvm-2.4)
I believe that the llvm support for C++ is best described as "currently quite limited". I expect this to change over the next year or so, though.
The clang front end is certainly only in an experimental stage, but LLVM also support the gcc front end (LLVM-gcc) which means that its C++ support should be about as good as native GCC. As the backend is quite different and there might be some small differences in the front end, it might still make sense to test on it.
I built boost-1.37.0 using llvm-2.4 + llvm-gcc-4.2-2.4. Using boost::python I get: Program received signal SIGSEGV, Segmentation fault. 0xfffffffffd4c3720 in ?? () (gdb) where #0 0xfffffffffd4c3720 in ?? () #1 0x00000033fc810c66 in _Unwind_RaiseException () from /lib64/libgcc_s.so.1 #2 0x00000033fd4c3dbd in __cxa_throw () from /usr/lib64/libstdc++.so.6 #3 0x0000000000636df3 in boost::python::throw_error_already_set () from /usr/local/src/boost-llvm.hg/stage/lib/libboost_python.so #4 0x000000000063a82f in boost::python::objects::stop_iteration_error () from /usr/local/src/boost-llvm.hg/stage/lib/libboost_python.so I think something wrong with exception handling.

Neal Becker wrote:
Program received signal SIGSEGV, Segmentation fault. 0xfffffffffd4c3720 in ?? () (gdb) where #0 0xfffffffffd4c3720 in ?? () #1 0x00000033fc810c66 in _Unwind_RaiseException () from /lib64/libgcc_s.so.1 #2 0x00000033fd4c3dbd in __cxa_throw () from /usr/lib64/libstdc++.so.6 #3 0x0000000000636df3 in boost::python::throw_error_already_set () from /usr/local/src/boost-llvm.hg/stage/lib/libboost_python.so #4 0x000000000063a82f in boost::python::objects::stop_iteration_error () from /usr/local/src/boost-llvm.hg/stage/lib/libboost_python.so
I think something wrong with exception handling.
Indeed, though I wouldn't expect anybody in this forum to be able to help. Why don't you take this discussion to an LLVM forum ? Regards, Stefan -- ...ich hab' noch einen Koffer in Berlin...

On Wed, Nov 12, 2008 at 10:53 AM, Giovanni Piero Deretta <gpderetta@gmail.com> wrote:
On Wed, Nov 12, 2008 at 4:34 PM, Marshall Clow <marshall@idio.com> wrote:
At 10:29 AM -0500 11/12/08, Neal Becker wrote:
Anyone testing on llvm compiler? (I'm trying it now on linux F9 x86_64 llvm-2.4)
I believe that the llvm support for C++ is best described as "currently quite limited". I expect this to change over the next year or so, though.
The clang front end is certainly only in an experimental stage,
Right, we're still very early in the development of C++ support for Clang, but we aim to build an efficient, standards-conforming C++ compiler over the next few years. Clang is a compiler designed as a library (actually, a set of libraries) with an easy-to-modify modern C++ code base and a Boost-compatible, BSD-like license, which we hope will serve as a platform for the development of C++ tools in the future. We welcome community participation in Clang---testing the compiler, implementing more C++ features, building tools on top of Clang, whatever---and invite Boosters to come help us build the next great open-source C++ compiler. - Doug (Clang C++ Developer @ Apple)

Doug Gregor wrote:
Clang is a compiler [...] with an easy-to-modify modern C++ code base
Clang and LLVM are certainly not coded with what I would call a modern C++ design or Boost-like however. The LLVM coding guideline speaks of "a tasteful subset of C++". What
Mathias Gaunard wrote: they mean is code that people coming from C and other non-C++ languages can grasp reasonably fast. (Or at least that's my interpretation.) No, it most definitely isn't Boost-like. :-) Sebastian
participants (6)
-
Doug Gregor
-
Giovanni Piero Deretta
-
Mathias Gaunard
-
Neal Becker
-
Sebastian Redl
-
Stefan Seefeld