This is the mail archive of the newlib@sourceware.org mailing list for the newlib 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]

[Patch: RL78] Add support for 64-bit doubles


Hi,
Please find below a patch which adds support for 64-bit doubles to the RL78 target
in the newlib port.
This is a supporting patch for my GCC patch posted earlier,
http://gcc.gnu.org/ml/gcc-patches/2014-05/msg00731.html

Kindly review the below patch. 

Thanks & Best Regards,
Kaushik

	newlib/Changelog
	* libc/include/machine/ieeefp.h: Define _DOUBLE_IS_32BITS when double
	options is not __RL78_64BIT_DOUBLES__.

diff -upr a/newlib/libc/include/machine/ieeefp.h b/newlib/libc/include/machine/ieeefp.h
--- a/newlib/libc/include/machine/ieeefp.h	2013-07-16 13:18:53.000000000 +0530
+++ b/newlib/libc/include/machine/ieeefp.h	2014-05-14 16:24:00.000000000 +0530
@@ -379,8 +379,10 @@
 #ifdef __RL78__
 #define __IEEE_LITTLE_ENDIAN
 #define __SMALL_BITFIELDS	/* 16 Bit INT */
+#ifndef __RL78_64BIT_DOUBLES__
 #define _DOUBLE_IS_32BITS
 #endif
+#endif
 
 #ifdef __RX__


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