Hi Guys, I am applying the patch below to fix a problem building the rx port. The rx.h header file defines PREFERRED_DEBUGGING_TYPE but it was not defining the types of debugging it preferred. This results in the definition in defaults.h being triggered and the compiler complaining about a redefinition.
Cheers Nick gcc/ChangeLog 2021-03-09 Nick Clifton <ni...@redhat.com> * config/rx/rx.h (DBX_DEBUGGING_INFO): Define. (DWARF"_DEBUGGING_INFO): Define. diff --git a/gcc/config/rx/rx.h b/gcc/config/rx/rx.h index 8e23e311c03..59e1f7cfa96 100644 --- a/gcc/config/rx/rx.h +++ b/gcc/config/rx/rx.h @@ -628,6 +628,8 @@ typedef unsigned int CUMULATIVE_ARGS; #undef PREFERRED_DEBUGGING_TYPE #define PREFERRED_DEBUGGING_TYPE (TARGET_AS100_SYNTAX \ ? DBX_DEBUG : DWARF2_DEBUG) +#define DBX_DEBUGGING_INFO 1 +#define DWARF2_DEBUGGING_INFO 1 #define INCOMING_FRAME_SP_OFFSET 4 #define ARG_POINTER_CFA_OFFSET(FNDECL) 4