This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Bare metal ARM Cross compiler for arm-none-eabi target without libunwind?


>I suspect (but you'll have to check) that this is because _divdi3 is
>compiled with exceptions, and this is indeed because division by zero
>might throw. ?The simplest fix is to compile it without exceptions.
>The correct fix is to make unwinding work on your platform.

I found this on gcc-patches from 2011-11, maybe it does solve something also for ARM?

"[patch, ia64, libgcc] Patch to fix libunwind build on IA64"
http://gcc.gnu.org/ml/gcc-patches/2011-11/msg01926.html

The patch is basically modding Makefile.in as:

 # Build LIBUNWIND.
 
-c_flags := -fexceptions
+c_flags := -fno-exceptions

I though think my patch proposal could be interesting though to be able to control it from configure.

Thanks &Best Regards/Fredrik


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]