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)

Attachment: diff-clang-altivec
Description: Binary data

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to