summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2011-08-24 11:36:53 +0200
committerIvan Maidanski <ivmai@mail.ru>2011-09-12 11:00:11 +0200
commita7c3f81f637bd17caa433f911161aecd3bbfec54 (patch)
tree763ba051ecf316a038eff1823f23603210db6c56 /tests
parentbec60375e750fb413118ea50e388a3b0f076fdcb (diff)
Remove references to old missing gc_alloc.h and gc_local_alloc.h files.
Remove unused HPUX GC_test_and_clear implementation. (Apply commit 6f07a01) * hpux_test_and_clear.s: Remove. * Makefile.am (EXTRA_DIST): Remove hpux_test_and_clear.s. * Makefile.direct (SRCS): Ditto. * Makefile.dj (SRCS): Ditto. * Makefile.dj (SRCS): Remove missing gcc_support.c, include/gc_alloc.h, include/gc_local_alloc.h. * doc/gcdescr.html: Remove information about gc_local_alloc.h. * doc/gcinterface.html: Ditto. * doc/scale.html: Ditto. * doc/gcinterface.html: Remove information about gc_alloc.h. * tests/test_cpp.cc: Don't include missing old gc_alloc.h (include new_gc_alloc.h instead); don't test __GNUC__. * tests/test_cpp.cc (main): Use gc_alloc class instead of alloc (don't test __GNUC__). * windows-untested/vc60/gc.dsp (SOURCE): Don't include missing gc_alloc.h, gc_local_alloc.h. * windows-untested/vc60/libgc.dsp (SOURCE): Ditto. * windows-untested/vc70/gc.vcproj (Header Files): Ditto. * windows-untested/vc70/libgc.vcproj (Header Files): Ditto. * windows-untested/vc71/gc.vcproj (Header Files): Ditto. * windows-untested/vc71/libgc.vcproj (Header Files): Ditto.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_cpp.cc10
1 files changed, 2 insertions, 8 deletions
diff --git a/tests/test_cpp.cc b/tests/test_cpp.cc
index ce683af..9352b6a 100644
--- a/tests/test_cpp.cc
+++ b/tests/test_cpp.cc
@@ -40,10 +40,8 @@ few minutes to complete.
#ifdef USE_STD_ALLOCATOR
# include "gc_allocator.h"
-#elif __GNUC__
-# include "new_gc_alloc.h"
#else
-# include "gc_alloc.h"
+# include "new_gc_alloc.h"
#endif
extern "C" {
@@ -215,11 +213,7 @@ int APIENTRY WinMain(
xio = gc_allocator_ignore_off_page<int>().allocate(1);
int **xptr = traceable_allocator<int *>().allocate(1);
# else
-# ifdef __GNUC__
- int *x = (int *)gc_alloc::allocate(sizeof(int));
-# else
- int *x = (int *)alloc::allocate(sizeof(int));
-# endif
+ int *x = (int *)gc_alloc::allocate(sizeof(int));
# endif
*x = 29;
# ifdef USE_STD_ALLOCATOR