Download Usage Restrictions - Renesas Electronics

Transcript
ZBG-CD-10-0030
Attachment 1 - 59/78
Example 1:
if( Conditional expression ){
a1 = x;
b1 = x;
c1 = x;
}
Same variable group
else{
a1 = y;
x and y are constants or variables.
b1 = y;
c1 = y;
}
Example 2:
switch( conditional expression ){
case 0:
a1 = x;
b1 = x;
c1 = x;
break;
case 1:
a1 = y;
Same variable group
b1 = y;
c1 = y;
break;
default:
a1 = z;
b1 = z;
c1 = z;
x and y are constants or variables.
break;
}
[Workaround]
Specify the following options to suppress the optimization that causes this bug:
-Wi,+cf_reg_trans_opt1=0
-Wi,+cf_reg_trans_opt2=0
-Wi,+cf_forward_reg_trans_opt=0
-Wi,+cf_reverse_reg_trans_opt=0
-Wi,+abs_ptn_opt=0
[Correction]
This issue has been corrected in Ver. 3.10.
A tool used to check whether this restriction applies is available.
Contact an NEC Electronics sales representative or distributor for details.
No. 98 Restriction whereby data in an automatic variable area is illegally deleted
[Description]
If the following conditions are satisfied, some elements (of an array) or members (of a structure or union) in an
automatic variable area are deleted and indirect referencing for that automatic variable might be performed
incorrectly.