diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-09-27 22:25:04 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-09-27 22:25:04 +0000 |
commit | 262c876349e7b12a4c8fbd6d283cd190e7970a24 (patch) | |
tree | 251433f91a61231e5e7eaf3517de7cd2a13d03e1 /ld/cdtest-foo.cc | |
parent | 5c680d3f29a0f7073b32e00bc5d4fda17c5e89f0 (diff) | |
download | gdb-262c876349e7b12a4c8fbd6d283cd190e7970a24.zip gdb-262c876349e7b12a4c8fbd6d283cd190e7970a24.tar.gz gdb-262c876349e7b12a4c8fbd6d283cd190e7970a24.tar.bz2 |
* Makefile.in (CC): Define.
(CXX): Move definition, change from g++ to gcc.
(EXPECT, RUNTEST): Copy definitions from top level Makefile.in.
(RUNTEST_CC, RUNTEST_CFLAGS): Remove.
(RUNTEST_CXX, RUNTEST_CXXFLAGS): Remove.
(CC_FOR_TARGET, CXX_FOR_TARGET): Copy from top level Makefile.in.
(.cc.o): Comment out.
(testdir): Remove.
(site.exp): Don't create testdir or set tmpdir.
(check): Run checks even if not running native. Use CC_FOR_TARGET
instead of RUNTEST_CC, and likewise for CXX.
(cdtest targets): Comment out.
* config/solaris2.mh (HOSTING_LIBS): Only mention crtend.o once.
* cdtest-bar.cc, cdtest-foo.cc, cdtest-foo.h: Remove.
* cdtest-main.cc, cdtest.exp: Remove.
Diffstat (limited to 'ld/cdtest-foo.cc')
-rw-r--r-- | ld/cdtest-foo.cc | 89 |
1 files changed, 0 insertions, 89 deletions
diff --git a/ld/cdtest-foo.cc b/ld/cdtest-foo.cc deleted file mode 100644 index 615e33c..0000000 --- a/ld/cdtest-foo.cc +++ /dev/null @@ -1,89 +0,0 @@ -// Class Foo -#pragma implementation - - -// We don't use header files, since we only want to see, whether the -// compiler is installed properly. -// -#if (__GNUG__ == 2) -typedef __SIZE_TYPE__ size_t; -#else -typedef unsigned int size_t; -#endif - -extern "C" { - char *strncpy (char* dest, const char* dest, size_t len); - int printf (const char*, ...); -}; - -#include "cdtest-foo.h" - -int Foo::foos = 0; - -void Foo::init_foo () -{ - printf ("BROKENLY calling Foo::init_foo from __init_start; size_of(Foo) = %d\n", sizeof(Foo)); - foos = FOOLISH_NUMBER; -} - - -Foo::Foo () -{ - i = ++foos; - strncpy (message, "default-foo", len); -#ifdef WITH_ADDR - printf ("Constructing Foo(%d) \"default-foo\" at %08x\n", i, this); -#else - printf ("Constructing Foo(%d) \"default-foo\"\n", i); -#endif -} - -Foo::Foo (char* msg) -{ - i = ++foos; - strncpy( message, msg, len); -#ifdef WITH_ADDR - printf ( "Constructing Foo(%d) \"%s\" at %08x\n", i, message, this); -#else - printf ( "Constructing Foo(%d) \"%s\"\n", i, message); -#endif -} - - -Foo::Foo (const Foo& foo) -{ - i = ++foos; -#ifdef WITH_ADDR - printf ("Initializing Foo(%d) \"%s\" at %08x with Foo(%d) %08x\n", - i, foo.message, this, foo.i, &foo); -#else - printf ("Initializing Foo(%d) \"%s\" with Foo(%d)\n",i, foo.message, foo.i); -#endif - for ( int k = 0; k < FOO_MSG_LEN; k++) message[k] = foo.message[k]; -} - - -Foo& Foo::operator= (const Foo& foo) -{ -#ifdef WITH_ADDR - printf ("Copying Foo(%d) \"%s\" at %08x to Foo(%d) %08x\n", - foo.i, foo.message, &foo, i, this); -#else - printf ("Copying Foo(%d) \"%s\" to Foo(%d)\n", foo.i, foo.message, i); -#endif - for ( int k = 0; k < FOO_MSG_LEN; k++) message[k] = foo.message[k]; - return *this; -} - - -Foo::~Foo () -{ - foos--; -#ifdef WITH_ADDR - printf ("Destructing Foo(%d) \"%s\" at %08x (remaining foos: %d)\n", - i, message, this, foos); -#else - printf ("Destructing Foo(%d) \"%s\" (remaining foos: %d)\n", - i, message, foos); -#endif -} |