summaryrefslogtreecommitdiff
path: root/devel/avr-binutils/files/patch-303-binutils-2.20.1-as-dwarf
diff options
context:
space:
mode:
authorJoerg Wunsch <joerg@FreeBSD.org>2011-12-16 22:39:21 +0000
committerJoerg Wunsch <joerg@FreeBSD.org>2011-12-16 22:39:21 +0000
commit148819d89b158be812fb30720ebc20c0d93758e3 (patch)
treea9b20735c1384241625006c1c8bb45ad81103167 /devel/avr-binutils/files/patch-303-binutils-2.20.1-as-dwarf
parentThis gem is a C binding to the excellent YAJL JSON parsing and generation (diff)
Upgrade to binutils 2.20.1.
Completely reorganize the patches for this port. Patches for new devices are now synchronized with the Atmel AVR tools. The main difference is the naming scheme, as FreeBSD patches start with "patch-", while the Atmel AVR Tools patches end up in ".patch".
Diffstat (limited to 'devel/avr-binutils/files/patch-303-binutils-2.20.1-as-dwarf')
-rw-r--r--devel/avr-binutils/files/patch-303-binutils-2.20.1-as-dwarf29
1 files changed, 29 insertions, 0 deletions
diff --git a/devel/avr-binutils/files/patch-303-binutils-2.20.1-as-dwarf b/devel/avr-binutils/files/patch-303-binutils-2.20.1-as-dwarf
new file mode 100644
index 000000000000..6aade2d90bb2
--- /dev/null
+++ b/devel/avr-binutils/files/patch-303-binutils-2.20.1-as-dwarf
@@ -0,0 +1,29 @@
+diff -ruwN gas/config/tc-avr.c gas/config/tc-avr.c
+--- gas/config/tc-avr.c 2010-03-11 14:56:16.484109300 +0530
++++ gas/config/tc-avr.c 2010-03-11 14:58:59.248690500 +0530
+@@ -24,6 +24,7 @@
+ #include "as.h"
+ #include "safe-ctype.h"
+ #include "subsegs.h"
++#include "dwarf2dbg.h"
+
+ struct avr_opcodes_s
+ {
+@@ -1368,6 +1369,7 @@
+
+ dwarf2_emit_insn (0);
+
++ dwarf2_emit_insn (0);
+ /* We used to set input_line_pointer to the result of get_operands,
+ but that is wrong. Our caller assumes we don't change it. */
+ {
+diff -ruwN gas/config/tc-avr.h gas/config/tc-avr.h
+--- gas/config/tc-avr.h 2010-03-11 14:56:16.484109300 +0530
++++ gas/config/tc-avr.h 2010-03-11 14:58:59.264313900 +0530
+@@ -147,3 +147,6 @@
+
+ /* This target is buggy, and sets fix size too large. */
+ #define TC_FX_SIZE_SLACK(FIX) 2
++
++/* keep DWARF2_ADDR_SIZE in consistency with C compiler produced information */
++#define DWARF2_ADDR_SIZE(bfd) 4