Re: Floating point constant folding bug?

2013-03-15 Thread Iain Buclaw
On 15 March 2013 22:00, Johannes Pfau wrote: > Am Fri, 15 Mar 2013 20:20:14 + > schrieb Iain Buclaw : > > > On 15 March 2013 18:35, Johannes Pfau wrote: > > > > > Forget what I've said, I somehow read that code as a > > > bitwise/reinterpret cast but of course the code does an > > > integer/

Re: gdc phobos and druntime automatic import

2013-03-15 Thread Johannes Pfau
Am Fri, 15 Mar 2013 14:00:23 -0500 schrieb Daniel Green : > On 3/15/2013 11:42 AM, Benjamin Thaut wrote: > > Well mingw-gdc is quite a bit behind. > > I'm working on that. > > C:\MinGW\msys\1.0>/crossdev/gdc/stage/bin/gdc -v > Using built-in specs. > COLLECT_GCC=/crossdev/gdc/stage/bin/gdc > COL

Re: Floating point constant folding bug?

2013-03-15 Thread Johannes Pfau
Am Fri, 15 Mar 2013 20:20:14 + schrieb Iain Buclaw : > On 15 March 2013 18:35, Johannes Pfau wrote: > > > Forget what I've said, I somehow read that code as a > > bitwise/reinterpret cast but of course the code does an > > integer/float conversion so it's probably OK. > > > > This is more in

[Issue 33] Illegal instruction reordering with O2

2013-03-15 Thread gdc-bugzilla
http://gdcproject.org/bugzilla/show_bug.cgi?id=33 Iain Buclaw changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

Re: Floating point constant folding bug?

2013-03-15 Thread Iain Buclaw
On 15 March 2013 18:35, Johannes Pfau wrote: > Forget what I've said, I somehow read that code as a bitwise/reinterpret > cast but of course the code does an integer/float conversion so it's > probably OK. > > This is more interesting: > > --- > float f = float.infinity; > float f2 = floa

Re: gdc phobos and druntime automatic import

2013-03-15 Thread Benjamin Thaut
Am 15.03.2013 20:00, schrieb Daniel Green: On 3/15/2013 11:42 AM, Benjamin Thaut wrote: Well mingw-gdc is quite a bit behind. I'm working on that. C:\MinGW\msys\1.0>/crossdev/gdc/stage/bin/gdc -v Using built-in specs. COLLECT_GCC=/crossdev/gdc/stage/bin/gdc COLLECT_LTO_WRAPPER=c:/crossdev/gdc

Re: gdc phobos and druntime automatic import

2013-03-15 Thread Daniel Green
On 3/15/2013 11:42 AM, Benjamin Thaut wrote: Well mingw-gdc is quite a bit behind. I'm working on that. C:\MinGW\msys\1.0>/crossdev/gdc/stage/bin/gdc -v Using built-in specs. COLLECT_GCC=/crossdev/gdc/stage/bin/gdc COLLECT_LTO_WRAPPER=c:/crossdev/gdc/stage/bin/../libexec/gcc/i686-pc-mingw32/4.

Re: Floating point constant folding bug?

2013-03-15 Thread Johannes Pfau
Forget what I've said, I somehow read that code as a bitwise/reinterpret cast but of course the code does an integer/float conversion so it's probably OK. This is more interesting: --- float f = float.infinity; float f2 = float.max; int i = cast(int) f; int i2 = cast(int) f2;

[Issue 43] passing va_list by ref causes ICE

2013-03-15 Thread gdc-bugzilla
http://gdcproject.org/bugzilla/show_bug.cgi?id=43 Iain Buclaw changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Issue 43] New: passing va_list by ref causes ICE

2013-03-15 Thread gdc-bugzilla
http://gdcproject.org/bugzilla/show_bug.cgi?id=43 Bug #: 43 Summary: passing va_list by ref causes ICE Classification: Unclassified Product: GDC Version: development Platform: x86 OS/Version: All Status: NEW

Re: gdc phobos and druntime automatic import

2013-03-15 Thread Benjamin Thaut
Am 15.03.2013 17:06, schrieb Iain Buclaw: On 15 March 2013 15:21, Benjamin Thaut mailto:c...@benjamin-thaut.de>> wrote: Am 15.03.2013 15:29, schrieb Iain Buclaw: On 15 March 2013 14:06, Benjamin Thaut mailto:c...@benjamin-thaut.de>

Re: gdc phobos and druntime automatic import

2013-03-15 Thread Iain Buclaw
On 15 March 2013 15:21, Benjamin Thaut wrote: > Am 15.03.2013 15:29, schrieb Iain Buclaw: > >> On 15 March 2013 14:06, Benjamin Thaut > >> > wrote: >> >> Am 15.03.2013 14:20, schrieb Iain Buclaw: >> >> On 15 March 2013 13:18, Iain Buclaw >

Re: Floating point constant folding bug?

