[cfarm-users] Enable one ISA for my code, and another ISA for GCC code?

Jeffrey Walton noloader at gmail.com
Wed Aug 15 13:52:05 CEST 2018


On Wed, Aug 15, 2018 at 7:02 AM, Jonathan Wakely <jwakely.gcc at gmail.com> wrote:
> On Wed, 15 Aug 2018 at 11:33, Jeffrey Walton via cfarm-users
> <cfarm-users at lists.tetaneutral.net> wrote:
>>
>> I'm catching a SIGILL on POWER7 ppc64-le machine. I compiled the
>> source with -mcpu=power8 so I could enable some builtins I may need.
>> Use of the builtins is guarded at runtime. (This is the classic distro
>> model, where most source code is compiled for a minimum machine but
>> higher ISAs are guarded at runtime).
>>
>> GCC converted some C code into POWER8 code. The SIGILL is happening in
>> the function prologue due to use of mtfprwz. Apparently mtfprwz is a
>> ISA 2.07B/POWER8 instruction.
>>
>> My question is, how do I tell GCC to use a different ISA than I am using?
>
> Doesn't this belong on gcc-help at gcc.gnu.org not the cfarm users list?

Oh, my bad... I saw the GCC but it was the compile farm and not GCC-help.

Jeff


More information about the cfarm-users mailing list