This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Repository bugfix(?) on i586-pc-linux-gnu for g++ 2.95.2


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]