[Bug java/18399] [4.0 Regression] Class initialization optimization does not work with the inliner

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Nov 9 14:53:00 GMT 2004


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-09 14:53 -------
A good small example:
public class t
{
  static final int nn()
  {
    return 0;
  }


  public static void main (String[] argv)
  {
    int n = 0;
    for (int i = 0; i < 1000; i++)
      n += nn();
    System.out.println(n);
  }
}

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-11-09 14:53:03
               date|                            |


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



More information about the Gcc-bugs mailing list