This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: __ASSEMBLER__ vs. ASSEMBLER
- From: Daniel Jacobowitz <drow at false dot org>
- To: Chris Zankel <zankel at tensilica dot com>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Fri, 5 Aug 2005 21:26:40 -0400
- Subject: Re: __ASSEMBLER__ vs. ASSEMBLER
- References: <42F3FC91.2030000@tensilica.com>
On Fri, Aug 05, 2005 at 04:56:01PM -0700, Chris Zankel wrote:
> Hi,
>
> I am working on the Xtensa port of glibc and ran into a minor problem.
>
> It seems that most architecture use __ASSEMBLER__ in conditional
> sections (for example sysdep.h) but Makerule defines ASSEMBLER (without
> the underscores):
>
> S-CPPFLAGS = -DASSEMBLER $(asm-CPPFLAGS)
>
> Should the line in Makerule not be like this?
>
> S-CPPFLAGS = -D__ASSEMBLER__ $(asm-CPPFLAGS)
Your compiler ought to be defining that. Nowadays it's in
libcpp/init.c.
--
Daniel Jacobowitz
CodeSourcery, LLC