This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [bfin] Define __bfin__ and __BFIN__
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Jie Zhang <jzhang918 at gmail dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Bernd Schmidt <bernds_cb1 at t-online dot de>
- Date: Thu, 26 Oct 2006 15:03:22 +0000 (UTC)
- Subject: Re: [bfin] Define __bfin__ and __BFIN__
- References: <4540C9B7.7080306@gmail.com>
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