Re: [Bug c/24486] gcc generates incorrect assignment because of reordering

2005-10-22 Thread Diego Novillo
On Saturday 22 October 2005 13:32, Diego Novillo wrote: > The bug in your code is exposed when GCC creates the intermediate > representation for your program. In that intermediate representation, > GCC is explicitly exposing the sequence points in expression evaluation > using the standard rules.

Re: [Bug c/24486] gcc generates incorrect assignment because of reordering

2005-10-22 Thread Diego Novillo
On Saturday 22 October 2005 13:20, manus at eiffel dot com wrote: > Would it make sense to have a new option in `gcc' to say that target is > always evaluated after source is? > Not really possible. You are correct that it occurs at any optimization level. The bug in your code is exposed when G