Extended the semantics of the critical keyword to include
[fw/sdcc] / support / Util / SDCCerr.c
index af987ae31b3eed4f67f67bdd3239f61e1331dd99..0770abd44d27eca9f6d9141445ddcc8a022635f7 100644 (file)
@@ -397,6 +397,8 @@ struct
     "function attribute following non-function declaration"},
 { W_SAVE_RESTORE, ERROR_LEVEL_PEDANTIC,
     "unmatched #pragma SAVE and #pragma RESTORE" },
+{ E_INVALID_CRITICAL, ERROR_LEVEL_ERROR,
+    "not allowed in a critical section" },
 };
 
 /*