Made the constant following the "interrupt" keyword optional. If omitted,
[fw/sdcc] / src / SDCCmem.c
index dece30c26ef3fe7a78237ed3aaecb0b523673e31..4c62eb07069b1456a912a6b10206cb719f75b84e 100644 (file)
@@ -325,9 +325,9 @@ allocGlobal (symbol * sym)
       SPEC_OCLS (sym->etype) = code;
       /* if this is an interrupt service routine
          then put it in the interrupt service array */
-      if (FUNC_ISISR (sym->type) && !options.noiv)
+      if (FUNC_ISISR (sym->type) && !options.noiv
+          && (FUNC_INTNO (sym->type) != INTNO_UNSPEC))
        {
-
          if (interrupts[FUNC_INTNO (sym->type)])
            werror (E_INT_DEFINED,
                    FUNC_INTNO (sym->type),