I tried to make a small stand-alone test but the test program always
worked. The problem is more involved. Of course my first suspicion was
corruption of memory coming from somewhere else in my program, but this
seems ruled out by the fact that it works fine without optimization and
it works fine when I added the dummy code to reference the variable (ii)
whose code was getting removed. This is all explained in the original
report. My tabular formatting was removed by the bug report utility so
it has to be looked at more carefully.

There were no compiler warnings.

I will try the tests with 4.5 and 4.6 tomorrow.

On 08/08/2011 03:21 PM, Matthias Klose wrote:
> - please recheck with GCC 4.5 and GCC 4.6 in oneiric.
> - please attach a self-contained example, including the command options used
> - include the warnings building the file.
>
> ** Changed in: gcc-defaults (Ubuntu)
>         Status: New =>  Incomplete
>

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/817768

Title:
  GCC optimizer removes necessary code

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-defaults/+bug/817768/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to