public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/21662] New: Fields in interfaces not optimized when read from *.class, but optimized when read from *.java
@ 2005-05-19 11:48 jakub at gcc dot gnu dot org
  2005-05-21 14:02 ` [Bug java/21662] [3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: jakub at gcc dot gnu dot org @ 2005-05-19 11:48 UTC (permalink / raw)
  To: java-prs

#!/bin/sh
rm -rf test
mkdir test
cat > test/Configuration.java <<EOF
package test;
public interface Configuration
{
  boolean INIT_LOAD_LIBRARY = false;
}
EOF
cat > test/Test.java <<EOF
package test;
import test.Configuration;
public class Test
{
  static
  {
    if (Configuration.INIT_LOAD_LIBRARY)
      {
        System.loadLibrary("gtkpeer");
      }
  }
}
EOF
gcj -C --classpath '' test/Test.java
mv test/Test.class{,.fromsrc}
gcj -C --classpath '' test/Configuration.java
gcj -C --classpath '' test/Test.java
mv test/Test.class{,.fromclass}
jcf-dump -c test/Test.class.fromsrc > test/fromsrc
jcf-dump -c test/Test.class.fromclass > test/fromclass
diff -u test/from{src,class}

In libjava build unless --enable-libgcj-multifile is used this has the bad
side effect that libgcj-4*.jar depends on the exact timing when doing make -jN
build (e.g. GdkTextLayout.java and Configuration.java are compiled about at the
same time, so if Configuration.java is compiled quickly enough
GdkTextLayout.class will not be as optimized as it could be, while
if Configuration.java compilation is tiny bit slower, GdkTextLayout.java's
compilation will read Configuration.java and optimize the bool test out.

-- 
           Summary: Fields in interfaces not optimized when read from
                    *.class, but optimized when read from *.java
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jakub at gcc dot gnu dot org
                CC: aph at gcc dot gnu dot org,gcc-bugs at gcc dot gnu dot
                    org,java-prs at gcc dot gnu dot org


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


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

* [Bug java/21662] [3.4/4.0/4.1 Regression] Fields in interfaces not optimized when read from *.class, but optimized when read from *.java
  2005-05-19 11:48 [Bug java/21662] New: Fields in interfaces not optimized when read from *.class, but optimized when read from *.java jakub at gcc dot gnu dot org
@ 2005-05-21 14:02 ` pinskia at gcc dot gnu dot org
  2005-05-21 14:03 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-21 14:02 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-21 14:01 -------
Confirmed, in 3.2.3, we produced the same class file.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |missed-optimization
      Known to fail|                            |3.3.3 3.4.0 4.0.0 4.1.0
      Known to work|                            |3.2.3
   Last reconfirmed|0000-00-00 00:00:00         |2005-05-21 14:01:59
               date|                            |
            Summary|Fields in interfaces not    |[3.4/4.0/4.1 Regression]
                   |optimized when read from    |Fields in interfaces not
                   |*.class, but optimized when |optimized when read from
                   |read from *.java            |*.class, but optimized when
                   |                            |read from *.java
   Target Milestone|---                         |4.0.1


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


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

* [Bug java/21662] [3.4/4.0/4.1 Regression] Fields in interfaces not optimized when read from *.class, but optimized when read from *.java
  2005-05-19 11:48 [Bug java/21662] New: Fields in interfaces not optimized when read from *.class, but optimized when read from *.java jakub at gcc dot gnu dot org
  2005-05-21 14:02 ` [Bug java/21662] [3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2005-05-21 14:03 ` pinskia at gcc dot gnu dot org
  2005-07-08  1:37 ` mmitchel at gcc dot gnu dot org
  2005-08-22  3:34 ` mmitchel at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-21 14:03 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-21 14:03 -------
(In reply to comment #1)
> Confirmed, in 3.2.3, we produced the same class file.
Oh and optimized it correctly.

-- 


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


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

* [Bug java/21662] [3.4/4.0/4.1 Regression] Fields in interfaces not optimized when read from *.class, but optimized when read from *.java
  2005-05-19 11:48 [Bug java/21662] New: Fields in interfaces not optimized when read from *.class, but optimized when read from *.java jakub at gcc dot gnu dot org
  2005-05-21 14:02 ` [Bug java/21662] [3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
  2005-05-21 14:03 ` pinskia at gcc dot gnu dot org
@ 2005-07-08  1:37 ` mmitchel at gcc dot gnu dot org
  2005-08-22  3:34 ` mmitchel at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-07-08  1:37 UTC (permalink / raw)
  To: java-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.0.1                       |4.0.2


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


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

* [Bug java/21662] [3.4/4.0/4.1 Regression] Fields in interfaces not optimized when read from *.class, but optimized when read from *.java
  2005-05-19 11:48 [Bug java/21662] New: Fields in interfaces not optimized when read from *.class, but optimized when read from *.java jakub at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2005-07-08  1:37 ` mmitchel at gcc dot gnu dot org
@ 2005-08-22  3:34 ` mmitchel at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-08-22  3:34 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2005-08-22 03:34 -------
Java bugs are not release-critical; removing target milestone.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.0.2                       |---


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


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

end of thread, other threads:[~2005-08-22  3:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-19 11:48 [Bug java/21662] New: Fields in interfaces not optimized when read from *.class, but optimized when read from *.java jakub at gcc dot gnu dot org
2005-05-21 14:02 ` [Bug java/21662] [3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-05-21 14:03 ` pinskia at gcc dot gnu dot org
2005-07-08  1:37 ` mmitchel at gcc dot gnu dot org
2005-08-22  3:34 ` mmitchel 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).