Source

gdc / d / GDC.html

Full commit
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
  <title>D Front End for GCC</title>
</head>
<body>
<h2>D Front End for GCC - Release 0.30<br>
</h2>
Last update: July 24, 2011<br>
<h3>Supported Systems</h3>
<ul>
  <li>GCC 4.2.x, 4.3.x, 4.4.x, 4.5.x, 4.6.x<br>
  </li>
  <li>Linux (tested on Debian Sid and Ubuntu Oneiric x86, x86_64)<br>
  </li>
  <li>Mac OS X 10.3.9, 10.4.x<br>
  </li>
  <li>FreeBSD 6.x, 7.x</li>
  <li>Cygwin</li>
  <li>MinGW</li>
  <li>AIX (tested on 5.1)</li>
</ul>

Similar versions of the above systems should work and other Unix
platforms may
work.&nbsp;
Although the compiler will
probably work on most architectures, the D
runtime library will still need to be updated to support them.<br>

<h3>Requirements</h3>
The MacOS X universal binary package requires XCode 2.4.1 or the
equivalent version of cctools.
<h3>Downloads</h3>
<ul>
  <li><a href="http://bitbucket.org/goshawk/gdc/wiki/Home">Main
package</a></li>
  <li><a href="INSTALL.html">Build Instructions</a></li>
</ul>

<h3>Links</h3>
<ul>
  <li><a href="http://bitbucket.org/goshawk/gdc/wiki/Home">GDC: D
Compiler for GCC</a><br>
  </li>
  <li><a href="http://www.digitalmars.com/d/">The D
Programming Language</a></li>
  <li><a href="http://digitalmars.com/d/dlinks.html">D
Links Page</a><br>
  </li>
  <li><a href="news://news.digitalmars.com/D.gnu">The
D.gnu newsgroup</a></li>
  <li>For general D discussion, the <a href="news://news.digitalmars.com/digitalmars.D">digitalmars.D</a>
and <a href="news://news.digitalmars.com/digitalmars.D.bugs">digitalmars.D.bugs</a>
newsgroups<br>
  </li>
  <li><a href="http://gcc.gnu.org/">The GNU Compiler
Collection</a></li>
  <li><a href="http://gdcmac.sourceforge.net/">Mac
OS X binary
distribution</a><br>
  </li>
</ul>

<h3>Contact</h3>
David Friedman<br>
e-mail: dvdfrdmn &lt;at&gt; users.sf.net<br>
Iain Buclaw<br>
e-mail: ibuclaw &lt;at&gt; ubuntu.com<br>
Michael Parrott<br>
e-mail: baseball.mjp &lt;at&gt; gmail.com<br>

<h3>Status<br>
</h3>

<h4>Known Issues </h4>
<ul>
  <li>See the <a href="http://svn.kuehne.cn/dstress/www/dstress.html">DStress</a>
page for known failing cases.<br>
  </li>
  <li>Debugging information may have a few problems. To enable D
name
mangling in gdb, apply <a href="http://dsource.org/projects/gdb-patches/">this patch</a>.<br>
  </li>
  <li>Some targets do not support once-only linking. A workaround
is to
manually control template emission. See the <span style="font-family: monospace;">-femit-templates</span>
option below. For Darwin, Apple's GCC 3.x compiler supports
one-only linking, but GDC does not build with those sources. There are
no
problems with the stock GCC 4.x on Darwin.<br>
  </li>
  <ol>
  </ol>
  <li>Complex floating point operations may not work the same as
DMD.</li>
  <li>Some math functions behave differently due to different
implementations of the extended floating-point type.</li>
  <li>Volatile statements may not always do the right thing.</li>
  <li>Because of <a href="http://groups-beta.google.com/groups?hl=en&amp;q=%22large+executables+on+AIX%22&amp;qt_s=Search">a
problem on AIX</a>, the linker will pull in more modules than
needed.<br>
  </li>
  <li>Some C libraries (Cygwin, MinGW, AIX) don't handle
floating-point
formatting and parsing in a standard way.<br>
  </li>
