Przeglądaj źródła

gen-as-const.awk: emit asm markers inside comments

Wrap the @@@name@@@...@@@end@@@ marker in /* */ so the assembler
does not try to parse it as an instruction.
Waldemar Brodkorb 2 dni temu
rodzic
commit
bc063704b6
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      extra/scripts/gen-as-const.awk

+ 1 - 1
extra/scripts/gen-as-const.awk

@@ -26,7 +26,7 @@ NF == 1 { sub(/^.*$/, "& &"); }
 NF > 1 {
   name = $1;
   sub(/^[^ 	]+[ 	]+/, "");
-  printf "__asm__ (\"@@@name@@@%s@@@value@@@%%0@@@end@@@\" : : \"i\" ((long) %s));\n",
+  printf "__asm__ (\"/* @@@name@@@%s@@@value@@@%%0@@@end@@@ */\" : : \"i\" ((long) %s));\n",
     name, $0;
 }