Kai Nacke
2013-Jun-01 10:05 UTC
[LLVMdev] 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
Hal Finkel
2013-Jun-01 12:04 UTC
[LLVMdev] Does compiling LLVM on PowerPC64 always requires -mminimal-toc?
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 ----- Original Message -----> 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 > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >
Kai Nacke
2013-Jun-01 12:35 UTC
[LLVMdev] Does compiling LLVM on PowerPC64 always requires -mminimal-toc?
Hi Hal, so it makes sense to add this flag if the compiler is gcc. I try to create a patch... Regards Kai On 01.06.2013 14:04, Hal Finkel wrote:> 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 > > ----- Original Message ----- >> 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 >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >> > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >
Reasonably Related Threads
- [LLVMdev] Does compiling LLVM on PowerPC64 always requires -mminimal-toc?
- [LLVMdev] [cfe-dev] Odd PPC inline asm constraint
- [PATCH] ppc64: ELFv2: Load TOC value in system call stub
- [LLVMdev] [cfe-dev] Odd PPC inline asm constraint
- [LLVMdev] [cfe-dev] Odd PPC inline asm constraint