Linker complaints if linked modules have conflicting options.
[fw/sdcc] / as / z80 / asmain.c
index 976248a392e4c0c61a82f80927dc3587d28d72e3..f916e9efd622af92b0d18a99260f9e3a47702e00 100644 (file)
@@ -850,6 +850,19 @@ loop:
                lmode = SLIST;
                break;
 
+    case S_OPTSDCC:
+               p = optsdcc;
+               if ((c = getnb()) != 0) {
+                       do {
+                               if (p < &tb[NINPUT-1])
+                                       *p++ = c;
+                       } while ((c = get()) != 0);
+               }
+               *p = 0;
+               unget(c);
+               lmode = SLIST;
+        break;
+
        case S_GLOBL:
                do {
                        getid(id, -1);