This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[bfin] Define __bfin__ and __BFIN__
- From: Jie Zhang <jzhang918 at gmail dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: Bernd Schmidt <bernds_cb1 at t-online dot de>
- Date: Thu, 26 Oct 2006 22:44:07 +0800
- Subject: [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__"); \