This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Repository bugfix(?) on i586-pc-linux-gnu for g++ 2.95.2
- To: gcc-patches at gcc dot gnu dot org
- Subject: Repository bugfix(?) on i586-pc-linux-gnu for g++ 2.95.2
- From: Chris Rankin <rankinc at zip dot com dot au>
- Date: Sun, 31 Oct 1999 20:39:07 +1100 (EST)
Hi,
I have been having problems using the -frepo option to compile
templated (read: STL) C++ code. Anyway, last night I finally hacked
into the code and made the following patch:
--------------------------------------------------------------------
$ diff -c gcc/tlink.c.orig gcc/tlink.c
*** gcc/tlink.c.orig Sun Oct 31 01:38:38 1999
--- gcc/tlink.c Sun Oct 31 01:39:31 1999
***************
*** 663,672 ****
}
if (sym && sym->tweaked)
! {
! fclose (stream);
! return 0;
! }
if (sym && !sym->tweaking)
{
if (tlink_verbose >= 2)
--- 663,669 ----
}
if (sym && sym->tweaked)
! continue;
if (sym && !sym->tweaking)
{
if (tlink_verbose >= 2)
--------------------------------------------------------------------
This works on all of my test-cases that previously failed in long
lists of unresolved symbols. The rationale behind the change is
"don't quit looking at symbols just because you've found one that
doesn't need tweaking any more".
Cheers,
Chris.