2013-03-15 Thread Iain Buclaw
On 15 March 2013 15:15, Johannes Pfau wrote: > writefln("%f\n%f", cast(float)cast(int)float.infinity, float.infinity); > > writes > --- > 2147483648.00 > inf > --- > > -fdump-tree-original > --- > writefln ({.length=5, .ptr="%f\n%f"}, 2.147483647e+9, Inf); > --- > > The same conversion at ru

Re: gdc phobos and druntime automatic import

2013-03-15 Thread Benjamin Thaut
Am 15.03.2013 15:29, schrieb Iain Buclaw: On 15 March 2013 14:06, Benjamin Thaut mailto:c...@benjamin-thaut.de>> wrote: Am 15.03.2013 14:20, schrieb Iain Buclaw: On 15 March 2013 13:18, Iain Buclaw mailto:ibuc...@ubuntu.com>

Floating point constant folding bug?

2013-03-15 Thread Johannes Pfau
writefln("%f\n%f", cast(float)cast(int)float.infinity, float.infinity); writes --- 2147483648.00 inf --- -fdump-tree-original --- writefln ({.length=5, .ptr="%f\n%f"}, 2.147483647e+9, Inf); --- The same conversion at runtime produces the expected result. Is this a gdc or gcc bug or is this

Re: gdc phobos and druntime automatic import

2013-03-15 Thread Iain Buclaw
On 15 March 2013 14:06, Benjamin Thaut wrote: > Am 15.03.2013 14:20, schrieb Iain Buclaw: > >> On 15 March 2013 13:18, Iain Buclaw > >> > wrote: >> >> On 15 March 2013 13:05, Benjamin Thaut > > wrote: >> >> Am 15.03.2013

Re: gdc phobos and druntime automatic import

2013-03-15 Thread Benjamin Thaut
Am 15.03.2013 14:20, schrieb Iain Buclaw: On 15 March 2013 13:18, Iain Buclaw mailto:ibuc...@ubuntu.com>> wrote: On 15 March 2013 13:05, Benjamin Thaut mailto:c...@benjamin-thaut.de>> wrote: Am 15.03.2013 13:26, schrieb Iain Buclaw: On 15 March 2013 12:01, Benjamin Thau

Re: gdc phobos and druntime automatic import

2013-03-15 Thread Iain Buclaw
On 15 March 2013 13:18, Iain Buclaw wrote: > On 15 March 2013 13:05, Benjamin Thaut wrote: > >> Am 15.03.2013 13:26, schrieb Iain Buclaw: >> >>> On 15 March 2013 12:01, Benjamin Thaut >> >>> > wrote: >>> >>> >>> Well I don't want to overwrite the existing ver

Re: gdc phobos and druntime automatic import

2013-03-15 Thread Iain Buclaw
On 15 March 2013 13:05, Benjamin Thaut wrote: > Am 15.03.2013 13:26, schrieb Iain Buclaw: > >> On 15 March 2013 12:01, Benjamin Thaut > >> > wrote: >> >> >> Well I don't want to overwrite the existing version of druntime and >> phobos. I want to be ablte t

Re: gdc phobos and druntime automatic import

2013-03-15 Thread Benjamin Thaut
Am 15.03.2013 13:26, schrieb Iain Buclaw: On 15 March 2013 12:01, Benjamin Thaut mailto:c...@benjamin-thaut.de>> wrote: Well I don't want to overwrite the existing version of druntime and phobos. I want to be ablte to specifiy via a compiler option to use a different version of them

Re: gdc phobos and druntime automatic import

2013-03-15 Thread Iain Buclaw
On 15 March 2013 12:01, Benjamin Thaut wrote: > > Well I don't want to overwrite the existing version of druntime and > phobos. I want to be ablte to specifiy via a compiler option to use a > different version of them. In some projects I use the original druntime + > phobos and in other projects

Re: gdc phobos and druntime automatic import

2013-03-15 Thread Benjamin Thaut
Am 15.03.2013 11:05, schrieb Iain Buclaw: On 15 March 2013 10:03, Iain Buclaw mailto:ibuc...@ubuntu.com>> wrote: On 14 March 2013 19:05, Benjamin Thaut mailto:c...@benjamin-thaut.de>> wrote: I want to use a different version of druntime and phobos with GDC but I don't want t

Re: gdc phobos and druntime automatic import

2013-03-15 Thread Iain Buclaw
On 15 March 2013 10:03, Iain Buclaw wrote: > On 14 March 2013 19:05, Benjamin Thaut wrote: > >> I want to use a different version of druntime and phobos with GDC but I >> don't want to overwrite the default ones. Instead I want to specifiy a >> different include directory during compile time. I

Re: gdc phobos and druntime automatic import

2013-03-15 Thread Iain Buclaw
On 14 March 2013 19:05, Benjamin Thaut wrote: > I want to use a different version of druntime and phobos with GDC but I > don't want to overwrite the default ones. Instead I want to specifiy a > different include directory during compile time. I first thought that > -nostdinc is the option I want