mir-cpuid icon indicating copy to clipboard operation
mir-cpuid copied to clipboard

gdc build error: mir-cpuid/1.2.11/mir-cpuid/source/cpuid/x86_any.d:606:18: error: ‘a’ must be surrounded by parentheses

Open mw66 opened this issue 1 year ago • 1 comments

gdc (GCC) 14.1.0

mir-cpuid/1.2.11/mir-cpuid/source/cpuid/x86_any.d:606:18: error: ‘a’ must be surrounded by parentheses
  606 |             "=a" a,
      |                  ^

mw66 avatar Jun 21 '24 01:06 mw66

adding parentheses make gdc build:

    {                                                                                                                                                                                                       
        "cpuid" :                                                                                                                                                                                           
            "=a" (a),                                                                                                                                                                                       
            "=b" (b),                                                                                                                                                                                       
            "=c" (c),                                                                                                                                                                                       
            "=d" (d),                                                                                                                                                                                       
            : "a" (eax), "c" (ecx);                                                                                                                                                                         
    }                           

mw66 avatar Jun 21 '24 01:06 mw66