This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug optimization/13653] [3.3 regression] -O2 -funroll-loop miscompiles POOMA testcase


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]