This is the mail archive of the gcc-patches@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: [PATCH] Option to build bare-metal ARM cross-compiler for arm-none-eabi target without libunwind


Hello,

I think it is good to disable the exceptions for the division by zero. Maybe this should be made target specific and not based on a configure option. For example in "libgcc/config.host":

arm*-*-linux*)
	[...]
	tmake_file="${tmake_file} arm/t-div-by-zero-exc"
	[...]

With "libgcc/config/arm/t-div-by-zero-exc":

LIB2_DIVMOD_CFLAGS := -fexceptions -fnon-call-exception

--
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.


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