Fixed a volatile optimalisation and some other small things
[fw/sdcc] / src / SDCCsymt.c
index a69710cd2ab27f397fe6e719c2dac78d9e3116d8..99bb8e5a184b84788ea628ed889a76f9f965e816 100644 (file)
@@ -1725,6 +1725,9 @@ printTypeChain (sym_link * type, FILE * of)
     {
       if (IS_DECL (type))
        {
+         if (DCL_PTR_VOLATILE(type)) {
+           fprintf (of, "volatile ");
+         }
          switch (DCL_TYPE (type))
            {
            case FUNCTION:
@@ -1771,7 +1774,6 @@ printTypeChain (sym_link * type, FILE * of)
              if (DCL_PTR_CONST (type))
                fprintf (of, "const ");
              break;
-
            case ARRAY:
              fprintf (of, "array of ");
              break;