aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/rs6000/htmxlintrin.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/rs6000/htmxlintrin.h')
-rw-r--r--gcc/config/rs6000/htmxlintrin.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/config/rs6000/htmxlintrin.h b/gcc/config/rs6000/htmxlintrin.h
index bf7fe3a75ab..f1be368f000 100644
--- a/gcc/config/rs6000/htmxlintrin.h
+++ b/gcc/config/rs6000/htmxlintrin.h
@@ -81,7 +81,8 @@ extern __inline long
__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
__TM_end (void)
{
- if (__builtin_expect (__builtin_tend (0), 1))
+ unsigned char status = _HTM_STATE (__builtin_tend (0));
+ if (__builtin_expect (status, _HTM_TRANSACTIONAL))
return 1;
return 0;
}