public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Andrew Haley <aph@redhat.com>
To: GCC Patches <gcc-patches@gcc.gnu.org>
Cc: Java Patches <java-patches@gcc.gnu.org>
Subject: PR java/28474: mangle_name.c mangles names unecessarily
Date: Tue, 20 Oct 2009 16:02:00 -0000	[thread overview]
Message-ID: <4ADDDEA7.6090204@redhat.com> (raw)
In-Reply-To: <alpine.DEB.1.10.0910200858290.24575@jdpc.ecovate.com>

Committed on behalf of Joel.

Andrew.


2009-10-20  Joel Dice <dicej@mailsnare.net>

        PR java/28474
        * mangle_name.c (append_unicode_mangled_name): Fix mangling
        of names with multiple underscores and "U".
        (unicode_mangling_length): Likewise.

Index: java/mangle_name.c
===================================================================
--- java/mangle_name.c  (revision 153017)
+++ java/mangle_name.c  (working copy)
@@ -266,7 +266,10 @@ append_unicode_mangled_name (const char
       int ch = UTF8_GET(ptr, limit);

       if ((ISALNUM (ch) && ch != 'U') || ch == '$')
-       obstack_1grow (mangle_obstack, ch);
+        {
+         obstack_1grow (mangle_obstack, ch);
+          uuU = 0;
+        }
       /* Everything else needs encoding */
       else
        {
@@ -321,7 +324,10 @@ unicode_mangling_length (const char *nam
       if (ch < 0)
        error ("internal error - invalid Utf8 name");
       if ((ISALNUM (ch) && ch != 'U') || ch == '$')
-       num_chars++;
+       {
+         num_chars++;
+         uuU = 0;
+       }
       /* Everything else needs encoding */
       else
        {

      parent reply	other threads:[~2009-10-20 16:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4AD846B0.2080102@rawbw.com>
2009-10-16 11:39 ` Is gcj dead? Dave Korn
2009-10-16 19:30   ` Gerald Pfeifer
2009-10-16 19:55     ` Dave Korn
2009-10-19 12:07   ` Andrew Haley
     [not found] ` <4ADAE903.2010009@redhat.com>
     [not found]   ` <bf0c3b3f0910190542v19c99f45yb2d5f97127de31f3@mail.gmail.com>
     [not found]     ` <4ADC6302.9010809@redhat.com>
     [not found]       ` <bf0c3b3f0910190606q26681634i13fd2d2273149aa3@mail.gmail.com>
     [not found]         ` <4ADC6531.5000504@redhat.com>
     [not found]           ` <bf0c3b3f0910190624h5b5ee0ao1b4796668aee11a8@mail.gmail.com>
     [not found]             ` <4ADC8DC5.3000204@redhat.com>
     [not found]               ` <alpine.DEB.1.10.0910191355210.13499@jdpc.ecovate.com>
     [not found]                 ` <4ADD8263.1070105@redhat.com>
     [not found]                   ` <alpine.DEB.1.10.0910200750090.13499@jdpc.ecovate.com>
     [not found]                     ` <4ADDC667.2050401@redhat.com>
     [not found]                       ` <alpine.DEB.1.10.0910200835001.24575@jdpc.ecovate.com>
     [not found]                         ` <alpine.DEB.1.10.0910200858290.24575@jdpc.ecovate.com>
2009-10-20 16:02                           ` Andrew Haley [this message]

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=4ADDDEA7.6090204@redhat.com \
    --to=aph@redhat.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=java-patches@gcc.gnu.org \
    /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).