From 71279816043e07233787b8daa7de84e16b06adfe Mon Sep 17 00:00:00 2001 From: sandeep Date: Tue, 14 Nov 2000 22:17:56 +0000 Subject: [PATCH] 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 --- src/SDCCsymt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ; -- 2.47.2