diff mbox

Committed: Fix arm-eabi build

Message ID 20101128234409.jy0z1h5veock4koc-nzlynne@webmail.spamcop.net
State New
Headers show

Commit Message

Joern Rennecke Nov. 29, 2010, 4:44 a.m. UTC
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  <amylaar@spamcop.net>

	PR bootstrap/44756
	* cppbuiltin.c: Include target.h .
	(define_builtin_macros_for_type_sizes):
	Use targetm.float_words_big_endian.
diff mbox

Patch

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__"));