atomicity.h: Put the SH4A specific functions in the __gnu_cxx namespace.

2009-04-06  Andrew Stubbs  <ams@codesourcery.com>

	* config/cpu/sh/atomicity.h: Put the SH4A specific functions in the
	__gnu_cxx namespace.  Remove "static inline".

From-SVN: r145613
This commit is contained in:
Andrew Stubbs 2009-04-06 16:47:32 +00:00 committed by Andrew Stubbs
parent d26014d24e
commit 8f2b104d09
2 changed files with 41 additions and 35 deletions

View File

@ -1,3 +1,8 @@
2009-04-06 Andrew Stubbs <ams@codesourcery.com>
* config/cpu/sh/atomicity.h: Put the SH4A specific functions in the
__gnu_cxx namespace. Remove "static inline".
2009-04-06 Paolo Carlini <paolo.carlini@oracle.com>
* include/bits/random.tcc (linear_congruential_engine<>::

View File

@ -1,6 +1,6 @@
// Low-level functions for atomic operations: sh version -*- C++ -*-
// Copyright (C) 1999, 2001, 2002, 2003, 2004, 2005, 2006
// Copyright (C) 1999, 2001, 2002, 2003, 2004, 2005, 2006, 2009
// Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
@ -30,12 +30,13 @@
#ifdef __SH4A__
#ifndef _GLIBCXX_ATOMICITY_H
#define _GLIBCXX_ATOMICITY_H 1
#include <ext/atomicity.h>
_GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
typedef int _Atomic_word;
static inline _Atomic_word
_Atomic_word
__attribute__ ((__unused__))
__exchange_and_add (volatile _Atomic_word* __mem, int __val)
{
@ -56,7 +57,7 @@ __exchange_and_add (volatile _Atomic_word* __mem, int __val)
}
static inline void
void
__attribute__ ((__unused__))
__atomic_add (volatile _Atomic_word* __mem, int __val)
{
@ -70,7 +71,7 @@ __atomic_add (volatile _Atomic_word* __mem, int __val)
: "r0");
}
#endif
_GLIBCXX_END_NAMESPACE
#else /* !__SH4A__ */