Hi Doug,
> Here's a better example, while pretty contrived, that shows how the
> compiler can optimize away things due to aliasing rules.
>
> What do you expect the output of the printf to be? In the -O2 and
> better case, I can tell you that gcc 4.4 differs from gcc 4.5, and is
> probably not wh
I'm sorry if I didn't convey my meaning properly, I was interrupted
before I completed.
Here's a better example, while pretty contrived, that shows how the
compiler can optimize away things due to aliasing rules.
What do you expect the output of the printf to be? In the -O2 and
better case, I ca
On Wed, Jun 30, 2010 at 4:05 PM, Paarvai Naai wrote:
> Yes, I am planning on posting my find on the GCC Bugzilla. I'm pretty
> sure it's a case of over-optimization (and a critical one at that),
> but I freely admit that I'm not an expert on the internals of GCC. :)
I have some more information
Hi Doug,
> Have you filed a bugzilla report for gcc against this bug? If it is
> an optimization wrong code bug, then it probably exists for other
> targets besides mingw32.
Yes, it's a problem across targets. I first caught it when compiling
for an x86_64-linux target.
> For example, a
> comm
On Wed, Jun 30, 2010 at 3:32 PM, Paarvai Naai wrote:
> Hi all,
>
> I am trying to build a mingw-w64 cross-compiler using the instructions
> outlined on the web.
>
> Originally I was successful in building a multilib cross-compiler
> using GCC 4.5.0, but now I want to backtrack to GCC 4.4.4. This
On Wed, Jun 30, 2010 at 10:32 PM, Paarvai Naai wrote:
> Hi all,
>
> I am trying to build a mingw-w64 cross-compiler using the instructions
> outlined on the web.
>
> Originally I was successful in building a multilib cross-compiler
> using GCC 4.5.0, but now I want to backtrack to GCC 4.4.4. This
Hi all,
I am trying to build a mingw-w64 cross-compiler using the instructions
outlined on the web.
Originally I was successful in building a multilib cross-compiler
using GCC 4.5.0, but now I want to backtrack to GCC 4.4.4. This is
because I found an optimization bug in GCC 4.5.0 that results i