[Haskell-cafe] -O2 bug in GHC 6.8.1?

2007-11-20 Thread Brad Clow
I upgraded from GHC 6.6.1 to 6.8.1 and around that time I noticed that the output from an app I am working on changed. I have distilled the code down to the following example that produces different output depending on whether it is compiled with -O2 or not: main = do let (T x) = read T 3

Re: [Haskell-cafe] -O2 bug in GHC 6.8.1?

2007-11-20 Thread Olivier Boudry
On 11/20/07, Ian Lynagh [EMAIL PROTECTED] wrote: Hi Brad, I can't reproduce this. Can you please tell us what platform you are on (e.g. x86_64 Linux) and what gcc --version says? Also, where did your GHC come from, e.g. bindists from the download page, self-compiled? Also, as Christian

Re: [Haskell-cafe] -O2 bug in GHC 6.8.1?

2007-11-20 Thread Ian Lynagh
Hi Brad, On Tue, Nov 20, 2007 at 09:50:02PM +1000, Brad Clow wrote: $ ./test 23 24 I can't reproduce this. Can you please tell us what platform you are on (e.g. x86_64 Linux) and what gcc --version says? Also, where did your GHC come from, e.g. bindists from the download page,

Re: [Haskell-cafe] -O2 bug in GHC 6.8.1?

2007-11-20 Thread Bertram Felgenhauer
Ian Lynagh wrote: Hi Brad, On Tue, Nov 20, 2007 at 09:50:02PM +1000, Brad Clow wrote: $ ./test 23 24 I can't reproduce this. Can you please tell us what platform you are on (e.g. x86_64 Linux) and what gcc --version says? I see a bug that only affects x86_32. The native code

Re: [Haskell-cafe] -O2 bug in GHC 6.8.1?

2007-11-20 Thread Josef Svenningsson
On Nov 20, 2007 4:32 PM, Ian Lynagh [EMAIL PROTECTED] wrote: Hi Brad, On Tue, Nov 20, 2007 at 09:50:02PM +1000, Brad Clow wrote: $ ./test 23 24 I can't reproduce this. Can you please tell us what platform you are on (e.g. x86_64 Linux) and what gcc --version says? Also, where did

Re: [Haskell-cafe] -O2 bug in GHC 6.8.1?

2007-11-20 Thread Bertram Felgenhauer
Brad Clow wrote: I upgraded from GHC 6.6.1 to 6.8.1 and around that time I noticed that the output from an app I am working on changed. I have distilled the code down to the following example that produces different output depending on whether it is compiled with -O2 or not: [...] I've

Re: [Haskell-cafe] -O2 bug in GHC 6.8.1?

2007-11-20 Thread Brad Clow
On Nov 21, 2007 1:32 AM, Ian Lynagh [EMAIL PROTECTED] wrote: I can't reproduce this. Can you please tell us what platform you are on (e.g. x86_64 Linux) and what gcc --version says? Mac OS X 10.4.11 $ gcc --version i686-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5367)