[llvm-commits] [PATCH, test-suite, AltiVec][1/4] Support building with FSF GCC

Ulrich Weigand Ulrich.Weigand at de.ibm.com
Fri Oct 12 05:25:54 PDT 2012


Hello,

all tests under SingleSource/UnitTests/Vector/Altivec/ failed for me,
because they did not even compile under the Linux system compiler.   It
turns out those tests use a number of features that had never been
supported by any FSF GCC release (or a Linux distribution compiler based on
those), only on certain GCC builds provided by Apple:

- The compiler flag -faltivec
  (FSF GCC only supports -maltivec.)

- Vector initializer syntax using parentheses
  (FSF GCC only supports the syntax using braces.)

The attached patch changes the test case sources and Makefiles to replace
those features by the equivalent ones supported by FSF GCC.  Since clang
already supports both versions, there should be no change there.  (Also, I
think Apple's PowerPC GCC supports both variants as well, so this shouldn't
be an issue either.)

Would this approach be OK?

Bye,
Ulrich

(See attached file: diff-testsuite-altivec-gcc)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: diff-testsuite-altivec-gcc
Type: application/octet-stream
Size: 4795 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121012/37e5af8b/attachment.obj>


More information about the llvm-commits mailing list