</ul>
<h4>Known Differences from DMD</h4>
<ul>
  <li>The type of <span style="font-family: monospace;">_argptr</span>
in variadic functions is the target-specific <span style="font-family: monospace;">va_list</span>
type.&nbsp; The only
portable way
to use <span style="font-family: monospace;">_argptr</span>
is the <span style="font-family: monospace;">std.stdarg.va_arg</span>
template.&nbsp; In particular, you cannot construct a <span style="font-family: monospace;">va_list</span> from a
pointer to data
an expect it to work.<br>
  </li>
  <li>In assembler code, direct access to parameters in naked
functions
works differently.&nbsp; Frame relative addressing through <span style="font-family: monospace;">[ESP+4]</span> does
work the same way.<br>
  </li>
  <li>Currently, GDC uses the C calling convention for all
functions
except those declared <span style="font-family: monospace;">extern
(Windows)</span>.</li>
  <li>GDC allows <span style="font-family: monospace;">catch</span> statements in <span style="font-family: monospace;">finally</span>
blocks.</li>
  <li><span style="font-family: monospace;">pragma(lib)</span>
is not
supported.</li>
  <li>Some targets do not have a distinct extended floating-point
type.&nbsp; On these targets, <span style="font-family: monospace;">real</span>
and <span style="font-family: monospace;">double</span>
are the same
size.</li>
  <li>On Win32, GDC allocates 12 bytes for the <span style="font-family: monospace;">real</span> type,
while DMD allocates
10 bytes. This also applies to the components of the <span style="font-family: monospace;">creal</span> type.<br>
  </li>
</ul>

<h4>Inline Assembler Notes</h4>
<ul>
  <li>Getting GCC to respect the "naked" attribute is
difficult.&nbsp;
It is recommended that you use only assembler statements in a naked
function. &nbsp;When generating position-independent code, accessing global symbols in a naked function will result in an error.</li>
  <li>Jumps from assembler statements will not run cleanups (auto
and
finally)</li>
</ul>

<h3>Usage</h3>

<h4>Invoking gdc and gdmd</h4>
The compiler driver is named 'gdc' and accepts the standard GCC
options.&nbsp; There is also a script named 'gdmd' which has the
same
interface as the Digital Mars dmd.<br>
<br>
The mapping from DMD options to GCC is as follows:<br>
<table style="text-align: left; width: 50%;" border="1" cellpadding="2" cellspacing="2">
  <tbody>
    <tr>
      <td style="vertical-align: top;">-c<br>
      </td>
      <td style="vertical-align: top;">-c<br>
      </td>
    </tr>

    <tr>
      <td style="vertical-align: top;">-D<br>
      </td>
      <td style="vertical-align: top;">-fdoc<br>
      </td>
    </tr>

    <tr>
      <td style="vertical-align: top;">-Dd&lt;docdir&gt;<br>
      </td>
      <td style="vertical-align: top;">-fdoc-dir=&lt;docdir&gt;<br>
      </td>
    </tr>

    <tr>
      <td style="vertical-align: top;">-Df&lt;filename&gt;<br>
      </td>
      <td style="vertical-align: top;">-fdoc-file=&lt;filename&gt;<br>
      </td>
    </tr>

    <tr>
      <td style="vertical-align: top;">-d</td>
      <td style="vertical-align: top;">-fdeprecated</td>
    </tr>

    <tr>
      <td style="vertical-align: top;">-debug[=&lt;arg&gt;]<br>
      </td>
      <td style="vertical-align: top;">-fdebug[=&lt;arg&gt;]<br>
      </td>
    </tr>
    
    <tr>
      <td style="vertical-align: top;">-deps=&lt;arg&gt;<br>
      </td>
      <td style="vertical-align: top;">-fdeps=&lt;arg&gt;<br>
      </td>
    </tr>

    <tr>
      <td style="vertical-align: top;">-g<br>
      </td>
      <td style="vertical-align: top;">-g<br>
      </td>
    </tr>

    <tr>
      <td style="vertical-align: top;">-inline<br>
      </td>
      <td style="vertical-align: top;">-finline-functions<br>
      </td>
    </tr>

    <tr>
      <td style="vertical-align: top;">-I&lt;path&gt;<br>
      </td>
      <td style="vertical-align: top;">-I
