This is the mail archive of the gcc-patches@gcc.gnu.org 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]

[bfin] Define __bfin__ and __BFIN__


This patch add __bfin__ and __BFIN__ to bfin port gcc predefined macros. This is demanded by
building newlib outside of gcc source tree. Currently newlib use BFIN macro to enclose source code
specific to Blackfin. fixincludes will fix these macros in newlib header files by replacing them
with __BFIN__, which is not defined by gcc.

Is it OK?

Thanks,
Jie

	* config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __bfin__
	and __BFIN__.

Index: config/bfin/bfin.h
===================================================================
--- config/bfin/bfin.h	(revision 118022)
+++ config/bfin/bfin.h	(working copy)
@@ -41,6 +41,8 @@
     {                                           \
       builtin_define ("bfin");                  \
       builtin_define ("BFIN");                  \
+      builtin_define ("__bfin__");              \
+      builtin_define ("__BFIN__");              \
       builtin_define ("__ADSPBLACKFIN__");	\
       if (TARGET_FDPIC)				\
 	builtin_define ("__BFIN_FDPIC__");	\


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