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 __NO_BUILTIN if -fno-builtin


This patch defines __NO_BUILTIN if -fno-builtin is used. VisualDSP++ defines __NO_BUILTIN if -no-builtin. This patch should ease porting existing VisualDSP++ code to GCC.

OK to commit?


Jie
	* config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
	__NO_BUILTIN if -fno-builtin.

Index: gcc/config/bfin/bfin.h
===================================================================
--- gcc.orig/config/bfin/bfin.h	2007-08-24 17:20:00.000000000 +0800
+++ gcc/config/bfin/bfin.h	2007-08-24 17:20:14.000000000 +0800
@@ -76,6 +76,8 @@
 	builtin_define ("__BFIN_FDPIC__");	\
       if (TARGET_ID_SHARED_LIBRARY)		\
 	builtin_define ("__ID_SHARED_LIB__");	\
+      if (flag_no_builtin)			\
+	builtin_define ("__NO_BUILTIN");	\
     }                                           \
   while (0)
 #endif

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