Technical information

Operating Precautions for CPDW9X/NT-CDR-V85X, Y-GHS-MULTI-V800
TM
Customer Notification r20tu0003ed1812 58
No. a42
When compiled with Ospace, an assignment to a structure’s element will also set to 0 all
other elements
Version Information
V4.0.5
Details
When compiling with the option Ospace, if anelement of structure variable is assigned to
another structure element, the compiler will set to 0 the other elements of the base structure.
Example:
test.c
struct data
{
int m0:2;
int m1:2;
} s[2], *p=s;
void sub(void)
{
p->m0 = p[1].m0 = 1;
p->m1 = p[1].m1 = 1;
p->m1 &= p[1].m1; Wrong code generated.
}
p->m0 and all other fields of the structure will be set to 0.
Command Sequence
ccv850 -Ospace
ccv850e -Ospace
Workaround
A new compiler Version 4.05c, which fixes this problem, can be downloaded from the NEC WEB
page(s) at http://www.renesas.eu/updates?id=443