[bfin] Define __bfin__ and __BFIN__
Joseph S. Myers
joseph@codesourcery.com
Thu Oct 26 15:45:00 GMT 2006
On Thu, 26 Oct 2006, Jie Zhang wrote:
> 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.
The correct approach is to change builtin_define ("bfin") to
builtin_define_std ("bfin"). Every target use of builtin_define with a
name not in the reserved namespace is a bug (unless conditioned not to be
used if flag_iso): bug 545.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Gcc-patches
mailing list