]> git.pld-linux.org Git - packages/crossavr-binutils.git/blob - 304-binutils-2.20.1-dwarf2-AVRStudio-workaround.patch
- synchronized patches with Atmel official AVR8-GNU toolchain.
[packages/crossavr-binutils.git] / 304-binutils-2.20.1-dwarf2-AVRStudio-workaround.patch
1 diff -ruwN gas/dwarf2dbg.c gas/dwarf2dbg.c
2 --- gas/dwarf2dbg.c     2010-03-11 15:06:25.773290700 +0530
3 +++ gas/dwarf2dbg.c     2010-03-11 15:08:20.410311300 +0530
4 @@ -112,8 +112,11 @@
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.  */
17 @@ -1439,9 +1442,11 @@
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.064766 seconds and 3 git commands to generate.