This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] set -mabi=altivec with -ftree-vectorize
>>>>> Daniel Jacobowitz writes:
Daniel> Is that really a good idea? It makes sense that -mabi= is an
Daniel> ABI-changing option, but I'd be surprised if adding -ftree-vectorize
Daniel> changed the ABI.
Daniel,
Without automatically enabling -mabi=altivec, GCC silently
generates wrong code.
The only other option I see is to error that -mabi=altivec needs
to be enabled with -ftree-vectorize -maltivec for the targets that do not
enable it automatically. Generating wrong code needs more than a warning.
Do you think that is a better solution?
David