Does compiling LLVM on PowerPC64 always requires -mminimal-toc?

Hi!

I always have to specify the flag -mminimize-toc when compiling on a PowerPC64 architecture (Linux, AIX). Is this the preferred way or are there other/better solutions?

If this flag is always required then I would create a patch to automatically set this flag.

Regards
Kai

Kai,

As I recall, this is required for gcc (but maybe not if you have a very recent version), and is not required when compiling with clang.

-Hal

Hi Hal,

so it makes sense to add this flag if the compiler is gcc. I try to create a patch...

Regards
Kai