&lt;path&gt;<br>
      </td>
    </tr>
    
    <tr>
      <td style="vertical-align: top;">-J&lt;path&gt;<br>
      </td>
      <td style="vertical-align: top;">-J&lt;path&gt;<br>
      </td>
    </tr>

    <tr>
      <td style="vertical-align: top;">-L&lt;arg&gt;<br>
      </td>
      <td style="vertical-align: top;">-Wl,&lt;arg&gt;<br>
      </td>
    </tr>

    <tr>
      <td style="vertical-align: top;">-O<br>
      </td>
      <td style="vertical-align: top;">-O3 without
inlining (may not be
equivalent)<br>
      </td>
    </tr>

    <tr>
      <td style="vertical-align: top;">-o-<br>
      </td>
      <td style="vertical-align: top;">-fsyntax-only<br>
      </td>
    </tr>

    <tr>
      <td style="vertical-align: top;">-od&lt;dir&gt;<br>
      </td>
      <td style="vertical-align: top;">no equivalent; use the wrapper script<br>
      </td>
    </tr>

    <tr>
      <td style="vertical-align: top;">-of&lt;file&gt;</td>
      <td style="vertical-align: top;">-o
&lt;file&gt;<br>
      </td>
    </tr>

    <tr>
      <td style="vertical-align: top;">-op&lt;dir&gt;<br>
      </td>
      <td style="vertical-align: top;">no equivalent; use the wrapper script<br>
      </td>
    </tr>

    <tr>
      <td style="vertical-align: top;">-profile<br>
      </td>
      <td style="vertical-align: top;">(see the GCC manual for profiling options)</td>
    </tr>

    <tr>
      <td style="vertical-align: top;">-quiet<br>
      </td>
      <td style="vertical-align: top;">no equivalent<br>
      </td>
    </tr>

    <tr>
      <td style="vertical-align: top;">-release<br>
      </td>
      <td style="vertical-align: top;">-frelease<br>
      </td>
    </tr>

    <tr>
      <td style="vertical-align: top;">-run<br>
      </td>
      <td style="vertical-align: top;">no equivalent; use the wrapper script</td>
    </tr>

    <tr>
      <td style="vertical-align: top;">-unittest<br>
      </td>
      <td style="vertical-align: top;">-funittest<br>
      </td>
    </tr>

    <tr>
      <td style="vertical-align: top;">-version=&lt;arg&gt;<br>
      </td>
      <td style="vertical-align: top;">-fversion=&lt;arg&gt;<br>
      </td>
    </tr>
    
    <tr>
      <td style="vertical-align: top;">-w<br>
      </td>
      <td style="vertical-align: top;">-Werror<br>
      </td>
    </tr>

    <tr>
      <td style="vertical-align: top;">-wi<br>
      </td>
      <td style="vertical-align: top;">-Wall<br>
      </td>
    </tr>
    
    <tr>
      <td style="vertical-align: top;">-X<br>
      </td>
      <td style="vertical-align: top;">no equivalent; use the wrapper script<br>
      </td>
    </tr>
    
    <tr>
      <td style="vertical-align: top;">-Xf&lt;arg&gt;<br>
      </td>
      <td style="vertical-align: top;">-fXf=&lt;arg&gt;<br>
      </td>
    </tr>

    <tr>
      <td style="vertical-align: top;">&lt;.ddoc file&gt;<br>
      </td>
      <td style="vertical-align: top;">-fdoc-inc=&lt;.ddoc file&gt;<br>
      </td>
    </tr>
  </tbody>

</table>

<br>

Other options:<br>

<table style="text-align: left; width: 75%;" border="1" cellpadding="2" cellspacing="2">

  <tbody>
    <tr>
      <td style="vertical-align: top;">-f[no-]bounds-check<br>
      </td>
      <td style="vertical-align: top;">Controls array
bounds checking<br>
      </td>
    </tr>

    <tr>
      <td style="vertical-align: top;">-femit-templates[=normal|private|all|none|auto]<br>
