]> git.pld-linux.org Git - packages/crossavr-binutils.git/blame - 201-binutils-dwarf2-AVRStudio-workaround.patch
- cleanup, use arch*dir macros
[packages/crossavr-binutils.git] / 201-binutils-dwarf2-AVRStudio-workaround.patch
CommitLineData
30f666e7 1diff -Naurp gas/dwarf2dbg.c gas/dwarf2dbg.c
31ce1ede
JR
2--- gas/dwarf2dbg.c 2012-12-06 15:20:06.000000000 +0530
3+++ gas/dwarf2dbg.c 2012-12-06 15:06:44.000000000 +0530
4@@ -126,8 +126,11 @@
3ccd393f 5 Note: If you want to change this, you'll have to update the
6 "standard_opcode_lengths" table that is emitted below in
7 out_debug_line(). */
8+#ifndef TC_AVR
9 #define DWARF2_LINE_OPCODE_BASE 13
10-
11+#else
12+#define DWARF2_LINE_OPCODE_BASE 10
13+#endif
14 #ifndef DWARF2_LINE_BASE
15 /* Minimum line offset in a special line info. opcode. This value
16 was chosen to give a reasonable range of values. */
31ce1ede 17@@ -1520,9 +1523,11 @@ out_debug_line (segT line_seg)
3ccd393f 18 out_byte (0); /* DW_LNS_set_basic_block */
19 out_byte (0); /* DW_LNS_const_add_pc */
20 out_byte (1); /* DW_LNS_fixed_advance_pc */
21+#ifndef TC_AVR
22 out_byte (0); /* DW_LNS_set_prologue_end */
23 out_byte (0); /* DW_LNS_set_epilogue_begin */
24 out_byte (1); /* DW_LNS_set_isa */
25+#endif
26
27 out_file_list ();
28
This page took 0.038697 seconds and 4 git commands to generate.