Mercurial > projects > ldc
comparison dmd/init.c @ 305:2b72433d5c8c trunk
[svn r326] Fixed a bunch of issues with printf's that MinGW32 did not support.
Fixed problems with label collisions when using labels inside inline asm. LabelStatement is now easily reached given its
Identifier, which should be useful elsewhere too.
Enabled inline asm for building the lib/compiler/llvmdc runtime code, fixing branches out of asm makes this possible.
author | lindquist |
---|---|
date | Fri, 27 Jun 2008 22:04:35 +0200 |
parents | 5825d48b27d1 |
children | aaade6ded589 |
comparison
equal
deleted
inserted
replaced
304:3ebc136702dd | 305:2b72433d5c8c |
---|---|
380 if (length > dim) | 380 if (length > dim) |
381 dim = length; | 381 dim = length; |
382 } | 382 } |
383 unsigned long amax = 0x80000000; | 383 unsigned long amax = 0x80000000; |
384 if ((unsigned long) dim * t->next->size() >= amax) | 384 if ((unsigned long) dim * t->next->size() >= amax) |
385 error(loc, "array dimension %u exceeds max of %ju", dim, amax / t->next->size()); | 385 error(loc, "array dimension %u exceeds max of %llu", dim, amax / t->next->size()); |
386 return this; | 386 return this; |
387 } | 387 } |
388 | 388 |
389 /******************************** | 389 /******************************** |
390 * If possible, convert array initializer to array literal. | 390 * If possible, convert array initializer to array literal. |