From 43093ad9e3d9dc5b258d07cb941635782fecb4f7 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 20 Oct 1997 18:37:48 +0000 Subject: [PATCH] * ld-srec/sr3.cc: Add definitions for terminate, __terminate, and __throw, since the current g++ expects them to be defined. --- ld/testsuite/ChangeLog | 25 +++++++++++++++++++++++++ ld/testsuite/ld-srec/sr3.cc | 18 ++++++++++++------ 2 files changed, 37 insertions(+), 6 deletions(-) diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index e5f66298c4d..708b6aaccf6 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,28 @@ +Mon Oct 20 14:36:39 1997 Ian Lance Taylor + + * ld-srec/sr3.cc: Add definitions for terminate, __terminate, and + __throw, since the current g++ expects them to be defined. + +Fri Oct 3 12:24:03 1997 Ian Lance Taylor + + * ld-elfvers/vers.exp (objdump_emptyverstuff): Accept the output + file if the string libc appears in it. + (objdump_versionstuff): Accept unexpected lines in the output + file. Compare lines using string match. + * ld-elfvers/vers6.ver: Permit any value in the vna_other field. + +Tue Aug 12 16:01:22 1997 Ian Lance Taylor + + * ld-scripts/crossref.exp: Correct string quoting. + +Sat Aug 9 00:56:03 1997 Ian Lance Taylor + + * config/default.exp: Change ld, as, nm and strip from .new to + -new. Load ld-lib.exp rather than ld.exp. + * ld-bootstrap/bootstrap.exp: Use ld-new rather than ld.new. + * lib/ld-lib.exp: Rename from lib/ld.exp, for the benefit of + DejaGnu changes. + Thu Jun 26 12:07:03 1997 Ian Lance Taylor * ld-elfvers/vers.exp: Use egrep rather than grep when looking for diff --git a/ld/testsuite/ld-srec/sr3.cc b/ld/testsuite/ld-srec/sr3.cc index 800b46b8355..e4aea927223 100644 --- a/ld/testsuite/ld-srec/sr3.cc +++ b/ld/testsuite/ld-srec/sr3.cc @@ -26,6 +26,14 @@ main () return 0; } +void +terminate(void) +{ + /* This recursive call prevents a compiler warning that the noreturn + function terminate actually does return. */ + terminate (); +} + extern "C" { int __main () @@ -42,15 +50,13 @@ __builtin_new () { } -/* V_SPILL and V_FILL are used by a29k-amd-udi. */ - -int -V_SPILL () +void +__throw () { } -int -V_FILL () +void +__terminate () { } } -- 2.30.2