https://bugs.kde.org/show_bug.cgi?id=385408

--- Comment #3 from Vadim Barkov <vbr...@gmail.com> ---
The adding of -march=z13 to CFLAGS isn't good aproach however it's the only way
to compile condition code helpers in VEX/priv/guest_s390x_helpers.c (I've tried
".insn vrr, ..." aproach but it doesn't compile)

gcc-6.1 adds support for "target" attribute. See example:
$ cat test.c
__attribute__ ((target("arch=z13")))
int main()
{
   asm volatile(
   "vlr %%r1, %%r2\n"
   :::
   );
   return 0;
}
$ gcc test.c -o test # Is fine for gcc-6
$ gcc --version
gcc version 6.2.1 20160826 [gcc-6-branch revision 239773] (SUSE Linux)

gcc-6 isn't avaible on RHEL12 so it could be a problem for users to compile
such code there. If drop of gcc-{4.8,5} support is fine I can use above
attributes and don't modify CFLAGS.

Let me know your opinion on this.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to