This is the mail archive of the 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]

Committed: Fix arm-eabi build

r167129 broke arm-eabi:

../../../gcc/gcc/cppbuiltin.c: In function 'define_builtin_macros_for_type_sizes':
../../../gcc/gcc/cppbuiltin.c:161:25: error: implicit declaration of function 'arm_float_words_big_endian' [-Werror=implicit-function-declaration]

Fixed with the attached patch.

Committed as obvious.
2010-11-29  Joern Rennecke  <>

	PR bootstrap/44756
	* cppbuiltin.c: Include target.h .
	Use targetm.float_words_big_endian.

Index: cppbuiltin.c
--- cppbuiltin.c	(revision 167230)
+++ cppbuiltin.c	(working copy)
@@ -28,6 +28,7 @@ Software Foundation; either version 3, o
 #include "toplev.h"
 #include "cpp-id-data.h"
 #include "cppbuiltin.h"
+#include "target.h"
 /* Parse a BASEVER version string of the format "major.minor.patchlevel"
@@ -158,7 +159,7 @@ #define define_type_sizeof(NAME, TYPE)  
   cpp_define_formatted (pfile, "__FLOAT_WORD_ORDER__=%s",
-                        (FLOAT_WORDS_BIG_ENDIAN
+                        (targetm.float_words_big_endian ()
                          ? "__ORDER_BIG_ENDIAN__"
                          : "__ORDER_LITTLE_ENDIAN__"));

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