While i'm trying to build gcc itself. İ faced with this strange error.
error was on aarch64.h
and also, i edited header code a bit before compilation
original header code:
#define PROFILE_HOOK(LABEL) \
{ \
rtx fun, lr; \
lr = get_hard_reg_initial_val (Pmode, LR_REGNUM); \
fun = gen_rtx_SYMBOL_REF (Pmode, MCOUNT_NAME); \
emit_library_call (fun, LCT_NORMAL, VOIDmode, 1, lr, Pmode); \
}
İ changed it to:
#define PROFILE_HOOK(LABEL) \
{ \
rtx fun, lr; \
if (!flag_fentry)
{ //error: expected unqualified-id before.. this line**************
lr = get_hard_reg_initial_val (Pmode, LR_REGNUM); \
fun = gen_rtx_SYMBOL_REF (Pmode, MCOUNT_NAME); \
emit_library_call (fun, LCT_NORMAL, VOIDmode, 1, lr, Pmode); \
} //error: expected unqualified-id before.... this line*************
}
and also i dont know if it makes any difference(color change) but before editing code, whole code looks purple. after editing code, lines below if (!flag_fentry)
turned to black
im struggling with it for two days with no success
i really appreciate it if anyone help me.
thanx regards