Completely disable exception support for G++ cross compiler
Sebastian Huber
sebastian.huber@embedded-brains.de
Fri Dec 4 12:57:00 GMT 2009
Ingo Rohloff wrote:
> Hello,
>
> I want to build a cross compiler for C and C++.
>
> Host System is Windows Cygwin (1) and Linux (2) running on Intel x86.
> Target System is "PowerPC" bare metal
> (no operating system at all, so "EABI" ?)
>
> Now if possible I would like to completely disable exception
> support for C and C++.
> That means:
> I do not want "new" to throw an exception.
> I do not want to get ".eh_frame" sections in my objects.
> I do not want to get any kind of stack unwind information in my object
> files (except in the debug sections).
>
> Is there any possibility to achieve that ?
You can configure GCC with the following option:
--enable-cxx-flags='-fno-exceptions'
It was successful with an 4.5 GCC snapshot, 4.4 did not work for me.
The .eh_frames can be also related to
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40521
Have a nice day!
--
Sebastian Huber, embedded brains GmbH
Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany
Phone : +49 89 18 90 80 79-6
Fax : +49 89 18 90 80 79-9
E-Mail : sebastian.huber@embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
More information about the Gcc-help
mailing list