From: Ian Lance Taylor Date: Thu, 22 Jul 1999 00:40:34 +0000 (+0000) Subject: 1999-07-21 H.J. Lu X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0cd9f5f03ba1fc0a5ce4a87fd9a1ed821eaa81c1;p=binutils-gdb.git 1999-07-21 H.J. Lu * ld-elfvers/vers1.c: Add missing prototypes and include if necessary. * ld-elfvers/vers15.c: Likewise. * ld-elfvers/vers19.c: Likewise. * ld-elfvers/vers2.c: Likewise. * ld-elfvers/vers3.c: Likewise. * ld-elfvers/vers4.c: Likewise. * ld-elfvers/vers6.c: Likewise. * ld-elfvers/vers7.c: Likewise. * ld-elfvers/vers9.c: Likewise. * ld-shared/main.c: Likewise. * ld-srec/sr3.cc (Foo::Foo): Remove arg name. --- diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index e0074d23350..65e3ecc7671 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,18 @@ +1999-07-21 H.J. Lu + + * ld-elfvers/vers1.c: Add missing prototypes and include + if necessary. + * ld-elfvers/vers15.c: Likewise. + * ld-elfvers/vers19.c: Likewise. + * ld-elfvers/vers2.c: Likewise. + * ld-elfvers/vers3.c: Likewise. + * ld-elfvers/vers4.c: Likewise. + * ld-elfvers/vers6.c: Likewise. + * ld-elfvers/vers7.c: Likewise. + * ld-elfvers/vers9.c: Likewise. + * ld-shared/main.c: Likewise. + * ld-srec/sr3.cc (Foo::Foo): Remove arg name. + Thu Jul 15 18:00:30 1999 Mark P. Mitchell * ld-undefined/undefined.exp: XFAIL on IRIX6 for the usual as diff --git a/ld/testsuite/ld-elfvers/vers1.c b/ld/testsuite/ld-elfvers/vers1.c index 1d41fd9d04b..c27bc3bce7e 100644 --- a/ld/testsuite/ld-elfvers/vers1.c +++ b/ld/testsuite/ld-elfvers/vers1.c @@ -6,6 +6,9 @@ const char * show_bar1 = "asdf"; const char * show_bar2 = "asdf"; +extern int new2_foo(); +extern int bar33(); + int bar() { @@ -71,7 +74,7 @@ __asm__(".symver hide_new_bogus_foo,show_foo@VERS_2.2"); * This test is designed to catch a couple of syntactic errors. The assembler * should complain about both of the directives below. */ -int +void xyzzz() { new2_foo(); @@ -87,7 +90,7 @@ __asm__(".symver bar33,bar@@VERS_2.0"); * This test is designed to catch a couple of syntactic errors. The assembler * should complain about both of the directives below. */ -int +void xyzzz() { new2_foo(); diff --git a/ld/testsuite/ld-elfvers/vers15.c b/ld/testsuite/ld-elfvers/vers15.c index d32be3ffd55..4e22cac092a 100644 --- a/ld/testsuite/ld-elfvers/vers15.c +++ b/ld/testsuite/ld-elfvers/vers15.c @@ -2,6 +2,7 @@ * Testcase to make sure that if we externally reference a versioned symbol * that we always get the right one. */ +#include int foo_1() diff --git a/ld/testsuite/ld-elfvers/vers19.c b/ld/testsuite/ld-elfvers/vers19.c index bc2d83cf8d1..c1bf27a8139 100644 --- a/ld/testsuite/ld-elfvers/vers19.c +++ b/ld/testsuite/ld-elfvers/vers19.c @@ -1,3 +1,7 @@ +#include + +extern int show_foo (); + int main () { diff --git a/ld/testsuite/ld-elfvers/vers2.c b/ld/testsuite/ld-elfvers/vers2.c index d6a537ea4fa..eda54cb0cf4 100644 --- a/ld/testsuite/ld-elfvers/vers2.c +++ b/ld/testsuite/ld-elfvers/vers2.c @@ -2,6 +2,9 @@ * Test function. This is built into a shared library, and references a * versioned symbol foo that is in test.so. */ +#include + +extern int show_foo (); void show_xyzzy() diff --git a/ld/testsuite/ld-elfvers/vers3.c b/ld/testsuite/ld-elfvers/vers3.c index b006d7717e9..dbb4dafedc7 100644 --- a/ld/testsuite/ld-elfvers/vers3.c +++ b/ld/testsuite/ld-elfvers/vers3.c @@ -1,6 +1,9 @@ /* * Main program for test1, test2. */ +#include + +extern int show_foo (); int main() diff --git a/ld/testsuite/ld-elfvers/vers4.c b/ld/testsuite/ld-elfvers/vers4.c index 15497cacc81..453f2eb4d9c 100644 --- a/ld/testsuite/ld-elfvers/vers4.c +++ b/ld/testsuite/ld-elfvers/vers4.c @@ -4,6 +4,10 @@ * the actual symbol is exported. This is built both with and without * -export-dynamic. */ +#include + +extern int foo (); + int bar() { diff --git a/ld/testsuite/ld-elfvers/vers6.c b/ld/testsuite/ld-elfvers/vers6.c index b5868bf3794..9e48df9b400 100644 --- a/ld/testsuite/ld-elfvers/vers6.c +++ b/ld/testsuite/ld-elfvers/vers6.c @@ -2,6 +2,12 @@ * Testcase to make sure that if we externally reference a versioned symbol * that we always get the right one. */ +#include + +extern int foo_1(); +extern int foo_2(); +extern int foo_3(); +extern int foo_4(); int main() diff --git a/ld/testsuite/ld-elfvers/vers7.c b/ld/testsuite/ld-elfvers/vers7.c index d25b7e00628..54316c92429 100644 --- a/ld/testsuite/ld-elfvers/vers7.c +++ b/ld/testsuite/ld-elfvers/vers7.c @@ -2,6 +2,8 @@ * Test program that goes with test7.so */ +extern int hide_a(); +extern int show_b(); int main() diff --git a/ld/testsuite/ld-elfvers/vers9.c b/ld/testsuite/ld-elfvers/vers9.c index 432fddb19b3..bef1402d269 100644 --- a/ld/testsuite/ld-elfvers/vers9.c +++ b/ld/testsuite/ld-elfvers/vers9.c @@ -5,6 +5,8 @@ const char * bar1 = "asdf"; const char * bar2 = "asdf"; +extern int old_foo1(); + int bar() { diff --git a/ld/testsuite/ld-shared/main.c b/ld/testsuite/ld-shared/main.c index 4fcfdaa1271..fe5c78ae423 100644 --- a/ld/testsuite/ld-shared/main.c +++ b/ld/testsuite/ld-shared/main.c @@ -17,6 +17,7 @@ extern int shlib_checkfunptr2 (); extern int (*shlib_getfunptr1 ()) (); extern int (*shlib_getfunptr2 ()) (); extern int shlib_check (); +extern int shlib_shlibcall2 (); /* This function is called by the shared library. */ diff --git a/ld/testsuite/ld-srec/sr3.cc b/ld/testsuite/ld-srec/sr3.cc index 8717c26f34b..bfe5cc849ba 100644 --- a/ld/testsuite/ld-srec/sr3.cc +++ b/ld/testsuite/ld-srec/sr3.cc @@ -88,7 +88,7 @@ Foo::Foo () i = ++foos; } -Foo::Foo (char* msg) +Foo::Foo (char*) { i = ++foos; }