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 Tue, Jul 31, 2007 at 09:14:57AM +0200, Zdenek Dvorak wrote:
> Hello,
> 
> using -O2 -maltivec -ftree-vectorize on ppc-linux leads to
> misscompilations, as -mabi=altivec is not enabled there.
> It would be somewhat annoying and error-prone to require a normal
> user to know this and add the extra option.  As David Edelsohn
> suggested, this patch makes us enable -mabi=altivec automatically
> with -ftree-vectorize.

Is that really a good idea?  It makes sense that -mabi= is an
ABI-changing option, but I'd be surprised if adding -ftree-vectorize
changed the ABI.

BTW, we recently made the linker warn about mismatches between soft
and hard float PowerPC code.  I have a patch to warn about mismatchs
between code with -mabi=altivec and code without it.  I just haven't
posted it yet because PR 32919 breaks my test scripts.

-- 
Daniel Jacobowitz
CodeSourcery


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