aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/m68hc11/m68hc11.h
diff options
context:
space:
mode:
authorStephane Carrez <ciceron@gcc.gnu.org>2003-07-08 23:05:39 +0200
committerStephane Carrez <ciceron@gcc.gnu.org>2003-07-08 23:05:39 +0200
commitf64233022351b49e93c14a66db526bcb3ca0482b (patch)
treea21582bfe9a24c5d859dafc7c8e9f3f9f6e2c236 /gcc/config/m68hc11/m68hc11.h
parenta27531fb3b34260de550bfd27505fb4cae6fb953 (diff)
downloadgcc-f64233022351b49e93c14a66db526bcb3ca0482b.zip
gcc-f64233022351b49e93c14a66db526bcb3ca0482b.tar.gz
gcc-f64233022351b49e93c14a66db526bcb3ca0482b.tar.bz2
m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define as .file/.loc directives are incompatible with linker relaxation.
* config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define as .file/.loc directives are incompatible with linker relaxation. From-SVN: r69101
Diffstat (limited to 'gcc/config/m68hc11/m68hc11.h')
-rw-r--r--gcc/config/m68hc11/m68hc11.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/config/m68hc11/m68hc11.h b/gcc/config/m68hc11/m68hc11.h
index 476c0d0..ea48d4d 100644
--- a/gcc/config/m68hc11/m68hc11.h
+++ b/gcc/config/m68hc11/m68hc11.h
@@ -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