This is the mail archive of the gcc@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: GCC 4.3.0 Status Report (2008-02-14)


On Mon, Feb 18, 2008 at 01:10:57PM -0800, Janis Johnson wrote:
> I changed argument passing and function return of generic vectors to be
> consistent with and without the AltiVec ABI for powerpc-linux  and
> powerpc64-linux, but in so doing inadvertently changed the behavior for
> other powerpc targets as well.  Meanwhile the trunk has been more and
> more frozen, so the latest attempt is to switch the default ABI with as
> little other change as possible.

But non-generic vectors are still ABI incompatible, right?
Say:
typedef int v __attribute__((vector_size (16)));
v foo (v a, v b)
{
  return a + b;
}

has incompatible function argument passing and return value conventions,
even with e.g. -m64 vs. -m64 -mcpu=970 (and the plan is to have the
same between -m32 vs. -m32 -mcpu=970).

	Jakub


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