[Issue 2941] asm fstsw AX; generates incorrect opcode

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed May 6 00:23:34 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=2941


clugdbug at yahoo.com.au changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |major




------- Comment #1 from clugdbug at yahoo.com.au  2009-05-06 02:23 -------
I've found the cause: iasm.c, line 1650-1651 is:
        else if ((ptb.pptb0->usFlags & _fwait) &&
            config.target_cpu >= TARGET_80386) {

Turns out that at this point, config.target_cpu is uninitialized! It's 0!
It doesn't get initialized until much later. (In obj_start() in glue.c).
I suspect that there should be a call to out_config_init() (in msc.c) at a very
much earlier point, possibly even in mars.c.

As this could be causing all sorts of problems elsewhere, I'm raising the
severity.


-- 



More information about the Digitalmars-d-bugs mailing list