This is the mail archive of the
gcc-patches@gcc.gnu.org
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: <dalf1n$6fr$1@sea.gmane.org>
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
front-ends.
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
ppc-darwin as
rs6000/darwin.h overrides REGISTER_TARGET_PRAGMAS.
Thanks,
Andrew Pinski