Solution 2 (Thanks to Vladimir Shevtsov / MrFeek)
Make a modified SFR_Macro.h replacing all "|=" statments
Example:
Replace this: #define set_SMOD PCON |= SET_BIT7; // Original
By this: #define set_SMOD _asm_ ("orl _PCON,#0x80"); // SDCC compatible
Disable Power-On Reset (POR)
Nuvoton (strongly) recommends disable POR at startup. See section 24.1 of
the datasheet for more information. That could be done using the
"_sdcc_external_startup" function as shown below.