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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [tm/] [cgraph_edge.C] - Rev 717

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

// { dg-do compile }
// { dg-options "-fgnu-tm -O3" }

template<typename _InputIterator, typename _Distance>  inline void advance(_InputIterator& __i, _Distance __n)
  {
    if (__n > 0) 
      while (__n--)
        --__i;
    else  
      --__i;
  }

void  _Rb_tree_increment ();

template<typename _Tp> struct _Rb_tree_iterator 
  {
    typedef _Rb_tree_iterator<_Tp> iterator;

    iterator& operator--()
      {
        _Rb_tree_increment();
      }
  };

void update ()
  {
    _Rb_tree_iterator<int>::iterator it;
    __transaction_relaxed
      {
        advance (it, 0);
      }
  }

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

powered by: WebSVN 2.1.0

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