]> git.pld-linux.org Git - packages/crossavr-binutils.git/blob - 201-binutils-dwarf2-AVRStudio-workaround.patch
- release 2 (x32 rebuild)
[packages/crossavr-binutils.git] / 201-binutils-dwarf2-AVRStudio-workaround.patch
1 diff -Naurp gas/dwarf2dbg.c gas/dwarf2dbg.c
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 @@
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 @@ -1520,9 +1523,11 @@ out_debug_line (segT line_seg)
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.054147 seconds and 3 git commands to generate.