On 26/07/17 19:56, Segher Boessenkool wrote:
On Tue, Jul 25, 2017 at 02:25:21PM +0200, Sebastian Huber wrote:
Add 64-bit support for RTEMS using the ELFv2 ABI with 64-bit long
double.
diff --git a/gcc/config.gcc b/gcc/config.gcc
index 2ae0218b5fc..aab7f65c1df 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -2424,7 +2424,7 @@ powerpc-*-rtems*spe*)
tmake_file="${tmake_file} powerpcspe/t-fprules powerpcspe/t-rtems
powerpcspe/t-ppccomm"
;;
powerpc-*-rtems*)
- tm_file="${tm_file} dbxelf.h elfos.h freebsd-spec.h newlib-stdint.h
rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h rtems.h"
+ tm_file="rs6000/biarch64.h ${tm_file} dbxelf.h elfos.h freebsd-spec.h
newlib-stdint.h rs6000/sysv4.h rs6000/rtems.h rtems.h"
This deletes eabi.h and I don't see you add all its definitions to
rtems.h directly (NAME__MAIN etc.) Is this on purpose?
Yes, I always wondered why GCC added the __eabi() call to main() out of
thin air. In general, there is no main() function in RTEMS. Instead, you
can statically configure initialization threads. We call __eabi() in the
low-level startup code, e.g.
https://git.rtems.org/rtems/tree/c/src/lib/libbsp/powerpc/qoriq/start/start.S#n144
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.hu...@embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.