S/390: Fix __builtin_tbeginc signature
authorAndreas Krebbel <krebbel@linux.ibm.com>
Tue, 5 Jun 2018 07:22:24 +0000 (07:22 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Tue, 5 Jun 2018 07:22:24 +0000 (07:22 +0000)
commit51e00a122fe2784021c012e14851f28f34f06135
tree1a6831cc633d8ff70f0aac32a4e2a7b5339c072f
parentd31238cfde0b9e89a4b24e5d37c81aa55d54494b
S/390: Fix __builtin_tbeginc signature

The builtin was accidentally defined to have an integer return value.
Fixed with the attached patch.

gcc/ChangeLog:

2018-06-05  Andreas Krebbel  <krebbel@linux.ibm.com>

* config/s390/s390-builtin-types.def: Add void function type.
* config/s390/s390-builtins.def: Use the function type for the
tbeginc builtin.

gcc/testsuite/ChangeLog:

2018-06-05  Andreas Krebbel  <krebbel@linux.ibm.com>

* gcc.target/s390/htm-builtins-compile-4.c: New test.

From-SVN: r261183
gcc/ChangeLog
gcc/config/s390/s390-builtin-types.def
gcc/config/s390/s390-builtins.def
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/s390/htm-builtins-compile-4.c [new file with mode: 0644]