This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/13653] [3.3 regression] -O2 -funroll-loop miscompiles POOMA testcase
- From: "dberlin at dberlin dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Feb 2004 16:16:00 -0000
- Subject: [Bug optimization/13653] [3.3 regression] -O2 -funroll-loop miscompiles POOMA testcase
- References: <20040112101346.13653.rguenth@tat.physik.uni-tuebingen.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From dberlin at dberlin dot org 2004-02-02 16:15 -------
Subject: Re: [3.3 regression] -O2 -funroll-loop miscompiles POOMA testcase
On Feb 2, 2004, at 10:11 AM, reichelt at gcc dot gnu dot org wrote:
>
> The testcase "minimal.c" is broken:
> Line 2549 in "main" calls "UniformGridPartition<Dim>::partition" (line
> 2007+)
> which calls "UniformGridPartition<Dim>::blocks" (line 1583) which is an
> empty function returning a reference which will later be used.
> Since the reference is not initialized at all this *has* to crash
> somewhere.
>
> IMHO we cannot rely on automatic reducers here. :-(
> One must know, whether it is safe to delete a line or not.
>
As I said, I can only reduce it based on some objective criteria.
In this case, it was "pass at -O2, fail with -O2 -funroll-loops", with
gcc 3.3.3.
This happens to be the case for minimal.c.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13653