This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Optimization breaks application
- From: Andrew Haley <aph at redhat dot com>
- To: Marco Trudel <mtrudel at gmx dot ch>
- Cc: java at gcc dot gnu dot org
- Date: Tue, 9 Jan 2007 18:00:22 +0000
- Subject: Re: Optimization breaks application
- References: <45A3D74A.2080304@gmx.ch>
Marco Trudel writes:
>
> I run into a problem with the gcj 4.2 branch that surprises me:
> If I compile a java application with -O1 or with -O2, the application
> doesn't work properly. If I omit optimization or use -O3, it works as
> expected.
That might be a bug.
> Before I try to minimize the problem; Is it a common problem that
> optimization might break applications?
It's unusual, but it happens. I fixed such a bug only yesterday.
> Is this then more a thing to discuss on the GCC or on the GCJ list?
Discuss it here.
Andrew.