Re: [Mingw-w64-public] Backporting multilib support to GCC 4.4.x tree

2010-07-01 Thread Paarvai Naai
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

Re: [Mingw-w64-public] Backporting multilib support to GCC 4.4.x tree

2010-07-01 Thread Doug Semler
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

Re: [Mingw-w64-public] Backporting multilib support to GCC 4.4.x tree

2010-06-30 Thread Paarvai Naai
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

Re: [Mingw-w64-public] Backporting multilib support to GCC 4.4.x tree

2010-06-30 Thread Paarvai Naai
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

Re: [Mingw-w64-public] Backporting multilib support to GCC 4.4.x tree

2010-06-30 Thread Doug Semler
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

Re: [Mingw-w64-public] Backporting multilib support to GCC 4.4.x tree

2010-06-30 Thread Ozkan Sezer
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

[Mingw-w64-public] Backporting multilib support to GCC 4.4.x tree

2010-06-30 Thread Paarvai Naai
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