m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define as .file/.loc directives are...
[gcc.git] / gcc / config / m68hc11 / m68hc11.h
index 476c0d0f2c3861c6e8271d42a5c8373d03a933df..ea48d4d4b7f99b5d73985aac288b253b8b90af6a 100644 (file)
@@ -1627,6 +1627,14 @@ do {                                                                    \
    the page number.  */
 #define DWARF2_ADDR_SIZE 4
 
+/* SCz 2003-07-08: Don't use as dwarf2 .file/.loc directives because
+   the linker is doing relaxation and it does not adjust the debug_line
+   sections when it shrinks the code.  This results in invalid addresses
+   when debugging.  This does not bless too much the HC11/HC12 as most
+   applications are embedded and small, hence a reasonable debug info.
+   This problem is known for binutils 2.13, 2.14 and mainline.   */
+#undef HAVE_AS_DWARF2_DEBUG_LINE
+
 /* The prefix for local labels.  You should be able to define this as
    an empty string, or any arbitrary string (such as ".", ".L%", etc)
    without having to make any other changes to account for the specific