hack up const and volatile modifiers in type chains a bit
[fw/sdcc] / src / SDCCglue.c
index 8dced77b7a6fb9c2b43c893552aff64a7762b3fd..e72964cd4dcf5e01550ad3984f49ed002dc81e93 100644 (file)
@@ -408,7 +408,6 @@ initPointer (initList * ilist, sym_link *toType)
                        val->type = newLink ();
                        if (SPEC_SCLS (expr->left->etype) == S_CODE) {
                                DCL_TYPE (val->type) = CPOINTER;
-                               DCL_PTR_CONST (val->type) = port->mem.code_ro;
                        }
                        else if (SPEC_SCLS (expr->left->etype) == S_XDATA)
                                DCL_TYPE (val->type) = FPOINTER;
@@ -467,7 +466,6 @@ initPointer (initList * ilist, sym_link *toType)
                val->type = newLink ();
                if (SPEC_SCLS (expr->right->etype) == S_CODE) {
                        DCL_TYPE (val->type) = CPOINTER;
-                       DCL_PTR_CONST (val->type) = port->mem.code_ro;
                }
                else if (SPEC_SCLS (expr->right->etype) == S_XDATA)
                        DCL_TYPE (val->type) = FPOINTER;