The default Altivec ABI was implemented but the clang error for specifying
its use still remains. Users could get around this but not specifying the
type of Altivec ABI but we need to remove the error.
Details
- Reviewers
hubert.reinterpretcast cebowleratibm sfertile bmahjour jsji - Group Reviewers
Restricted Project - Commits
- rG76c931ae42cf: [AIX][PowerPC] Remove error when specifying mabi=vec-default on AIX
Diff Detail
Event Timeline
clang/lib/Frontend/CompilerInvocation.cpp | ||
---|---|---|
1853–1854 | Can we simplify this to Opts.EnableAIXExtendedAltivecABI = O.matches(OPT_mabi_EQ_vec_extabi);? |
clang/lib/Frontend/CompilerInvocation.cpp | ||
---|---|---|
1853–1854 | Thanks, that works well. |
The default Altivec ABI was implemented
Please include the patches or commits that implement the default ABI.
clang/lib/Driver/ToolChains/Clang.cpp | ||
---|---|---|
4779 | Why we need to check this if the default is to set it to -mabi=vec-default in below else? | |
clang/test/Driver/aix-vec-extabi.c | ||
11 | Why we need to explicitly DFLTABI-NOT: "-mabi=vec-default" |
clang/test/Driver/aix-vec-extabi.c | ||
---|---|---|
3 | How about RUN line without -mabi? |
clang/test/Driver/aix-vec-extabi.c | ||
---|---|---|
3 | Thanks, added those. Since -mabi-vec-extabi is a codegen option I think it makes sense to make sure it's not active when only -maltivec or nothing is specified on the command line. Does that work? |
clang/test/Driver/aix-vec-extabi.c | ||
---|---|---|
3 | Thank you, I wasn't aware of this option before this. |
clang/test/Driver/aix-vec-extabi.c | ||
---|---|---|
3 | --implicit-check-not=vec-extabi maybe better? |
--implicit-check-not=vec-extabi maybe better?
@jsji had to rename the test file because the filename was tripping the error 😆 but this is better.
Why we need to check this if the default is to set it to -mabi=vec-default in below else?