[gcc r11-7715] Fix building the V850 port using recent versions of gcc.
Nick Clifton
nickc@gcc.gnu.org
Thu Mar 18 12:59:43 GMT 2021
https://gcc.gnu.org/g:073595ef13b3395577a96bae051caae8cff9df0f
commit r11-7715-g073595ef13b3395577a96bae051caae8cff9df0f
Author: Nick Clifton <nickc@redhat.com>
Date: Thu Mar 18 12:57:25 2021 +0000
Fix building the V850 port using recent versions of gcc.
gcc/
* config/v850/v850.c (construct_restore_jr): Increase static
buffer size.
(construct_save_jarl): Likewise.
* config/v850/v850.h (DWARF2_DEBUGGING_INFO): Define.
Diff:
---
gcc/config/v850/v850.c | 4 ++--
gcc/config/v850/v850.h | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
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
More information about the Gcc-cvs
mailing list