From: sandeep Date: Tue, 14 Nov 2000 22:17:56 +0000 (+0000) Subject: Don't propagate the "register" class for structure members X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=71279816043e07233787b8daa7de84e16b06adfe;p=fw%2Fsdcc Don't propagate the "register" class for structure members git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@501 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/SDCCsymt.c b/src/SDCCsymt.c index a952e428..7820297e 100644 --- a/src/SDCCsymt.c +++ b/src/SDCCsymt.c @@ -800,7 +800,8 @@ link *structElemType (link *stype, value *id ,value **argsp) } type = copyLinkChain (fields->type) ; etype=getSpec(type); - SPEC_SCLS(etype) = SPEC_SCLS(petype); + SPEC_SCLS(etype) = (SPEC_SCLS(petype) == S_REGISTER ? + SPEC_SCLS(etype) : SPEC_SCLS(petype)); return type; } fields = fields->next ;