newlib/winsup/cygwin/cxx.cc
Christopher Faylor f580813771 * child_info.h (fork_info): Use different method to alias variable.
(spawn_info): Ditto.
* cxx.cc (__cxa_guard_acquire): New function (needed for gcc 4.x).
(__cxa_guard_release): Ditto.
* devices.in: Make sure stuff is correctly bracketed (for gcc 4.x).
* devices.cc: Regenerate.
* fhandler.h (fhandler_disk_file::fchmod): Avoid left coercion (for gcc 4.x).
* smallprint.c (__rn): Declare as __fastcall since gcc 4.x complains about use
of regparm, for some reason.
* sync.h (sync::init_lock): Remove.
* sync.cc (sync::init_lock): Ditto.
2005-03-19 21:45:15 +00:00

57 lines
723 B
C++

/* cxx.cc
Copyright 2002, 2003 Red Hat, Inc.
This file is part of Cygwin.
This software is a copyrighted work licensed under the terms of the
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
details. */
#if (__GNUC__ >= 3)
#include "winsup.h"
#include <stdlib.h>
void *
operator new (size_t s)
{
void *p = calloc (1, s);
return p;
}
void
operator delete (void *p)
{
free (p);
}
void *
operator new[] (size_t s)
{
return ::operator new (s);
}
void
operator delete[] (void *p)
{
::operator delete (p);
}
extern "C" void
__cxa_pure_virtual (void)
{
api_fatal ("pure virtual method called");
}
extern "C" void
__cxa_guard_acquire ()
{
}
extern "C" void
__cxa_guard_release ()
{
}
#endif