fixed bug #482699
[fw/sdcc] / src / SDCCsymt.c
index 47cf210b1fe2da9e711e0a8c0e88ec443c33e834..5592d4a908e08e45ee7a0067ba0fe432c0de4818 100644 (file)
@@ -1181,8 +1181,10 @@ checkSClass (symbol * sym, int isProto)
     SPEC_VOLATILE (sym->etype) = 1;
   
   /* global variables declared const put into code */
+  /* if no other storage class specified */
   if (sym->level == 0 &&
-      SPEC_CONST (sym->etype)) {
+      SPEC_CONST (sym->etype) &&
+      SPEC_SCLS(sym->etype) == S_FIXED) {
     SPEC_SCLS (sym->etype) = S_CODE;
   }