This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Has anyone done make check for egcs 971008?
- To: egcs at cygnus dot com
- Subject: Has anyone done make check for egcs 971008?
- From: hjl at lucon dot org (H.J. Lu)
- Date: Thu, 9 Oct 1997 15:14:14 -0700 (PDT)
Hi,
I am having trouble with "make check" in libstdc++. First, I have
to apply this patch to link. I couldn't tell why it compiled ok.
After that, tstring dumped core. The gdb trace doesn't make any
sense to me. I was wondering if anyone had done "make check" on
any x86 platforms using ELF and DWARF EH.
Thanks.
--
H.J. Lu (hjl@gnu.ai.mit.edu)
---
Index: tstring.cc
===================================================================
RCS file: /home/work/cvs/gnu/egcs/libstdc++/tests/tstring.cc,v
retrieving revision 1.1.1.2
diff -u -r1.1.1.2 tstring.cc
--- tstring.cc 1997/10/01 19:56:05 1.1.1.2
+++ tstring.cc 1997/10/09 21:40:29
@@ -66,8 +66,8 @@
assert(i == 20);
assert(f == 20);
- int ar[] = { 'H', 'e', 'l', 'l', 'o' };
- string is (ar, ar+sizeof(ar)/sizeof(ar[0]));
+ char ar[] = { 'H', 'e', 'l', 'l', 'o' };
+ string is (ar, sizeof(ar)/sizeof(ar[0]));
cout << "is = " << is << endl;
assert (is == "Hello");
}
@@ -148,10 +148,10 @@
cout << "x.replace (0, 1, 'j'); x = " << x << "\n";
assert(x == "jello");
- int ar[] = { 'H', 'e', 'l', 'l', 'o' };
+ char ar[] = { 'H', 'e', 'l', 'l', 'o' };
x.replace (find (x.begin (), x.end (), 'l'),
find (x.rbegin (), x.rend (), 'l').base (),
- ar, ar+sizeof(ar)/sizeof(ar[0]));
+ ar, sizeof(ar)/sizeof(ar[0]));
cout << "x = " << x << endl;
assert (x == "jeHelloo");
}