-f[no-]emit-templates<br>
      </td>
      <td style="vertical-align: top;">Controls whether or
not template
code is emitted.<br>
      <br>

"normal" -- Emit templates, expecting multiple copies to be merged by
the
linker.<br>

"private" -- Emit templates, but make them private to the translation
unit.&nbsp; The executable will have multiple copies of code and
data.<br>

"all" -- Emit all template instances with public visibility.&nbsp;
Do
this even if they would not normally be emitted.<br>

"none" -- Do not emit templates at all.<br>

"auto" -- For targets that support templates, the "full" mode is
used.&nbsp; Otherwise, the "private" mode is used.<br>

      <br>

"none" and -fno-emit-templates are synonyms.<br>

"auto" and -femit-templates are synonyms.<br>

      </td>
    </tr>

    <tr>
      <td style="vertical-align: top;">-fall-sources<br>
      </td>
      <td style="vertical-align: top;">For each source file on the
command line, semantically process each file preceding it.&nbsp;
Use this if compilation errors occur due to complicated circular module
references.&nbsp; This will slow compilation noticeably.<br>
      </td>
    </tr>

    <tr>
      <td style="vertical-align: top;">-fdump-source<br>
      </td>
      <td style="vertical-align: top;">Dump decoded UTF-8 text and
source from HTML to &lt;source&gt;.utf-8 and
&lt;source&gt;.d.utf-8.<br>
      </td>
    </tr>
  </tbody>

</table>

<h4>Extensions</h4>

<h5>Extended Assembler</h5>
GDC implements a GCC extension that allows inline assembler with D
expression operands. &nbsp;It is available on nearly all targets, not
just i386. &nbsp;The syntax differs from the C language extension in
the follow ways.
<ul>
  <li>Statements start with '<span style="font-family: monospace;">asm { ...</span>', just like the regular DMD inline assembler.</li>
  <li>It is not necesary to put parentheses around operands.</li>
  <li>Instruction templates can be compile-time string constants, not
just string literals. &nbsp;If the template is not a string literal,
use parenthesis to indicate that it is not an opcode.</li>
</ul>
Unlike i386 inline assembler statements, extended assembler statements do not prevent a function from being inlined.<br>
<br>
See the GCC manual for more information about this extension.<br>
<br>
Example:<br>

<br>
<div style="margin-left: 40px;"><span style="font-family: monospace;">uint invert(uint v)</span><br style="font-family: monospace;">
<span style="font-family: monospace;">{</span><br style="font-family: monospace;">
<span style="font-family: monospace;">&nbsp;&nbsp;&nbsp; uint result;</span><br style="font-family: monospace;">
<span style="font-family: monospace;">&nbsp;&nbsp;&nbsp; version(X86)</span><br style="font-family: monospace;">
<span style="font-family: monospace;">&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;asm{ "notl %[iov]" : [iov] "=r" result : "0" v; }</span><br style="font-family: monospace;">
<span style="font-family: monospace;">&nbsp;&nbsp;&nbsp; else version(PPC)</span><br style="font-family: monospace;">
<span style="font-family: monospace;">&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;asm{ "nor %[oresult],%[iv],%[iv]" : [oresult] "=r" result : [iv] "r" v; }</span><br style="font-family: monospace;">
<span style="font-family: monospace;">&nbsp;&nbsp;&nbsp; return result;</span><br style="font-family: monospace;">
<span style="font-family: monospace;">}</span><br style="font-family: monospace;">
</div>

<h5>Declaration and Type Attributes</h5>
(This extension is a work in progress.)<br>

