mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-14 11:50:01 +08:00
atomicity.h (__atomic_add): Make first argument volatile.
* config/cpu/hppa/atomicity.h (__atomic_add): Make first argument volatile. * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK. From-SVN: r78633
This commit is contained in:
parent
5f1908384a
commit
3a1a4ed26e
@ -1,3 +1,10 @@
|
||||
2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
|
||||
|
||||
* config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
|
||||
volatile.
|
||||
* config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
|
||||
__GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
|
||||
|
||||
2004-02-28 Paolo Carlini <pcarlini@suse.de>
|
||||
|
||||
* include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
|
||||
|
@ -76,7 +76,7 @@ namespace __gnu_cxx
|
||||
|
||||
void
|
||||
__attribute__ ((__unused__))
|
||||
__atomic_add(_Atomic_word* __mem, int __val)
|
||||
__atomic_add(volatile _Atomic_word* __mem, int __val)
|
||||
{
|
||||
int tmp;
|
||||
volatile int& lock = _Atomicity_lock<0>::_S_atomicity_lock;
|
||||
|
@ -1,6 +1,6 @@
|
||||
// Specific definitions for HPUX -*- C++ -*-
|
||||
|
||||
// Copyright (C) 2000, 2002 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2000, 2002, 2004 Free Software Foundation, Inc.
|
||||
//
|
||||
// This file is part of the GNU ISO C++ Library. This library is free
|
||||
// software; you can redistribute it and/or modify it under the
|
||||
@ -93,7 +93,7 @@ typedef long int __padding_type;
|
||||
|
||||
/* We need explicit instantiation of the atomicity lock on HPPA if
|
||||
there is no weak support. */
|
||||
#if !defined(_GLIBCXX_SUPPORTS_WEAK) && defined (__hppa__)
|
||||
#if !__GXX_WEAK__ && defined (__hppa__)
|
||||
#define _GLIBCXX_INST_ATOMICITY_LOCK 1
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user