This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Avoid redefinition of FUNC near __floatundisf and __floatundidf
- From: Bernhard Reutner-Fischer <rep dot dot dot nop at gmail dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: rep dot dot dot nop at gmail dot com
- Date: Fri, 5 Jun 2009 21:28:38 +0200
- Subject: [PATCH] Avoid redefinition of FUNC near __floatundisf and __floatundidf
- References: <63213a79c5a038d6b53d8ab38d547b269955252f.1244122541.git.rep.dot.nop@gmail.com>
:ADDPATCH gcc:
* libgcc2.c (__floatundisf, __floatundidf): Avoid redefinition of
FUNC by renaming it to FUNCU.
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
---
gcc/ChangeLog | 5 +++++
gcc/libgcc2.c | 6 +++---
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index bdc4bae..f742c3d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
2009-06-04 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
+ * libgcc2.c (__floatundisf, __floatundidf): Avoid redefinition of
+ FUNC by renaming it to FUNCU.
+
+2009-06-04 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
+
* gbl-ctors.h: Add header guard.
2009-06-04 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c
index 4097d3e..8dd9844 100644
--- a/gcc/libgcc2.c
+++ b/gcc/libgcc2.c
@@ -1534,17 +1534,17 @@ FUNC (DWtype u)
&& SIZE > (DI_SIZE - SIZE + FSSIZE) \
&& !AVOID_FP_TYPE_CONVERSION(SIZE))
#if defined(L_floatundisf)
-#define FUNC __floatundisf
+#define FUNCU __floatundisf
#define FSTYPE SFtype
#define FSSIZE SF_SIZE
#else
-#define FUNC __floatundidf
+#define FUNCU __floatundidf
#define FSTYPE DFtype
#define FSSIZE DF_SIZE
#endif
FSTYPE
-FUNC (UDWtype u)
+FUNCU (UDWtype u)
{
#if FSSIZE >= W_TYPE_SIZE
/* When the word size is small, we never get any rounding error. */