[Issue 2570] Patch for some mistakes in Ddoc comments.

2009-03-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2570





--- Comment #3 from bra...@puremagic.com  2009-03-29 01:33 ---
patch applied to both 1.x and trunk for the next release


-- 



[Issue 2715] Access Violation at writefln with interface

2009-03-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2715


unkn...@simplemachines.org changed:

   What|Removed |Added

 Attachment #296 is|0   |1
   obsolete||




--- Comment #2 from unkn...@simplemachines.org  2009-03-29 01:50 ---
Created an attachment (id=298)
 -- (http://d.puremagic.com/issues/attachment.cgi?id=298action=view)
Fix e1-type when clearing this-type within CallExp (corrected.)

I screwed this patch up, sorry about that.  I used a batch script and forgot to
kill echo in it.  This version is the same as above but a valid diff file.

-[Unknown]


-- 



[Issue 1923] GC optimization for contiguous pointers to the same page

2009-03-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1923





--- Comment #4 from bugzi...@digitalmars.com  2009-03-29 01:54 ---
Complete discussion:

http://www.digitalmars.com/d/archives/digitalmars/D/Slow_GC_67673.html


-- 



[Issue 1923] GC optimization for contiguous pointers to the same page

2009-03-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1923





--- Comment #5 from bugzi...@digitalmars.com  2009-03-29 02:05 ---
This patch is already in D2, I'll add it to D1.


-- 



[Issue 2682] const struct initialized with struct literal recreates value on stack when used

2009-03-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2682





--- Comment #3 from kamm-removet...@incasoftware.de  2009-03-29 04:50 
---
Removing that optimization lead to constant folding issues. Instead we have now
demoted struct literals to rvalues in LDC. It does not create any regressions
in our testsuite - please let us know if you expect this to be trouble.


-- 



[Issue 129] DDoc makes enum values cryptic

2009-03-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=129


s...@iname.com changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|FIXED   |




--- Comment #2 from s...@iname.com  2009-03-29 05:42 ---
(In reply to comment #1)
 Note that this bug is not fixed in DMD 1.030.

Then it isn't fixed.  So don't mark it as such.


-- 



[Issue 1923] GC optimization for contiguous pointers to the same page

2009-03-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1923





--- Comment #6 from llu...@gmail.com  2009-03-29 10:15 ---
But for some reason D2 (druntime) timings are still huge.

Here is a test, dmd es 1.041 with the patch attached here, dmd2 is 2.026.

$ cat split.d
// Written by bearophile bearophileh...@lycos.com
// Fount at
http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.Darticle_id=67673
// Sightly modified by Leandro Lucarella llu...@gmail.com
// (removed timings)

import std.file, std.string;
import std.stdio: writefln;
static import std.c.time;

void main() {
auto txt = cast(string) read(split.txt);
auto words = txt.split();
}

$ dmd -release -O -inline -ofsplit1 split.d 
$ dmd2 -release -O -inline -ofsplit2 split.d 
$ ls -lh split.txt 
-rw-r--r-- 1 luca luca 15M mar 28 17:01 split.txt
$ time ./split1

real0m0.751s
user0m0.443s
sys 0m0.128s
$ time ./split2

real0m25.293s
user0m20.517s
sys 0m0.233s

(timings for D1 without the patch are about the same as D2)


-- 



Re: [Issue 1923] GC optimization for contiguous pointers to the same page

2009-03-29 Thread Sean Kelly

d-bugm...@puremagic.com wrote:


But for some reason D2 (druntime) timings are still huge.


Have you timed Tango?  The GC implementations are roughly the same.


[Issue 129] DDoc makes enum values cryptic

2009-03-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=129





--- Comment #3 from jarrett.billings...@gmail.com  2009-03-29 10:52 ---
(In reply to comment #1)
 I believe this is fixed in the current DMD 2.026.  It outputs:
 
 void foon(Spork s = (Spork).Knife);
 
 Which, although not aesthetically perfect, definitely resolves this bug.
 
 Note that this bug is not fixed in DMD 1.030.

Not sure why you're using such an old D1 compiler (especially if you're trying
to compare to the D2 compiler), but it's definitely not fixed in 1.041 either. 
(I can't seem to download 1.042.)


-- 



[Issue 854] TypeTuple in anonymous delegate causes ice in glue.c

2009-03-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=854





--- Comment #4 from fvbom...@wxs.nl  2009-03-29 17:49 ---
Created an attachment (id=300)
 -- (http://d.puremagic.com/issues/attachment.cgi?id=300action=view)
Patch which fixes this for LDC.


-- 



[Issue 2251] ICE: Variadic templates and auto return types don't work together.

2009-03-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2251





--- Comment #3 from dsim...@yahoo.com  2009-03-29 18:00 ---
Possibly related to http://d.puremagic.com/issues/show_bug.cgi?id=854 ?


-- 



[Issue 2760] DMD can't prevent optlink from generating a map file

2009-03-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2760





--- Comment #1 from unkn...@simplemachines.org  2009-03-29 21:34 ---
Created an attachment (id=301)
 -- (http://d.puremagic.com/issues/attachment.cgi?id=301action=view)
Pass NUL to linker for /nomap.

This patch simply checks for /nomap and passes NUL on to the linker for the
mapfile if it is found.

If one wants to take this enhancement, it seems like this would be the best way
without modifying OPTLINK.

-[Unknown]


-- 



[Issue 2771] New: browse() fails if Safari is renamed or moved.

2009-03-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2771

   Summary: browse() fails if Safari is renamed or moved.
   Product: D
   Version: 2.026
  Platform: Macintosh
OS/Version: Mac OS X
Status: NEW
  Severity: minor
  Priority: P4
 Component: DMD
AssignedTo: bugzi...@digitalmars.com
ReportedBy: unkn...@simplemachines.org


For categorization purposes, users on Macs may rename or move Safari.app from
/Applications - it can even be uninstalled, if the user prefers another
browser.

For example, I have multiple versions of Safari (and other browsers) on my test
Mac, in /Applications/Browsers.

The open command doesn't require an application argument.  Also, the argument
need not be a full path, it can be just a name (such as Safari, rather than
/path/to/Bundle.app.)

My suggestion would be to simply pass the path to open directly, and let it use
the user's prefered browser.  This seems to be the behavior on Windows and
Linux.

-[Unknown]


-- 



[Issue 1915] new struct destructor : ice dmd

2009-03-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1915


unkn...@simplemachines.org changed:

   What|Removed |Added

 CC||unkn...@simplemachines.org
 Status|NEW |RESOLVED
 Resolution||WORKSFORME




--- Comment #1 from unkn...@simplemachines.org  2009-03-29 22:45 ---
Works for me in DMD 2.026, and D 1 doesn't allow struct destructors.

-[Unknown]


-- 



[Issue 1812] DDOC - Unicode identifiers are not correctly marked.

2009-03-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1812





--- Comment #6 from unkn...@simplemachines.org  2009-03-29 23:45 ---
Created an attachment (id=304)
 -- (http://d.puremagic.com/issues/attachment.cgi?id=304action=view)
Use Unicode parsing for identifiers.

This patch makes DDoc use Unicode to parse identifiers, which makes it properly
match them in the doc comments and etc.

-[Unknown]


-- 



[Issue 1025] mixin(scope(exit) call();); is broken

2009-03-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1025


unkn...@simplemachines.org changed:

   What|Removed |Added

 CC||unkn...@simplemachines.org
 Status|NEW |RESOLVED
 Resolution||WORKSFORME




--- Comment #3 from unkn...@simplemachines.org  2009-03-29 23:58 ---
As of DMD 1.041 and 2.026, this outputs ABC.

-[Unknown]


-- 



[Issue 853] Internal error: toir.c 182

2009-03-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=853


unkn...@simplemachines.org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||WORKSFORME




--- Comment #5 from unkn...@simplemachines.org  2009-03-30 00:47 ---
These tests all pass now on DMD 1.041 and 2.026.

-[Unknown]


--