public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* -frepo bugs in 1.1.1?
@ 1999-03-08  5:36 Dale E. Martin
  1999-03-08 11:50 ` Alexandre Oliva
  1999-03-31 23:46 ` Dale E. Martin
  0 siblings, 2 replies; 22+ messages in thread
From: Dale E. Martin @ 1999-03-08  5:36 UTC (permalink / raw)


I have a very large project I'm working on that makes use of templates.
We're using the "Borland Model" of templates where everything for a
template class goes in the header file.  I ran "strings" on my binary the
other day, and noticed that commonly used template classes appear to be
instantiated in the binary a _lot_ of times.  I hadn't tried using -frepo
in a long time, and my reading of the docs led me to believe that all I
needed to do (since I am using the Borland model) is set the flag -frepo at 
compile time.  But, with that flag I get link errors saying some template
instantiations are missing.

Are there bugs in -frepo in egcs-1.1.1?

What kind of info could I provide that would be useful?

Thanks,
	Dale
-- 
+------------------------- pgp key available --------------------------+
| Dale E. Martin |  Clifton Labs, Inc.  |  Senior Computer Engineer    |
| dmartin@clifton-labs.com    |    http://www.clifton-labs.com         |
+----------------------------------------------------------------------+

^ permalink raw reply	[flat|nested] 22+ messages in thread
[parent not found: <8790d8m7bm.fsf.cygnus.egcs@chinchilla.clifton-labs.com>]
* Re: -frepo bugs in 1.1.1?
@ 1999-03-08 14:57 Mike Stump
  1999-03-31 23:46 ` Mike Stump
  0 siblings, 1 reply; 22+ messages in thread
From: Mike Stump @ 1999-03-08 14:57 UTC (permalink / raw)
  To: dmartin; +Cc: egcs

> From: dmartin@clifton-labs.com (Dale E. Martin)
> Date: 	08 Mar 1999 15:32:06 -0500

> Jason Merrill <jason@cygnus.com> writes:

> > A testcase so we can reproduce the problem.

> I'd love to be able to provide a small testcase.  The system I'm working
> with is large though.  The small cases I've played with work fine.

> I guess my main problem is that I'm well versed in solving linker
> problems using "nm" and experience, but I don't have any idea about
> how to debug ".rpo" files and all of that. Is there documentation
> available describing what's going on besides the egcs info file?

I can try and help you submit a bug report...  

First identify what symbol isn't being generated.  Be sure to figure
out the undemangled version.  confirm with nm.

Then, find out what file uses it (nm | grep 'U sym' will confirm a
use), and that it could be instantiated in.  Review output from -E on
the compile and ensure that the thing you want a definition for is
_defined_.  If not _defined_, fix source code or go back to this step.

grep around in the rpo file for the symbol, and file this information
along with the souce code to this _one_ file along with the linker
error message about not finding it.  Include the undemangled version
of the error message, please, not the demangled version.  Ensure that
the spelling is byte for byte identical.

This is mostly the same process of non-template code.  If you can
reduce the size of the file, without affecting the fundamentals of it,
that helps, and realistically will increase the odds of the bug being
fixed, but it isn't necessary for submission of a bug report.  Only
compression is required if it is large.

Hope this helps.

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~1999-03-31 23:46 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-03-08  5:36 -frepo bugs in 1.1.1? Dale E. Martin
1999-03-08 11:50 ` Alexandre Oliva
1999-03-08 12:21   ` Dale E. Martin
1999-03-08 12:38     ` Alexandre Oliva
1999-03-08 13:01       ` Dale E. Martin
1999-03-08 13:09         ` Alexandre Oliva
1999-03-08 13:49           ` Dale E. Martin
     [not found]             ` < 8790d74pps.fsf@chinchilla.clifton-labs.com >
1999-03-08 13:57               ` Joe Buck
1999-03-31 23:46                 ` Joe Buck
1999-03-31 23:46             ` Dale E. Martin
1999-03-31 23:46           ` Alexandre Oliva
1999-03-31 23:46         ` Dale E. Martin
1999-03-31 23:46       ` Alexandre Oliva
1999-03-31 23:46     ` Dale E. Martin
1999-03-31 23:46   ` Alexandre Oliva
1999-03-31 23:46 ` Dale E. Martin
     [not found] <8790d8m7bm.fsf.cygnus.egcs@chinchilla.clifton-labs.com>
1999-03-08 12:22 ` Jason Merrill
1999-03-08 12:32   ` Dale E. Martin
1999-03-31 23:46     ` Dale E. Martin
1999-03-31 23:46   ` Jason Merrill
1999-03-08 14:57 Mike Stump
1999-03-31 23:46 ` Mike Stump

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).