OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [tm/] [pr52141.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-fgnu-tm -O0 -w" } */
3
 
4
__attribute__((always_inline))
5
static void asmfunc(void)
6
{
7
  __asm__ (""); /* { dg-error "asm not allowed in .transaction_safe" } */
8
}
9
 
10
__attribute__((transaction_safe))
11
static void f(void)
12
{
13
  asmfunc();
14
}
15
 
16
int main()
17
{
18
  __transaction_atomic {
19
    f();
20
  }
21
  return 0;
22
}
23
 
24
/* { dg-message "inlined from \'f\'" "" { target *-*-* } 0 } */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.