[gccsdk] C++ Module code with GCC 4.1

Peter Naulls peter at chocky.org
Mon Oct 12 12:10:31 PDT 2009


I don't know how much of a discussion we've had about this.  Certainly
we put in some effort for GCC 3.4.  I have some module code here
(so that implies hard-float and SCL) and is C++ *and* uses OSLib.
More on what exactly that code is later, but I've done some fixups
in the libstdc++ headers which help actually get a compile.

Apart from that, we need a module version of OSLib and also a module
version of libstdc++ build against SCL (right now we only have
two static versions - hard/soft against UnixLib).

Also, relevant link errors, which I suspect are easy fixes:


/home/riscos/cross/arm-unknown-riscos/bin/../lib/libstdc++.a(vterminate.o): 
In function `__gnu_cxx::__verbose_terminate_handler()':
/usr/src/gccsdk/gcc4/srcdir/libstdc++-v3/libsupc++/vterminate.cc:84: 
undefined reference to `__stderr'
/home/riscos/cross/lib/gcc/arm-unknown-riscos/4.1.1/scl/fpu/module/libgcc_eh.a(unwind-dw2.o): 
In function `uw_update_context':
/usr/src/gccsdk/gcc4/srcdir/gcc/unwind-dw2.c:1228: undefined reference 
to `__ehs_return_address'
/home/riscos/cross/lib/gcc/arm-unknown-riscos/4.1.1/scl/fpu/module/libgcc_eh.a(unwind-dw2.o): 
In function `_Unwind_Resume':
/usr/src/gccsdk/gcc4/srcdir/gcc/unwind.inc:240: undefined reference to 
`__ehs_stack_limit'
/usr/src/gccsdk/gcc4/srcdir/gcc/unwind.inc:236: undefined reference to 
`__ehs_trim_stack'
/home/riscos/cross/lib/gcc/arm-unknown-riscos/4.1.1/scl/fpu/module/libgcc_eh.a(unwind-dw2.o): 
In function `_Unwind_ForcedUnwind':
/usr/src/gccsdk/gcc4/srcdir/gcc/unwind.inc:215: undefined reference to 
`__ehs_stack_limit'
/usr/src/gccsdk/gcc4/srcdir/gcc/unwind.inc:216: undefined reference to 
`__ehs_trim_stack'
/home/riscos/cross/lib/gcc/arm-unknown-riscos/4.1.1/scl/fpu/module/libgcc_eh.a(unwind-dw2.o): 
In function `_Unwind_RaiseException':
/usr/src/gccsdk/gcc4/srcdir/gcc/unwind.inc:139: undefined reference to 
`__ehs_stack_limit'
/usr/src/gccsdk/gcc4/srcdir/gcc/unwind.inc:140: undefined reference to 
`__ehs_trim_stack'
/home/riscos/cross/lib/gcc/arm-unknown-riscos/4.1.1/scl/fpu/module/libgcc_eh.a(unwind-dw2.o): 
In function `_Unwind_Resume_or_Rethrow':
/usr/src/gccsdk/gcc4/srcdir/gcc/unwind.inc:265: undefined reference to 
`__ehs_stack_limit'
/usr/src/gccsdk/gcc4/srcdir/gcc/unwind.inc:266: undefined reference to 
`__ehs_trim_stack'





More information about the gcc mailing list