public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* NO_DOLLAR_IN_LABEL
@ 1999-01-31 23:58 Martin v. Loewis
  1999-01-31 23:58 ` NO_DOLLAR_IN_LABEL Per Bothner
                   ` (2 more replies)
  0 siblings, 3 replies; 31+ messages in thread
From: Martin v. Loewis @ 1999-01-31 23:58 UTC (permalink / raw)
  To: egcs, gcc2

It seems that there is a serious misconfiguration in gcc with regard to
usage of the dollar sign in assembler names. Many platforms define
NO_DOLLAR_IN_LABEL with a comment

/* Use periods rather than dollar signs in special g++ assembler names.  */

or

/* We define this to prevent the name mangler from putting dollar signs into
   function names.  */

This is not really the semantics of NO_DOLLAR_IN_LABEL - it really
should mean

>> Define this macro if the assembler does not accept the character
>> @samp{$} in label names.
                            [tm.texi]

Now, it is proposed that the dollar sign is used to encode universal
character names and 'national' characters if g++ uses '.', and vice
versa, with a fall-back when either dollars or dots are not available.

This is a good proposal, but for it to work, we have to really
indicate what the assembler supports.

I propose that we add an additional macro to tm.texi,
CXX_NO_DOLLAR_IN_LABEL, which is set in all config files which
currently use NO_DOLLAR_IN_LABEL even if the assemblers do support
dollar signs.

If there are no objections, I'll produce a patch in that direction.

Regards,
Martin

^ permalink raw reply	[flat|nested] 31+ messages in thread
* Re: NO_DOLLAR_IN_LABEL
@ 1999-01-31 23:58 Richard Kenner
  0 siblings, 0 replies; 31+ messages in thread
From: Richard Kenner @ 1999-01-31 23:58 UTC (permalink / raw)
  To: law; +Cc: egcs, gcc2

    If we end up needing an additional patch with an additional macro, it
    needs to be language independent.  In general, putting langauage
    specific stuff in the config files is frowned upon.  For example, if
    we need a macro to indicate that mangling should not use '$'
    independent of NO_DOLLAR_IN_LABEL we could use
    NO_DOLLAR_IN_MANGLED_NAMES or something like that.

I agree.  An irreverant way of saying this would be "if you want to add a
language-specific macro to config files, at least *pretend* it isn't
language-specific".  And who knows?  Perhaps some other language will indeed
use it.  Many times I've added a macro to tm.h that I was sure would only be
used by one machine, but it ended up being used by lots of them.

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

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

Thread overview: 31+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-01-31 23:58 NO_DOLLAR_IN_LABEL Martin v. Loewis
1999-01-31 23:58 ` NO_DOLLAR_IN_LABEL Per Bothner
1999-01-31 23:58   ` NO_DOLLAR_IN_LABEL Martin v. Loewis
1999-01-31 23:58     ` NO_DOLLAR_IN_LABEL Per Bothner
1999-01-31 23:58       ` NO_DOLLAR_IN_LABEL Martin v. Loewis
1999-01-31 23:58         ` NO_DOLLAR_IN_LABEL Per Bothner
1999-01-31 23:58           ` NO_DOLLAR_IN_LABEL Martin v. Loewis
1999-01-31 23:58             ` NO_DOLLAR_IN_LABEL Per Bothner
1999-01-31 23:58               ` NO_DOLLAR_IN_LABEL Paul Eggert
1999-01-31 23:58                 ` NO_DOLLAR_IN_LABEL Per Bothner
1999-01-31 23:58                   ` NO_DOLLAR_IN_LABEL Martin v. Loewis
1999-01-31 23:58                   ` NO_DOLLAR_IN_LABEL Paul Eggert
1999-01-31 23:58                     ` NO_DOLLAR_IN_LABEL Marc Espie
1999-01-31 23:58                     ` NO_DOLLAR_IN_LABEL Joe Buck
1999-01-31 23:58                   ` NO_DOLLAR_IN_LABEL Paul Eggert
1999-01-31 23:58                     ` NO_DOLLAR_IN_LABEL Per Bothner
1999-01-31 23:58                       ` NO_DOLLAR_IN_LABEL Paul Eggert
1999-01-31 23:58                         ` NO_DOLLAR_IN_LABEL John A. Tamplin
1999-01-31 23:58             ` NO_DOLLAR_IN_LABEL Paul Eggert
1999-01-31 23:58               ` NO_DOLLAR_IN_LABEL Per Bothner
1999-01-31 23:58                 ` NO_DOLLAR_IN_LABEL Paul Eggert
1999-01-31 23:58               ` NO_DOLLAR_IN_LABEL Martin v. Loewis
1999-01-31 23:58             ` NO_DOLLAR_IN_LABEL Horst von Brand
1999-01-31 23:58               ` NO_DOLLAR_IN_LABEL Martin v. Loewis
1999-01-31 23:58       ` NO_DOLLAR_IN_LABEL David Edelsohn
1999-01-31 23:58 ` NO_DOLLAR_IN_LABEL Jeffrey A Law
1999-01-31 23:58   ` NO_DOLLAR_IN_LABEL Martin v. Loewis
1999-01-31 23:58     ` NO_DOLLAR_IN_LABEL Jeffrey A Law
1999-01-31 23:58       ` NO_DOLLAR_IN_LABEL Martin v. Loewis
1999-01-31 23:58 ` NO_DOLLAR_IN_LABEL Per Bothner
1999-01-31 23:58 NO_DOLLAR_IN_LABEL Richard Kenner

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).