[cfe-commits] [PATCH] Add missing "static" to altivec.h

Ulrich Weigand Ulrich.Weigand at de.ibm.com
Wed Oct 31 09:26:29 PDT 2012


Hello,

a small number of the inline routines in altivec.h are missing the "static"
specifier (most routines already have it).  This causes the compiler to
emit an out-of-line copy of those routines into every file compiled with
-maltivec; if multiple such files are linked together, this causes a linker
error.  This happens e.g. when attempting to self-host clang on PowerPC at
the moment ...

The attached patch adds those missing "static" specifiers.  With this
patch, I'm able to use clang to build clang on PowerPC.

OK to commit?

Bye,
Ulrich

(See attached file: diff-clang-altivec)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: diff-clang-altivec
Type: application/octet-stream
Size: 3341 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20121031/a4db2ccc/attachment.obj>


More information about the cfe-commits mailing list