public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/21844] New: miscompilation of LinkedHashMap
@ 2005-05-31 18:07 tromey at gcc dot gnu dot org
  2005-06-03 20:02 ` [Bug java/21844] " tromey at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: tromey at gcc dot gnu dot org @ 2005-05-31 18:07 UTC (permalink / raw)
  To: java-prs

This happens with 4.1 but not with 4.0.x.
It occurs even without -O.

I believe java.util.LinkedHashMap is being miscompiled.
You can see this by trying the test case in PR 20273.
For me, it crashes.

In the debugger I observed that this line from
LinkedHashMap$LinkedHashEntry.access() is incrementing
the 'succ' field and not the modCount field:
          modCount++;

-- 
           Summary: miscompilation of LinkedHashMap
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tromey at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org
 GCC build triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21844


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

end of thread, other threads:[~2005-06-13 19:23 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-31 18:07 [Bug java/21844] New: miscompilation of LinkedHashMap tromey at gcc dot gnu dot org
2005-06-03 20:02 ` [Bug java/21844] " tromey at gcc dot gnu dot org
2005-06-03 20:03 ` tromey at gcc dot gnu dot org
2005-06-03 20:03 ` tromey at gcc dot gnu dot org
2005-06-03 20:11 ` pinskia at gcc dot gnu dot org
2005-06-03 20:14 ` [Bug java/21844] [4.1 Regression] " pinskia at gcc dot gnu dot org
2005-06-03 21:18 ` tromey at gcc dot gnu dot org
2005-06-03 22:03 ` tromey at gcc dot gnu dot org
2005-06-13 19:20 ` cvs-commit at gcc dot gnu dot org
2005-06-13 19:22 ` cvs-commit at gcc dot gnu dot org
2005-06-13 19:23 ` tromey at gcc dot gnu dot org

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