]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Downgrade DWARF_VERSION_DEFAULT to 3 for VxWorks >= 7
authorOlivier Hainque <hainque@adacore.com>
Thu, 3 Mar 2022 16:58:51 +0000 (16:58 +0000)
committerOlivier Hainque <hainque@adacore.com>
Fri, 7 Oct 2022 06:58:17 +0000 (06:58 +0000)
Using 4 as the DWARF_VERSION_DEFAULT value for VxWorks observably
still hangs recent system debuggers on tbreak for some contructs,
and downgrading to 3 improves the situation.

2022-03-06  Olivier Hainque  <hainque@adacore.com>

gcc/
* config/vxworks.h (DWARF_VERSION_DEFAULT): Adjust from
4 to 3 for VxWorks >= 7.

gcc/config/vxworks.h

index d6ac83b2bd2d6f0b86018e590fccf78657bcd28f..075a45109e81aadd50fcdeefb57c6c4146356585 100644 (file)
@@ -380,7 +380,7 @@ extern void vxworks_emit_call_builtin___clear_cache (rtx begin, rtx end);
    with VxWorks.  */
 
 #undef DWARF_VERSION_DEFAULT
-#define DWARF_VERSION_DEFAULT (TARGET_VXWORKS7 ? 4 : 2)
+#define DWARF_VERSION_DEFAULT (TARGET_VXWORKS7 ? 3 : 2)
 
 #undef DWARF_GNAT_ENCODINGS_DEFAULT
 #define DWARF_GNAT_ENCODINGS_DEFAULT \