<br>
GDC implements the GCC <span style="font-family: monospace;">__attribute__</span> extension with two pragmas:<br>
<br>
<span style="font-family: monospace;"><span style="font-weight: bold;">pragma</span>(<span style="font-weight: bold;">attribute</span>,<span style="font-style: italic;"> name1</span>(<span style="font-style: italic;">arg1</span>, <span style="font-style: italic;">arg2</span>, ...), ...) <span style="font-style: italic;">declarations</span>...</span><br style="font-family: monospace;">
<br>
<span style="font-family: monospace;"><span style="font-weight: bold;">pragma</span>(<span style="font-weight: bold;">set_attribute</span>, <span style="font-style: italic;">symbol</span>, <span style="font-style: italic;">name1</span>(<span style="font-style: italic;">arg1</span>, <span style="font-style: italic;">arg2</span>...), ...);</span><br>
<br>
The deprecated form of these pragmas are <span style="font-family: monospace;">GNU_attribute</span>
and <span style="font-family: monospace;">GNU_set_attribute</span> respectively.<br>
<br>
If an attribute has no arguments, the argument list may be omitted.<br>
<br>
The first form applies to declarations directly contained in the
pragma. &nbsp;The second form affects the given symbol. &nbsp;See the
GCC manual for a list of attributes that can be set. &nbsp;Not all
attributes are supported yet by GDC. &nbsp;Also, the interaction
between these extended attributes and D languge attributes (alignment,
for example) is not well defined.

<h3>Changes</h3>

<a name="0.30"></a>0.30:
<ul>
  <li>Support for GCC, 4.5.x and 4.6.x added</li>
  <li>Removed support for GCC 3.4.x, 4.0.x, 4.1.x</li>
  <li>Updated D1 to 1.069</li>
  <li>Updated D2 to 2.054</li>
  <li>Better D2 support for MinGW</li>
  <li>Added 'optlink' calling convention for D</li>
  <li>Added 64bit support for IASM (Work in Progress)</li>
  <li>Moved correct implementation of delegates from GCC backend</li>
    to GDC frontend glue code</li>
  <li>Fixed Bugzilla 670, 4494, 4543, 5086, 5090, 5148, 5182,</li>
    5191, 5439, 5735, 5812</li>
  <li>As always, my dear reader, fixes to many other bugs.</li>
</ul>

<a name="0.25"></a>0.25:
<ul>
  <li>Support for GCC, 4.2.x, 4.3.x, and 4.4.x added</li>
  <li>Updated D1 to 1.063</li>
  <li>Updated D2 to 2.020</li>
  <li>Added druntime support</li>
  <li>Fixed Bugzilla 1041, 1044, 1136, 1145, 1296, 1669, 1689,</li>
    1751, 1813, 1822, 1921, 1930, 2079, 2102, 2291, 2421</li>
  <li>Fixed Bitbucket issues too numerous to mention. :-)</li>
</ul>

<a name="0.24"></a>0.24:
<ul>
  <li>Removed support for GCC 3.3.x</li>
  <li>Updated to DMD 1.020</li>
  <li>Fixed Bugzilla 1037, 1038 (gdc specific), 1043, 1045, 1046,</li>
    1031, 1032, 1034, 1065, 1109, 1191, 1137, 1152, 1208, 1325,</li>
    1329, 1898, 1400</li>
  <li>Fixed SourceForge issues 1689634, 1749622, 1721496, 1721435</li>
</ul>

<a name="0.23"></a>0.23:
<ul>
  <li>Added support for 64-bit targets</li>
  <li>Added multilib support</li>
  <li>Updated to DMD 1.007</li>
  <li>Fixed Bugzilla 984, 1013</li>
</ul>

<a name="0.22"></a>0.22:
<ul>
  <li>Added support for GCC 4.1.x</li>
  <li>Support for GCC 3.3.x is deprecated</li>
  <li>Updated to DMD 1.004</li>
  <li>Fixed Bugzilla 836, 837, 838, 839, 841, 843, 844, 889, 896</li>
  <li>Fixed problems with missing debug information</li>
  <li>Added Rick Mann's -frameowrk patch for gdmd</li>
</ul>

<a name="0.21"></a>0.21:
<ul>
  <li>Updated to DMD 1.00</li>
  <li>Fixed Bugzilla 695, 696, 737, 738, 739, 742, 743, 745</li>
  <li>Implemented GCC extended assembler</li>
  <li>Implemented basic support for GCC attributes</li>
</ul>

