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: A Far Less Ambitous AltiVec patch


Aldy Hernandez <aldyh@redhat.com> writes:

>  > + /* The "-faltivec" option should have been called "-maltivec" all along.  */
>  > + #define SUBTARGET_OPTION_TRANSLATE_TABLE				\
>  > +   { "-faltivec", "-maltivec -include altivec.h" },	\
>  > +   { "-fno-altivec", "-mno-altivec" },	\
> 
> Do we really need another option (even if just for Darwin)?  This is
> just plain sick.  Can't you make -maltivec include altivec.h just for
> darwin?

No.  -maltivec is not the "everything you might possibly want that's
related to altivec" flag.  It very specifically means "generate code
for a CPU with altivec instructions".  It should not change ABI or the
language that is compiled, only code generation.

-- 
- Geoffrey Keating <geoffk@geoffk.org>


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