Mercurial > projects > ldc
diff gen/functions.cpp @ 546:406aee3416bb
Removed D_InlineAsm and D_InlineAsm_X86 versions.
Made use of 'naked' in inline asm an error.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Mon, 25 Aug 2008 19:36:27 +0200 |
parents | cecfee2d01a8 |
children | fbb1a366cfbc |
line wrap: on
line diff
--- a/gen/functions.cpp Sun Aug 24 18:25:45 2008 +0200 +++ b/gen/functions.cpp Mon Aug 25 19:36:27 2008 +0200 @@ -538,10 +538,11 @@ Logger::println("DtoDefineFunc(%s): %s", fd->toPrettyChars(), fd->loc.toChars()); LOG_SCOPE; - // warn about naked + // error on naked if (fd->naked) { - warning("%s: naked is currently ignored", fd->locToChars()); + fd->error("naked is not supported"); + fatal(); } // debug info