This is the mail archive of the
mailing list for the GCC project.
Re: PR/22085: AltiVec disabled if -fpreprocessed
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: Paolo Bonzini <bonzini at gnu dot org>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 19 Jul 2005 15:19:18 -0400
- Subject: Re: PR/22085: AltiVec disabled if -fpreprocessed
- References: <email@example.com>
On Jul 8, 2005, at 4:55 AM, Paolo Bonzini wrote:
The new AltiVec implementation in GCC 4.1 needs to enable a target
hook only for C-like languages, because
altivec_resolve_overloaded_builtin uses functions specific to C-like
This is done by "patching" the targetm vector in
rs6000_cpu_cpp_builtins, but this function is not called when
-fpreprocessed is given. It is better to do this where pragmas are
registered, and this gives the opportunity also to make a function
static, and move code out of rs6000.h.
Actually looking over this patch, I don't see how it could work on
rs6000/darwin.h overrides REGISTER_TARGET_PRAGMAS.