<a name="0.20"></a>0.20:
<ul>
  <li>Updated to DMD 0.177</li>
  <li>Fixes for synchronized code generation</li>
  <li>Better support for cross-hosted builds</li>
  <li>Fixed Bugzilla 307, 375, 403, 575, 578</li>
  <li>Applied Anders Bj&ouml;rklund's MacOS X build patches</li>
</ul>

<a name="0.19"></a>0.19:
<ul>
  <li>Fixed D Bugzilla bugs 141(gdc), 157, 162, 164, 171, 174,
175, 192, 229</li>
  <li>Applied Dave Fladebo's suggestion for -O3 in gdmd</li>
  <li>Updated to DMD 0.162</li>
  <li>The version symbol for FreeBSD is now "freebsd"</li>
  <li>Enabled std.loader for FreeBSD</li>
  <li>Implement offsetof in assembler</li>
  <li>Support building with Apple's GCC (4.0 only)</li>
  <li>Fix parallel builds</li>
</ul>

<a name="0.18"></a>0.18:<br>
<ul>
  <li>Fixes</li>

  <ul>
    <li>ICE on assignment arithmetic</li>
    <li>Problems mixing D and assembler floating point operations</li>
    <li>Mac OS X 10.2 build problems</li>
    <li>The gdc driver no longer compiles C source as C++.<br>
    </li>
    <li>Many others...</li>
  </ul>

  <li>Improvements</li>
  <ul>
    <li>Updated to DMD 0.157.</li>
    <li>Added support for PowerPC Linux.<br>
    </li>
    <li>Added partial support for SkyOS.</li>
    <li>Compiler can be relocated to another directory.<br>
    </li>
  </ul>
</ul>

<a name="0.17"></a>0.17:<br>
<ul>
  <li>Fixes</li>

  <ul>
    <li>Mixed complex/float operations on GCC 4.0 (<a href="http://www.digitalmars.com/drn-bin/wwwnews?D.gnu/1485">D.gnu/1485</a>)</li>
    <li>Applied Thomas Kuhne's HTML line number fix</li>
    <li>Foreach/nested functions in templates (<a href="http://www.digitalmars.com/drn-bin/wwwnews?D.gnu/1514">D.gnu/1514</a>)</li>
    <li>Use correct default initializer when allocating arrays of
typedef'd types</li>
    <li>Recursive calls to nested functions (<a href="http://www.digitalmars.com/drn-bin/wwwnews?D.gnu/1525">D.gnu/1525</a>)</li>
  </ul>

  <li>Improvements</li>
  <ul>
    <li>Updated to DMD 0.140<br>
    </li>
  </ul>
</ul>

<a name="0.16"></a>0.16:<br>
<ul>
  <li>Fixes</li>

  <ul>
    <li>Concatenating a array and single element</li>
    <li>"__arrayArg already defined"</li>
    <li>ICE on nested foreach statements (<a href="http://www.digitalmars.com/drn-bin/wwwnews?D.gnu/1393">D.gnu/1393</a>)</li>
    <li>Inline assembler</li>

    <ul>
      <li>Functions returning floating point types</li>
    </ul>

    <ul>
      <li>Spurious error on scaled register without a base
register</li>
      <li>Access to locals by var+ofs[EBP] now works with
optimization.</li>
      <li>Can now guess operand size from referenced variables.</li>
    </ul>

    <li>Thunks errors with reimplemented interfaces (e.g., Mango)<br>
    </li>

  </ul>

  <li>Improvements</li>
  <ul>
    <li>Support GCC 4.0.x</li>
    <li>Updated to DMD 0.137</li>
    <li>Support DW_LANG_D for DWARF debugging</li>
    <li>Support compiling multiple sources to a single object with GCC 3.4.x.<br>
    </li>
  </ul>

</ul>
<br>

<a name="0.15"></a>0.15:<br>
<div style="margin-left: 40px;">&nbsp;&nbsp;&nbsp;
Updated to DMD 0.128<br>
</div>
<br>

