public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: dmartin@clifton-labs.com (Dale E. Martin)
To: Alexandre Oliva <oliva@dcc.unicamp.br>
Cc: egcs@egcs.cygnus.com
Subject: Re: -frepo bugs in 1.1.1?
Date: Wed, 31 Mar 1999 23:46:00 -0000	[thread overview]
Message-ID: <87d82j4rxe.fsf@chinchilla.clifton-labs.com> (raw)
Message-ID: <19990331234600.D9ZrgGGUq7FmiVnGFBIA8DEPSTkhFINT0ASxEjbQ7X8@z> (raw)
In-Reply-To: <ork8wrra8r.fsf@araguaia.dcc.unicamp.br>

Alexandre Oliva <oliva@dcc.unicamp.br> writes:

> What about debugging?

Even with it stripped:
strings scram | grep "dl_list<IIR_Declaration>::find"

class wrapper_container * dl_list<IIR_Declaration>::find<IIR_Declaration>(const class IIR_Declaration *)
class wrapper_container * dl_list<IIR_Declaration>::find<IIR_Declaration>(const class IIR_Declaration *)
class wrapper_container * dl_list<IIR_Declaration>::find<IIR_Declaration>(const class IIR_Declaration *)
class wrapper_container * dl_list<IIR_Declaration>::find<IIR_Declaration>(const class IIR_Declaration *)

[ repeat 70 more times ] 

It was on a stripped and optimized binary that I started playing around
with originally.  I was trying to figure out how my binary was so large.
(Although with egcs it's about half the size as compared with g++-2.7.2.)

> Try `nm --demangle' instead of `strings'; if you get more than one
> definition (not `U') for each symbol, you may have found a problem.

Interesting - that only shows it once in the binary.  So, here's what I
know:
1) The string listed above, makes up 7k of my binary even after stripping it.
2) If I compile with "-frepo", I get linker errors (on other template
classes.)  

I find 2) less interesting if -frepo isn't going to shrink my binary
anyways, and I guess we're pretty sure it won't due to "nm --demangle"
showing the function actually being defined only once.

So I wonder what's up with the repeated strings?  Could it be due to an
assertion in that method?  (So that the assertion can print the function
name?) As I said, the definition of the method is in the header so the
assertion would be included everywhere the class is referenced...

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

  reply	other threads:[~1999-03-31 23:46 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-08  5:36 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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d82j4rxe.fsf@chinchilla.clifton-labs.com \
    --to=dmartin@clifton-labs.com \
    --cc=egcs@egcs.cygnus.com \
    --cc=oliva@dcc.unicamp.br \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).