This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
A patch for ld testsutes
- To: binutils@sourceware.cygnus.com
- Subject: A patch for ld testsutes
- From: hjl@varesearch.com (H.J. Lu)
- Date: Sat, 17 Jul 1999 14:37:52 -0700 (PDT)
- Cc: ian@zembu.com (Ian Lance Taylor)
Hi,
Adding "-Wall -W" causes many failures in ld testsuites.
--
H.J. Lu (hjl@gnu.org)
--
Sat Jul 17 14:33:10 1999 H.J. Lu (hjl@gnu.org)
* ld-elfvers/vers1.c: Add missing prototypes and include
<stdio.h> 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.
Index: ld-elfvers/vers1.c
===================================================================
RCS file: /work/cvs/gnu/binutils/ld/testsuite/ld-elfvers/vers1.c,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 vers1.c
--- ld-elfvers/vers1.c 1999/06/03 18:02:11 1.1.1.1
+++ ld-elfvers/vers1.c 1999/07/17 21:27:36
@@ -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
* 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();
Index: ld-elfvers/vers15.c
===================================================================
RCS file: /work/cvs/gnu/binutils/ld/testsuite/ld-elfvers/vers15.c,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 vers15.c
--- ld-elfvers/vers15.c 1999/06/03 18:02:11 1.1.1.1
+++ ld-elfvers/vers15.c 1999/07/17 21:28:21
@@ -2,6 +2,7 @@
* Testcase to make sure that if we externally reference a versioned symbol
* that we always get the right one.
*/
+#include <stdio.h>
int
foo_1()
Index: ld-elfvers/vers19.c
===================================================================
RCS file: /work/cvs/gnu/binutils/ld/testsuite/ld-elfvers/vers19.c,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 vers19.c
--- ld-elfvers/vers19.c 1999/07/09 15:21:41 1.1.1.1
+++ ld-elfvers/vers19.c 1999/07/17 21:28:50
@@ -1,3 +1,7 @@
+#include <stdio.h>
+
+extern int show_foo ();
+
int
main ()
{
Index: ld-elfvers/vers2.c
===================================================================
RCS file: /work/cvs/gnu/binutils/ld/testsuite/ld-elfvers/vers2.c,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 vers2.c
--- ld-elfvers/vers2.c 1999/06/03 18:02:11 1.1.1.1
+++ ld-elfvers/vers2.c 1999/07/17 21:21:30
@@ -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 <stdio.h>
+
+extern int show_foo ();
void
show_xyzzy()
Index: ld-elfvers/vers3.c
===================================================================
RCS file: /work/cvs/gnu/binutils/ld/testsuite/ld-elfvers/vers3.c,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 vers3.c
--- ld-elfvers/vers3.c 1999/06/03 18:02:11 1.1.1.1
+++ ld-elfvers/vers3.c 1999/07/17 21:22:39
@@ -1,6 +1,9 @@
/*
* Main program for test1, test2.
*/
+#include <stdio.h>
+
+extern int show_foo ();
int
main()
Index: ld-elfvers/vers4.c
===================================================================
RCS file: /work/cvs/gnu/binutils/ld/testsuite/ld-elfvers/vers4.c,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 vers4.c
--- ld-elfvers/vers4.c 1999/06/03 18:02:11 1.1.1.1
+++ ld-elfvers/vers4.c 1999/07/17 21:23:44
@@ -4,6 +4,10 @@
* the actual symbol is exported. This is built both with and without
* -export-dynamic.
*/
+#include <stdio.h>
+
+extern int foo ();
+
int
bar()
{
Index: ld-elfvers/vers6.c
===================================================================
RCS file: /work/cvs/gnu/binutils/ld/testsuite/ld-elfvers/vers6.c,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 vers6.c
--- ld-elfvers/vers6.c 1999/06/03 18:02:11 1.1.1.1
+++ ld-elfvers/vers6.c 1999/07/17 21:24:32
@@ -2,6 +2,12 @@
* Testcase to make sure that if we externally reference a versioned symbol
* that we always get the right one.
*/
+#include <stdio.h>
+
+extern int foo_1();
+extern int foo_2();
+extern int foo_3();
+extern int foo_4();
int
main()
Index: ld-elfvers/vers7.c
===================================================================
RCS file: /work/cvs/gnu/binutils/ld/testsuite/ld-elfvers/vers7.c,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 vers7.c
--- ld-elfvers/vers7.c 1999/06/03 18:02:11 1.1.1.1
+++ ld-elfvers/vers7.c 1999/07/17 21:25:49
@@ -2,6 +2,8 @@
* Test program that goes with test7.so
*/
+extern int hide_a(int);
+extern int show_b(int);
int
main()
Index: ld-elfvers/vers9.c
===================================================================
RCS file: /work/cvs/gnu/binutils/ld/testsuite/ld-elfvers/vers9.c,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 vers9.c
--- ld-elfvers/vers9.c 1999/06/03 18:02:11 1.1.1.1
+++ ld-elfvers/vers9.c 1999/07/17 21:26:25
@@ -5,6 +5,8 @@
const char * bar1 = "asdf";
const char * bar2 = "asdf";
+extern int old_foo1();
+
int
bar()
{
Index: ld-shared/main.c
===================================================================
RCS file: /work/cvs/gnu/binutils/ld/testsuite/ld-shared/main.c,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 main.c
--- ld-shared/main.c 1999/06/03 18:02:11 1.1.1.1
+++ ld-shared/main.c 1999/07/17 21:29:43
@@ -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. */
Index: ld-srec/sr3.cc
===================================================================
RCS file: /work/cvs/gnu/binutils/ld/testsuite/ld-srec/sr3.cc,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 sr3.cc
--- ld-srec/sr3.cc 1999/06/03 18:02:11 1.1.1.1
+++ ld-srec/sr3.cc 1999/07/17 21:30:52
@@ -88,7 +88,7 @@ Foo::Foo ()
i = ++foos;
}
-Foo::Foo (char* msg)
+Foo::Foo (char*)
{
i = ++foos;
}