This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PR/22085: AltiVec disabled if -fpreprocessed



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]