+2007-04-22 Paolo Carlini <pcarlini@suse.de>
+
+ * include/ext/concurrence.h: Do not include <cstdlib>, use
+ __builtin_abort.
+ * include/debug/debug.h: Likewise.
+ * include/tr1/memory: Likewise.
+ * include/tr1/boost_shared_ptr.h: Likewise.
+ * include/tr1/functional: Likewise.
+
2007-04-22 Paolo Carlini <pcarlini@suse.de>
* include/bits/locale_facets.tcc: Do not include <typeinfo>.
// Debugging support implementation -*- C++ -*-
-// Copyright (C) 2003, 2005, 2006
+// Copyright (C) 2003, 2004, 2005, 2006, 2007
// Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
#else
-# include <cstdlib>
# include <cstdio>
# include <debug/macros.h>
{
printf("%s:%d: %s: Assertion '%s' failed.\n", __file, __line,
__function, __condition);
- abort();
+ __builtin_abort();
}
} // namespace __debug
} // namespace std
// Support for concurrent programing -*- C++ -*-
-// Copyright (C) 2003, 2004, 2005, 2006
+// Copyright (C) 2003, 2004, 2005, 2006, 2007
// Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
#ifndef _CONCURRENCE_H
#define _CONCURRENCE_H 1
-#include <cstdlib>
#include <exception>
#include <bits/gthr.h>
#include <bits/functexcept.h>
#if __EXCEPTIONS
throw __concurrence_lock_error();
#else
- std::abort();
+ __builtin_abort();
#endif
}
#if __EXCEPTIONS
throw __concurrence_unlock_error();
#else
- std::abort();
+ __builtin_abort();
#endif
}
// <tr1/boost_shared_ptr.h> -*- C++ -*-
-// Copyright (C) 2005, 2006 Free Software Foundation, Inc.
+// Copyright (C) 2005, 2006, 2007 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
#if __EXCEPTIONS
throw bad_weak_ptr();
#else
- std::abort();
+ __builtin_abort();
#endif
}
#pragma GCC system_header
-#include <cstdlib> // for std::abort
#include <cmath> // for std::frexp
#include <string> // for std::tr1::hash
#include <functional>
#if __EXCEPTIONS
throw bad_function_call();
#else
- std::abort();
+ __builtin_abort();
#endif
}
return _M_invoker(_M_functor, __args...);
#define _TR1_MEMORY 1
#include <cstddef> // std::size_t
-#include <cstdlib> // std::abort
#include <exception> // std::exception
#include <new> // std::bad_alloc
#include <typeinfo> // std::type_info in get_deleter