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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [tm/] [20100524-2.c] - Blame information for rev 706

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-fgnu-tm -O0" } */
3
 
4
typedef struct {
5
        int value[5];
6
} type_t;
7
 
8
__attribute__((transaction_safe))
9
type_t func_move ();
10
 
11
__attribute__((transaction_safe))
12
type_t func_push (int type)
13
{
14
        type_t trace;
15
 
16
        if (type == 9)
17
                trace = func_move();
18
 
19
        return trace;
20
}

powered by: WebSVN 2.1.0

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