public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Joe Buck <jbuck@synopsys.com>
To: gregg@eoeml.gtri.gatech.edu (Greg Galloway)
Cc: egcs@cygnus.com
Subject: Re: DEC Unix and string too long with templates
Date: Mon, 04 May 1998 19:47:00 -0000	[thread overview]
Message-ID: <199805050049.RAA09176@atrus.synopsys.com> (raw)
In-Reply-To: <199805041516.LAA03801@nospokes.gtri.gatech.edu>

> I have once again run into the symbol too long error message from the
> DEC Unix assembler.  When running DEC Unix 3.2, the simple solution was to
> turn debugging off.  Now with 4.0, I can still get the error even without
> debugging.  Corey Kosak and Joe Buck posted back in October that the common
> work-around is to subclass string.

The basic idea is simple enough:

class MyString : public string {
public:
	// declare constructors
	// declare assignment operators
};

that is, you have to redeclare the things that don't inherit.

> Is it possible to use GAS under DEC Unix to get around this problem?

Yes (gas has no limit on symbol length).  Even so, the names are too long,
meaning you spend a lot of disk space on debug information.
The snapshots have an experimental solution, the -fsquangle flag, which
uses a new name mangling scheme that is a lot more compact for template
names ... but it will be a while before that can be made available.




  reply	other threads:[~1998-05-04 19:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-05-04  8:16 Greg Galloway
1998-05-04 19:47 ` Joe Buck [this message]
1998-05-05  8:20   ` Ian Lance Taylor

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=199805050049.RAA09176@atrus.synopsys.com \
    --to=jbuck@synopsys.com \
    --cc=egcs@cygnus.com \
    --cc=gregg@eoeml.gtri.gatech.edu \
    /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).