This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: 3.2 PATCH: Properly define __LANGUAGE_C etc. on alpha
- From: Neil Booth <neil at daikokuya dot co dot uk>
- To: Rainer Orth <ro at TechFak dot Uni-Bielefeld dot DE>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 18 Jun 2002 21:26:46 +0100
- Subject: Re: 3.2 PATCH: Properly define __LANGUAGE_C etc. on alpha
- References: <15631.38546.636833.511691@xayide.TechFak.Uni-Bielefeld.DE>
Rainer Orth wrote:-
> Ok for mainline?
I'd like some more explanation...
> /* Macros dependent on the C dialect. */ \
> if (preprocessing_asm_p ()) \
> - builtin_define_std ("LANGUAGE_ASSEMBLY"); \
> + { \
> + builtin_define_std ("LANGUAGE_ASSEMBLY"); \
> + builtin_define ("__LANGUAGE_ASSEMBLY"); \
> + builtin_define ("__LANGUAGE_ASSEMBLY__"); \
> + } \
> else if (c_language == clk_c) \
> - builtin_define_std ("LANGUAGE_C"); \
> + { \
> + builtin_define_std ("LANGUAGE_C"); \
> + builtin_define ("__LANGUAGE_C"); \
> + builtin_define ("__LANGUAGE_C__"); \
> + } \
The _std call should do these two extra macros for you. If
not, it's implementation is buggy and needs to be fixed. At
first glance it should be doing everything you need, so please
explain why the extra macros are not being defined by
builtin_define_std().
Neil.