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: [patch] set -mabi=altivec with -ftree-vectorize


On 8/7/07, Daniel Jacobowitz <drow@false.org> wrote:
> I have been working on patches which add a .gnu_attribute entry
> describing the vector ABI.  This is primarily for GDB's benefit, since
> a number of tests in its testsuite fail on -mabi=no-altivec if AltiVec
> hardware is detected.  But at the same time, I added support to the
> linker to warn if you mix -mabi=no-altivec and -mabi=altivec code.
> That caused a bunch of testcases in the GCC testsuite to fail.

The ABI is only difference if you actually use altivec registers or
VMX sized vectors (except for vector long long which does not exist).
So I think the warning is wrong and will get people confused even
more.   In most cases you only want to compile some parts of the
program with -maltivec -mabi=altivec and then only call those parts
when VMX exists.  This is very very common in generic programs that
people compile for PowerPC and allow to run on mutliple pieces of
hardware.  Remember not all users of GCC can provide full different
versions of their program in an effient manor.

Thanks,
Andrew Pinski


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