<a name="0.14"></a>0.14:<br>
<ul>
  <li>Fixes</li>

  <ul>
    <li>Classes nested in functions actually work now.</li>
    <li>Fix for newest versions of the GNU assembler.<br>
    </li>
  </ul>

  <li>Improvements</li>
  <ul>
    <li>Updated to DMD 0.127<br>
    </li>
  </ul>

</ul>
<br>

<a name="0.13"></a>0.13:<br>
<ul>
  <li>Fixes</li>

  <ul>
    <li>Cygwin/MinGW assembler problem</li>
  </ul>

  <li>Improvements</li>
  <ul>
    <li>Updated to DMD 0.126.</li>
    <li>Calling nested functions with delegates is faster.</li>
    <li>The "check-target-libphobos" uses unit tests and runtime
checks.<br>
    </li>
  </ul>

</ul>

<a name="0.12.1"></a>0.12.1:<br>
<ul>
  <li>Fixes</li>

  <ul>
    <li>Compilation errors and crashes with -fpic</li>
    <li>Crashes with interfaces on Cygwin/MinGW</li>
    <li>Support the -mno-cygwin option<br>
    </li>
  </ul>

</ul>

<a name="0.12"></a>0.12:<br>
<ul>
  <li>Fixes</li>

  <ul>
    <li>Various problems building MinGW in MSYS</li>
    <li>Mango "endless output"</li>
    <li>Build problems with gcc 3.4.1</li>
    <li>Various problems revealed by dmdscript<br>
    </li>
    <li>Error message now go to standard error</li>
    <li>DStress catch_01, catch_02, new_04, switch_19, throw_02, and others.</li>
  </ul>

  <li>Improvements</li>

  <ul>
    <li>Updated to DMD 0.125</li>
    <li>New target: AIX</li>
    <li>GDC and DMD versions are reported with "gcc --version"</li>
    <li>Take advantage of DMD template improvements on<br>
    </li>
  </ul>

  <li>Changes</li>

  <ul>
    <li>std.c.unix is now std.c.unix.unix</li>
    <li>The runtime library is now "libgphobos" to avoid conflicts with DMD.</li>
    <li>The dmd wrapper script...</li>

    <ul>
      <li>Is now named "gdmd".</li>
      <li>Looks for gdc in its own directory instead of searching the path</li>
      <li>Requires a comma after the "-q" option.<br>
      </li>
    </ul>
  </ul>

</ul>

<a name="0.11"></a>0.11:<br>
<ul>
  <li>Fixes</li>

  <ul>
    <li>Reversed structure compare</li>
    <li>Correct meaning of '-L' option in wrapper script</li>
    <li>Static data GC bug on Linux</li>
  </ul>

  <li>Improvements</li>
  <ul>
    <li>Updated to DMD 0.121</li>
    <li>New target: MingGW</li>
    <li>Included Anders F Bj&ouml;rklund's man pages.<br>
    </li>
    <li>It is now possible to build a cross-compiler.&nbsp;
Only MingGW is supported out-of-the-box, however.</li>
  </ul>

</ul>

<h3>License</h3>
&nbsp;&nbsp;&nbsp; This program is free software; you can redistribute it and/or modify<br>
&nbsp;&nbsp;&nbsp; it under the terms of the GNU General Public License as published by<br>
&nbsp;&nbsp;&nbsp; the Free Software Foundation; either version 2 of the License, or<br>
&nbsp;&nbsp;&nbsp; (at your option) any later version.<br>
<br>
&nbsp;&nbsp;&nbsp; This program is distributed in the hope that it will be useful,<br>
&nbsp;&nbsp;&nbsp; but WITHOUT ANY WARRANTY; without even the implied warranty of<br>
&nbsp;&nbsp;&nbsp; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.&nbsp; See the<br>
&nbsp;&nbsp;&nbsp; GNU General Public License for more details.<br>
<br>
&nbsp;&nbsp;&nbsp; You should have received a copy of the GNU General Public License<br>
&nbsp;&nbsp;&nbsp; along with this program; if not, write to the Free Software<br>
&nbsp;&nbsp;&nbsp; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA&nbsp; 02111-1307&nbsp; USA<br>

</body>
</html>