Hi Jan-Benedict,
However, next one is:
../.././gcc/defaults.h:938: error: "PREFERRED_DEBUGGING_TYPE" redefined [-Werror] 938 | #define PREFERRED_DEBUGGING_TYPE NO_DEBUG
Ah - this is the same as the fix needed for the RX target. Please try the attached patch. It includes my original patch, your addition to the patch and a fix for the above problem. Cheers Nick
diff --git a/gcc/config/v850/v850.c b/gcc/config/v850/v850.c index 249cb400177..e0e5005d865 100644 --- a/gcc/config/v850/v850.c +++ b/gcc/config/v850/v850.c @@ -2181,7 +2181,7 @@ construct_restore_jr (rtx op) unsigned long int first; unsigned long int last; int i; - static char buff [100]; /* XXX */ + static char buff [256]; /* XXX */ if (count <= 2) { @@ -2286,7 +2286,7 @@ construct_save_jarl (rtx op) unsigned long int first; unsigned long int last; int i; - static char buff [100]; /* XXX */ + static char buff [255]; /* XXX */ if (count <= (TARGET_LONG_CALLS ? 3 : 2)) { diff --git a/gcc/config/v850/v850.h b/gcc/config/v850/v850.h index 23dfdf67dff..386f9f59e0b 100644 --- a/gcc/config/v850/v850.h +++ b/gcc/config/v850/v850.h @@ -700,6 +700,7 @@ typedef enum /* Use dwarf2 debugging info by default. */ #undef PREFERRED_DEBUGGING_TYPE #define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG +#define DWARF2_DEBUGGING_INFO 1 #define DWARF2_FRAME_INFO 1 #define DWARF2_UNWIND_INFO 0