On Sun, Mar 31, 2013 at 08:29:35PM +0200, John Darrington wrote:
> I have noticed a really wierd problem, which I think is
> a bug in gcc version 4.4.5
> 
> When compiled with -O2 tests [185, 189] (the ODS reader tests) fail.
> 
> Investigation shows that the stack is corrupt on return from
> the function casereader_count_cases__ and the program counter
> returns to the wrong address and crashes.
> 
> It seems to be a rather wierd bug.
> 
> The following patch seems to workaround the symptoms.

The patch seems reasonable to me as a GCC bug workaround.  It would be a
good idea to add the explanation above as a comment in the code (and the
commit log).

> Maybe someone can check this doesn't happen with later compilers.

It doesn't happen with GCC 4.7.2 (as we discussed on IRC).

_______________________________________________
pspp-dev mailing list
pspp-dev@gnu.org
https://lists.gnu.org/mailman/listinfo/pspp-dev

Reply via email to