Technical information
Operating Precautions for CPDW9X/NT-CDR-V85X, Y-GHS-MULTI-V800
TM
Customer Notification r20tu0003ed1812 81
No. a70
Incorrect Warning with ‘#pragma ghs io’
Version Information
V4.2.3
Details:
The compiler sometimes generates a warning message, if the the “#pragma ghs io” construct is
used:
".\PF\MC_HAC\HAC_V850\v850_tab.h", line 1118: warning #1514-D:*
incorrect GHS #pragma: a single #pragma ghs io directive has induced
multiple I/O variables*
Sample Code:
typedef union
{
uint8 All_ui8;
struct
{
// Chip select address range
// DCS1 DCS0 Chip select address range
// 0 0 CS0 area (01F 8000H - 01F FFFFH)
// 0 1 CS1 area (03F 8000H - 03F FFFFH)
// 1 0 CS2 area (07F 8000H - 07F FFFFH)
// 1 1 CS3 area (0FF 8000H - 0FF FFFFH) (default)
uint8 DCS_bf2 : 2;
uint8 res_bf5 : 5;
// Read access control of data flash: 0: Disable 1: Enable
uint8 DFLEN_bf1 : 1;
} Bit_st;
} gType_DFLCTL_un;
#pragma ghs io g_DFLCTL_un 0xFFFFFCF8
volatile gType_DFLCTL_un g_DFLCTL_un;
Command Line
ccv850 -cpu=v850e1 –c test.c
Workaround
A patch “CPDW9XNT-CDR-V85X-V423-PATCH02” is available on
http://www.renesas.eu/updates?id=443










