Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/tm/pr51472.c @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* { dg-do compile } */ |
2 /* { dg-options "-fgnu-tm -O --param tm-max-aggregate-size=32" } */ | |
3 /* { dg-additional-options "-fno-common" { target hppa*-*-hpux* } } */ | |
4 | |
5 typedef int __attribute__ ((vector_size (16))) vectype; | |
6 vectype v; | |
7 | |
8 void | |
9 foo (int c) | |
10 { | |
11 vectype *p = __builtin_malloc (sizeof (vectype)); | |
12 __transaction_atomic | |
13 { | |
14 *p = v; | |
15 if (c) | |
16 __transaction_cancel; | |
17 } | |
18 } |