Summary: Optimization (register allocation?) regression in DMD
--- Comment #0 from Vladimir <thecybersha...@gmail.com> 2011-01-14 18:51:29 PST
Created an attachment (id=871)
Partially minimized test case
I've stumbled upon a rather weird regression, which was introduced in DMD
1.065: when compiling specific code with -O -release -inline, it ICEs with
"Internal error: ..\ztc\cgcod.c 1649".
The test case seems to be quite resistant to "minimization", and even moving
functions from one module to another seems to make the bug vanish. I've reduced
the test case to four modules, and somewhat minimized the first two, but I'm
willing to give up for now at this point. If any compiler developer decides
that minimizing the test case is worth it, I'll give it another shot as soon as
I get over my cold.
As I went to post this, I noticed that I was still using DMD 1.065. However,
DMD 1.066 outright crashes.
To reproduce, compile the attached files with:
dmd -O -release -inline Common.d Data.d Gzip.d Zlib.d
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------