public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: Alexandre Petit-Bianco <apbianco@cygnus.com>
To: nobody@gcc.gnu.org
Cc: gcc-prs@gcc.gnu.org
Subject: Re: java/3096: GCJ does not increment
Date: Wed, 18 Jul 2001 17:36:00 -0000	[thread overview]
Message-ID: <20010719003600.4676.qmail@sourceware.cygnus.com> (raw)

The following reply was made to PR java/3096; it has been noted by GNATS.

From: Alexandre Petit-Bianco <apbianco@cygnus.com>
To: aneesha@hpl.hp.com
Cc: gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org
Subject: Re: java/3096: GCJ does not increment
Date: Wed, 18 Jul 2001 17:26:14 -0700 (PDT)

 aneesha@hpl.hp.com writes:
 
 > GCJ does not increment the value of an entry in an array when
 > the increment operator "++" is used in front. It, however,
 > works when the operator is appended at the end.
 
 The bug manifests itself only when compiling to native, regardless of
 -f{no-}bounds-check. The index has to be a non numeric value.
 
 When I put a breakpoint in expand_expr, I see that in the case of `++a[i]'
 `(reg:SI 72)' is being returned. When `a[i]++' is presented, then
 
   (queued:SI (mem:SI (reg:SI 70) 0)
       (nil)
       (nil)
       (parallel[ 
               (set (mem:SI (reg:SI 70) 0)
                   (plus:SI (mem:SI (reg:SI 70) 0)
                       (const_int 1 [0x1])))
               (clobber (reg:CC 17 flags))
           ] )
       (nil))
   
 is returned. -S shows that no code is generated for `++a[i].'
 
 ./A
 
 class T
 {
   public static void main(String [] args) {
     int a[] = new int[1];
     int i = 0;
     ++a[i];
     System.out.println (a[i]);
   }
 }


             reply	other threads:[~2001-07-18 17:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-18 17:36 Alexandre Petit-Bianco [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-10-08 11:29 apbianco
2001-06-08 16:56 aneesha

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=20010719003600.4676.qmail@sourceware.cygnus.com \
    --to=apbianco@cygnus.com \
    --cc=gcc-prs@gcc.gnu.org \
    --cc=nobody@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).