summaryrefslogtreecommitdiff
path: root/devel/avr-gcc-3/files
diff options
context:
space:
mode:
Diffstat (limited to 'devel/avr-gcc-3/files')
-rw-r--r--devel/avr-gcc-3/files/patch-16bitassign215
-rw-r--r--devel/avr-gcc-3/files/patch-aa12
-rw-r--r--devel/avr-gcc-3/files/patch-ab302
-rw-r--r--devel/avr-gcc-3/files/patch-ac12
-rw-r--r--devel/avr-gcc-3/files/patch-ad12
-rw-r--r--devel/avr-gcc-3/files/patch-binary-constants120
-rw-r--r--devel/avr-gcc-3/files/patch-dwarfdebug8
-rw-r--r--devel/avr-gcc-3/files/patch-mega08-tinyx13-can128124
-rw-r--r--devel/avr-gcc-3/files/patch-mega325x-mega645x58
9 files changed, 0 insertions, 863 deletions
diff --git a/devel/avr-gcc-3/files/patch-16bitassign b/devel/avr-gcc-3/files/patch-16bitassign
deleted file mode 100644
index d527a87cf935..000000000000
--- a/devel/avr-gcc-3/files/patch-16bitassign
+++ /dev/null
@@ -1,215 +0,0 @@
-===================================================================
-RCS file: /cvsroot/gcc/cvsroot/gcc/gcc/gcc/config/avr/avr.c,v
-retrieving revision 1.129
-retrieving revision 1.130
-diff -u -r1.129 -r1.130
---- gcc/config/avr/avr.c 2005/02/09 14:43:28 1.129
-+++ gcc/config/avr/avr.c 2005/03/06 21:50:34 1.130
-@@ -1120,6 +1120,16 @@
-
- print_operand (file, XEXP (addr, 1), 0);
- }
-+ else if (code == 'p' || code == 'r')
-+ {
-+ if (GET_CODE (addr) != POST_INC && GET_CODE (addr) != PRE_DEC)
-+ fatal_insn ("bad address, not post_inc or pre_dec:", addr);
-+
-+ if (code == 'p')
-+ print_operand_address (file, XEXP (addr, 0)); /* X, Y, Z */
-+ else
-+ print_operand (file, XEXP (addr, 0), 0); /* r26, r28, r30 */
-+ }
- else if (GET_CODE (addr) == PLUS)
- {
- print_operand_address (file, XEXP (addr,0));
-@@ -1835,6 +1845,9 @@
- rtx base = XEXP (src, 0);
- int reg_dest = true_regnum (dest);
- int reg_base = true_regnum (base);
-+ /* "volatile" forces reading low byte first, even if less efficient,
-+ for correct operation with 16-bit I/O registers. */
-+ int mem_volatile_p = MEM_VOLATILE_P (src);
- int tmp;
-
- if (!l)
-@@ -1928,6 +1941,25 @@
- if (reg_overlap_mentioned_p (dest, XEXP (base, 0)))
- fatal_insn ("incorrect insn:", insn);
-
-+ if (mem_volatile_p)
-+ {
-+ if (REGNO (XEXP (base, 0)) == REG_X)
-+ {
-+ *l = 4;
-+ return (AS2 (sbiw,r26,2) CR_TAB
-+ AS2 (ld,%A0,X+) CR_TAB
-+ AS2 (ld,%B0,X) CR_TAB
-+ AS2 (sbiw,r26,1));
-+ }
-+ else
-+ {
-+ *l = 3;
-+ return (AS2 (sbiw,%r1,2) CR_TAB
-+ AS2 (ld,%A0,%p1) CR_TAB
-+ AS2 (ldd,%B0,%p1+1));
-+ }
-+ }
-+
- *l = 2;
- return (AS2 (ld,%B0,%1) CR_TAB
- AS2 (ld,%A0,%1));
-@@ -2508,7 +2540,11 @@
- rtx base = XEXP (dest, 0);
- int reg_base = true_regnum (base);
- int reg_src = true_regnum (src);
-+ /* "volatile" forces writing high byte first, even if less efficient,
-+ for correct operation with 16-bit I/O registers. */
-+ int mem_volatile_p = MEM_VOLATILE_P (dest);
- int tmp;
-+
- if (!l)
- l = &tmp;
- if (CONSTANT_ADDRESS_P (base))
-@@ -2528,33 +2564,33 @@
- {
- if (reg_src == REG_X)
- {
-- /* "st X+,r26" is undefined */
-- if (reg_unused_after (insn, src))
-+ /* "st X+,r26" and "st -X,r26" are undefined. */
-+ if (!mem_volatile_p && reg_unused_after (insn, src))
- return *l=4, (AS2 (mov,__tmp_reg__,r27) CR_TAB
- AS2 (st,X,r26) CR_TAB
- AS2 (adiw,r26,1) CR_TAB
- AS2 (st,X,__tmp_reg__));
- else
- return *l=5, (AS2 (mov,__tmp_reg__,r27) CR_TAB
-- AS2 (st,X,r26) CR_TAB
- AS2 (adiw,r26,1) CR_TAB
- AS2 (st,X,__tmp_reg__) CR_TAB
-- AS2 (sbiw,r26,1));
-+ AS2 (sbiw,r26,1) CR_TAB
-+ AS2 (st,X,r26));
- }
- else
- {
-- if (reg_unused_after (insn, base))
-+ if (!mem_volatile_p && reg_unused_after (insn, base))
- return *l=2, (AS2 (st,X+,%A1) CR_TAB
- AS2 (st,X,%B1));
- else
-- return *l=3, (AS2 (st ,X+,%A1) CR_TAB
-- AS2 (st ,X,%B1) CR_TAB
-- AS2 (sbiw,r26,1));
-+ return *l=3, (AS2 (adiw,r26,1) CR_TAB
-+ AS2 (st,X,%B1) CR_TAB
-+ AS2 (st,-X,%A1));
- }
- }
- else
-- return *l=2, (AS2 (st ,%0,%A1) CR_TAB
-- AS2 (std,%0+1,%B1));
-+ return *l=2, (AS2 (std,%0+1,%B1) CR_TAB
-+ AS2 (st,%0,%A1));
- }
- else if (GET_CODE (base) == PLUS)
- {
-@@ -2567,14 +2603,14 @@
-
- if (disp <= 63 + MAX_LD_OFFSET (GET_MODE (dest)))
- return *l = 4, (AS2 (adiw,r28,%o0-62) CR_TAB
-- AS2 (std,Y+62,%A1) CR_TAB
- AS2 (std,Y+63,%B1) CR_TAB
-+ AS2 (std,Y+62,%A1) CR_TAB
- AS2 (sbiw,r28,%o0-62));
-
- return *l = 6, (AS2 (subi,r28,lo8(-%o0)) CR_TAB
- AS2 (sbci,r29,hi8(-%o0)) CR_TAB
-- AS2 (st,Y,%A1) CR_TAB
- AS2 (std,Y+1,%B1) CR_TAB
-+ AS2 (st,Y,%A1) CR_TAB
- AS2 (subi,r28,lo8(%o0)) CR_TAB
- AS2 (sbci,r29,hi8(%o0)));
- }
-@@ -2582,31 +2618,53 @@
- {
- /* (X + d) = R */
- if (reg_src == REG_X)
-- {
-+ {
- *l = 7;
- return (AS2 (mov,__tmp_reg__,r26) CR_TAB
- AS2 (mov,__zero_reg__,r27) CR_TAB
-- AS2 (adiw,r26,%o0) CR_TAB
-- AS2 (st,X+,__tmp_reg__) CR_TAB
-+ AS2 (adiw,r26,%o0+1) CR_TAB
- AS2 (st,X,__zero_reg__) CR_TAB
-+ AS2 (st,-X,__tmp_reg__) CR_TAB
- AS1 (clr,__zero_reg__) CR_TAB
-- AS2 (sbiw,r26,%o0+1));
-+ AS2 (sbiw,r26,%o0));
- }
- *l = 4;
-- return (AS2 (adiw,r26,%o0) CR_TAB
-- AS2 (st,X+,%A1) CR_TAB
-- AS2 (st,X,%B1) CR_TAB
-- AS2 (sbiw,r26,%o0+1));
-+ return (AS2 (adiw,r26,%o0+1) CR_TAB
-+ AS2 (st,X,%B1) CR_TAB
-+ AS2 (st,-X,%A1) CR_TAB
-+ AS2 (sbiw,r26,%o0));
- }
-- return *l=2, (AS2 (std,%A0,%A1) CR_TAB
-- AS2 (std,%B0,%B1));
-+ return *l=2, (AS2 (std,%B0,%B1) CR_TAB
-+ AS2 (std,%A0,%A1));
- }
- else if (GET_CODE (base) == PRE_DEC) /* (--R) */
- return *l=2, (AS2 (st,%0,%B1) CR_TAB
- AS2 (st,%0,%A1));
- else if (GET_CODE (base) == POST_INC) /* (R++) */
-- return *l=2, (AS2 (st,%0,%A1) CR_TAB
-- AS2 (st,%0,%B1));
-+ {
-+ if (mem_volatile_p)
-+ {
-+ if (REGNO (XEXP (base, 0)) == REG_X)
-+ {
-+ *l = 4;
-+ return (AS2 (adiw,r26,1) CR_TAB
-+ AS2 (st,X,%B1) CR_TAB
-+ AS2 (st,-X,%A1) CR_TAB
-+ AS2 (adiw,r26,2));
-+ }
-+ else
-+ {
-+ *l = 3;
-+ return (AS2 (std,%p0+1,%B1) CR_TAB
-+ AS2 (st,%p0,%A1) CR_TAB
-+ AS2 (adiw,%r0,2));
-+ }
-+ }
-+
-+ *l = 2;
-+ return (AS2 (st,%0,%A1) CR_TAB
-+ AS2 (st,%0,%B1));
-+ }
- fatal_insn ("unknown move insn:",insn);
- return "";
- }
-===================================================================
-RCS file: /cvsroot/gcc/cvsroot/gcc/gcc/gcc/config/avr/avr.md,v
-retrieving revision 1.49
-retrieving revision 1.50
-diff -u -r1.49 -r1.50
---- gcc/config/avr/avr.md 2005/01/27 18:22:25 1.49
-+++ gcc/config/avr/avr.md 2005/03/06 21:50:36 1.50
-@@ -30,6 +30,8 @@
- ;; j Branch condition.
- ;; k Reverse branch condition.
- ;; o Displacement for (mem (plus (reg) (const_int))) operands.
-+;; p POST_INC or PRE_DEC address as a pointer (X, Y, Z)
-+;; r POST_INC or PRE_DEC address as a register (r26, r28, r30)
- ;; ~ Output 'r' if not AVR_MEGA.
-
- ;; UNSPEC usage:
diff --git a/devel/avr-gcc-3/files/patch-aa b/devel/avr-gcc-3/files/patch-aa
deleted file mode 100644
index 8fe15263247a..000000000000
--- a/devel/avr-gcc-3/files/patch-aa
+++ /dev/null
@@ -1,12 +0,0 @@
---- libiberty/Makefile.in.orig Wed Jan 14 22:27:28 2004
-+++ libiberty/Makefile.in Wed Apr 21 11:14:30 2004
-@@ -267,7 +267,8 @@
- @MAINT@ echo stamp > stamp-functions
-
- INSTALL_DEST = @INSTALL_DEST@
--install: install_to_$(INSTALL_DEST) install-subdir
-+#install: install_to_$(INSTALL_DEST) install-subdir
-+install:
-
- install_to_libdir: all
- ${mkinstalldirs} $(DESTDIR)$(libdir)$(MULTISUBDIR)
diff --git a/devel/avr-gcc-3/files/patch-ab b/devel/avr-gcc-3/files/patch-ab
deleted file mode 100644
index 9ebf9649b5e2..000000000000
--- a/devel/avr-gcc-3/files/patch-ab
+++ /dev/null
@@ -1,302 +0,0 @@
---- Makefile.in.orig Wed Jan 14 21:09:37 2004
-+++ Makefile.in Wed Apr 21 12:27:58 2004
-@@ -595,23 +595,7 @@
- maybe-configure-libtermcap \
- maybe-configure-utils
- .PHONY: configure-target
--configure-target: \
-- maybe-configure-target-libstdc++-v3 \
-- maybe-configure-target-newlib \
-- maybe-configure-target-libf2c \
-- maybe-configure-target-libobjc \
-- maybe-configure-target-libtermcap \
-- maybe-configure-target-winsup \
-- maybe-configure-target-libgloss \
-- maybe-configure-target-libiberty \
-- maybe-configure-target-gperf \
-- maybe-configure-target-examples \
-- maybe-configure-target-libffi \
-- maybe-configure-target-libjava \
-- maybe-configure-target-zlib \
-- maybe-configure-target-boehm-gc \
-- maybe-configure-target-qthreads \
-- maybe-configure-target-rda
-+configure-target:
-
- # The target built for a native build.
- .PHONY: all.normal
-@@ -684,23 +668,7 @@
- maybe-all-libtermcap \
- maybe-all-utils
- .PHONY: all-target
--all-target: \
-- maybe-all-target-libstdc++-v3 \
-- maybe-all-target-newlib \
-- maybe-all-target-libf2c \
-- maybe-all-target-libobjc \
-- maybe-all-target-libtermcap \
-- maybe-all-target-winsup \
-- maybe-all-target-libgloss \
-- maybe-all-target-libiberty \
-- maybe-all-target-gperf \
-- maybe-all-target-examples \
-- maybe-all-target-libffi \
-- maybe-all-target-libjava \
-- maybe-all-target-zlib \
-- maybe-all-target-boehm-gc \
-- maybe-all-target-qthreads \
-- maybe-all-target-rda
-+all-target:
-
- # Do a target for all the subdirectories. A ``make do-X'' will do a
- # ``make X'' in all subdirectories (because, in general, there is a
-@@ -778,23 +746,7 @@
- maybe-info-utils
-
- .PHONY: info-target
--info-target: \
-- maybe-info-target-libstdc++-v3 \
-- maybe-info-target-newlib \
-- maybe-info-target-libf2c \
-- maybe-info-target-libobjc \
-- maybe-info-target-libtermcap \
-- maybe-info-target-winsup \
-- maybe-info-target-libgloss \
-- maybe-info-target-libiberty \
-- maybe-info-target-gperf \
-- maybe-info-target-examples \
-- maybe-info-target-libffi \
-- maybe-info-target-libjava \
-- maybe-info-target-zlib \
-- maybe-info-target-boehm-gc \
-- maybe-info-target-qthreads \
-- maybe-info-target-rda
-+info-target:
-
- # GCC, the eternal special case
- .PHONY: maybe-info-gcc info-gcc
-@@ -2654,23 +2606,7 @@
- maybe-dvi-utils
-
- .PHONY: dvi-target
--dvi-target: \
-- maybe-dvi-target-libstdc++-v3 \
-- maybe-dvi-target-newlib \
-- maybe-dvi-target-libf2c \
-- maybe-dvi-target-libobjc \
-- maybe-dvi-target-libtermcap \
-- maybe-dvi-target-winsup \
-- maybe-dvi-target-libgloss \
-- maybe-dvi-target-libiberty \
-- maybe-dvi-target-gperf \
-- maybe-dvi-target-examples \
-- maybe-dvi-target-libffi \
-- maybe-dvi-target-libjava \
-- maybe-dvi-target-zlib \
-- maybe-dvi-target-boehm-gc \
-- maybe-dvi-target-qthreads \
-- maybe-dvi-target-rda
-+dvi-target:
-
- # GCC, the eternal special case
- .PHONY: maybe-dvi-gcc dvi-gcc
-@@ -4530,23 +4466,7 @@
- maybe-TAGS-utils
-
- .PHONY: TAGS-target
--TAGS-target: \
-- maybe-TAGS-target-libstdc++-v3 \
-- maybe-TAGS-target-newlib \
-- maybe-TAGS-target-libf2c \
-- maybe-TAGS-target-libobjc \
-- maybe-TAGS-target-libtermcap \
-- maybe-TAGS-target-winsup \
-- maybe-TAGS-target-libgloss \
-- maybe-TAGS-target-libiberty \
-- maybe-TAGS-target-gperf \
-- maybe-TAGS-target-examples \
-- maybe-TAGS-target-libffi \
-- maybe-TAGS-target-libjava \
-- maybe-TAGS-target-zlib \
-- maybe-TAGS-target-boehm-gc \
-- maybe-TAGS-target-qthreads \
-- maybe-TAGS-target-rda
-+TAGS-target:
-
- # GCC, the eternal special case
- .PHONY: maybe-TAGS-gcc TAGS-gcc
-@@ -6406,23 +6326,7 @@
- maybe-install-info-utils
-
- .PHONY: install-info-target
--install-info-target: \
-- maybe-install-info-target-libstdc++-v3 \
-- maybe-install-info-target-newlib \
-- maybe-install-info-target-libf2c \
-- maybe-install-info-target-libobjc \
-- maybe-install-info-target-libtermcap \
-- maybe-install-info-target-winsup \
-- maybe-install-info-target-libgloss \
-- maybe-install-info-target-libiberty \
-- maybe-install-info-target-gperf \
-- maybe-install-info-target-examples \
-- maybe-install-info-target-libffi \
-- maybe-install-info-target-libjava \
-- maybe-install-info-target-zlib \
-- maybe-install-info-target-boehm-gc \
-- maybe-install-info-target-qthreads \
-- maybe-install-info-target-rda
-+install-info-target:
-
- # GCC, the eternal special case
- .PHONY: maybe-install-info-gcc install-info-gcc
-@@ -8363,23 +8267,7 @@
- maybe-installcheck-utils
-
- .PHONY: installcheck-target
--installcheck-target: \
-- maybe-installcheck-target-libstdc++-v3 \
-- maybe-installcheck-target-newlib \
-- maybe-installcheck-target-libf2c \
-- maybe-installcheck-target-libobjc \
-- maybe-installcheck-target-libtermcap \
-- maybe-installcheck-target-winsup \
-- maybe-installcheck-target-libgloss \
-- maybe-installcheck-target-libiberty \
-- maybe-installcheck-target-gperf \
-- maybe-installcheck-target-examples \
-- maybe-installcheck-target-libffi \
-- maybe-installcheck-target-libjava \
-- maybe-installcheck-target-zlib \
-- maybe-installcheck-target-boehm-gc \
-- maybe-installcheck-target-qthreads \
-- maybe-installcheck-target-rda
-+installcheck-target:
-
- # GCC, the eternal special case
- .PHONY: maybe-installcheck-gcc installcheck-gcc
-@@ -10239,23 +10127,7 @@
- maybe-mostlyclean-utils
-
- .PHONY: mostlyclean-target
--mostlyclean-target: \
-- maybe-mostlyclean-target-libstdc++-v3 \
-- maybe-mostlyclean-target-newlib \
-- maybe-mostlyclean-target-libf2c \
-- maybe-mostlyclean-target-libobjc \
-- maybe-mostlyclean-target-libtermcap \
-- maybe-mostlyclean-target-winsup \
-- maybe-mostlyclean-target-libgloss \
-- maybe-mostlyclean-target-libiberty \
-- maybe-mostlyclean-target-gperf \
-- maybe-mostlyclean-target-examples \
-- maybe-mostlyclean-target-libffi \
-- maybe-mostlyclean-target-libjava \
-- maybe-mostlyclean-target-zlib \
-- maybe-mostlyclean-target-boehm-gc \
-- maybe-mostlyclean-target-qthreads \
-- maybe-mostlyclean-target-rda
-+mostlyclean-target:
-
- # GCC, the eternal special case
- .PHONY: maybe-mostlyclean-gcc mostlyclean-gcc
-@@ -11992,23 +11864,7 @@
- maybe-clean-utils
-
- .PHONY: clean-target
--clean-target: \
-- maybe-clean-target-libstdc++-v3 \
-- maybe-clean-target-newlib \
-- maybe-clean-target-libf2c \
-- maybe-clean-target-libobjc \
-- maybe-clean-target-libtermcap \
-- maybe-clean-target-winsup \
-- maybe-clean-target-libgloss \
-- maybe-clean-target-libiberty \
-- maybe-clean-target-gperf \
-- maybe-clean-target-examples \
-- maybe-clean-target-libffi \
-- maybe-clean-target-libjava \
-- maybe-clean-target-zlib \
-- maybe-clean-target-boehm-gc \
-- maybe-clean-target-qthreads \
-- maybe-clean-target-rda
-+clean-target:
-
- # GCC, the eternal special case
- .PHONY: maybe-clean-gcc clean-gcc
-@@ -13759,23 +13615,7 @@
- maybe-distclean-utils
-
- .PHONY: distclean-target
--distclean-target: \
-- maybe-distclean-target-libstdc++-v3 \
-- maybe-distclean-target-newlib \
-- maybe-distclean-target-libf2c \
-- maybe-distclean-target-libobjc \
-- maybe-distclean-target-libtermcap \
-- maybe-distclean-target-winsup \
-- maybe-distclean-target-libgloss \
-- maybe-distclean-target-libiberty \
-- maybe-distclean-target-gperf \
-- maybe-distclean-target-examples \
-- maybe-distclean-target-libffi \
-- maybe-distclean-target-libjava \
-- maybe-distclean-target-zlib \
-- maybe-distclean-target-boehm-gc \
-- maybe-distclean-target-qthreads \
-- maybe-distclean-target-rda
-+distclean-target:
-
- # GCC, the eternal special case
- .PHONY: maybe-distclean-gcc distclean-gcc
-@@ -15526,23 +15366,7 @@
- maybe-maintainer-clean-utils
-
- .PHONY: maintainer-clean-target
--maintainer-clean-target: \
-- maybe-maintainer-clean-target-libstdc++-v3 \
-- maybe-maintainer-clean-target-newlib \
-- maybe-maintainer-clean-target-libf2c \
-- maybe-maintainer-clean-target-libobjc \
-- maybe-maintainer-clean-target-libtermcap \
-- maybe-maintainer-clean-target-winsup \
-- maybe-maintainer-clean-target-libgloss \
-- maybe-maintainer-clean-target-libiberty \
-- maybe-maintainer-clean-target-gperf \
-- maybe-maintainer-clean-target-examples \
-- maybe-maintainer-clean-target-libffi \
-- maybe-maintainer-clean-target-libjava \
-- maybe-maintainer-clean-target-zlib \
-- maybe-maintainer-clean-target-boehm-gc \
-- maybe-maintainer-clean-target-qthreads \
-- maybe-maintainer-clean-target-rda
-+maintainer-clean-target:
-
- # GCC, the eternal special case
- .PHONY: maybe-maintainer-clean-gcc maintainer-clean-gcc
-@@ -17526,23 +17350,7 @@
- maybe-install-utils
-
- .PHONY: install-target
--install-target: \
-- maybe-install-target-libstdc++-v3 \
-- maybe-install-target-newlib \
-- maybe-install-target-libf2c \
-- maybe-install-target-libobjc \
-- maybe-install-target-libtermcap \
-- maybe-install-target-winsup \
-- maybe-install-target-libgloss \
-- maybe-install-target-libiberty \
-- maybe-install-target-gperf \
-- maybe-install-target-examples \
-- maybe-install-target-libffi \
-- maybe-install-target-libjava \
-- maybe-install-target-zlib \
-- maybe-install-target-boehm-gc \
-- maybe-install-target-qthreads \
-- maybe-install-target-rda
-+install-target:
-
- uninstall:
- @echo "the uninstall target is not supported in this tree"
diff --git a/devel/avr-gcc-3/files/patch-ac b/devel/avr-gcc-3/files/patch-ac
deleted file mode 100644
index a1826c113722..000000000000
--- a/devel/avr-gcc-3/files/patch-ac
+++ /dev/null
@@ -1,12 +0,0 @@
---- configure.in.orig Mon Mar 1 20:27:33 2004
-+++ configure.in Wed Apr 21 11:14:31 2004
-@@ -428,6 +428,9 @@
- arm-*-pe*)
- noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
- ;;
-+ avr-*-*)
-+ noconfigdirs="$noconfigdirs ${libstdcxx_version} target-libglosstarget-libiberty"
-+ ;;
- arm-*-oabi*)
- noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
- ;;
diff --git a/devel/avr-gcc-3/files/patch-ad b/devel/avr-gcc-3/files/patch-ad
deleted file mode 100644
index 05c5c3a7407f..000000000000
--- a/devel/avr-gcc-3/files/patch-ad
+++ /dev/null
@@ -1,12 +0,0 @@
---- config.guess.orig Sun Feb 22 15:44:23 2004
-+++ config.guess Wed Apr 21 15:10:25 2004
-@@ -792,6 +792,9 @@
- #endif
- EOF
- eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
-+ if [ ".$UNAME_MACHINE" = ".amd64" ] ; then
-+ UNAME_MACHINE=x86_64
-+ fi
- # GNU/KFreeBSD systems have a "k" prefix to indicate we are using
- # FreeBSD's kernel, but not the complete OS.
- case ${LIBC} in gnu) kernel_only='k' ;; esac
diff --git a/devel/avr-gcc-3/files/patch-binary-constants b/devel/avr-gcc-3/files/patch-binary-constants
deleted file mode 100644
index 57dd9abe8d75..000000000000
--- a/devel/avr-gcc-3/files/patch-binary-constants
+++ /dev/null
@@ -1,120 +0,0 @@
---- gcc/cpplib.h.orig Mon Feb 9 13:23:51 2004
-+++ gcc/cpplib.h Thu Apr 29 12:24:10 2004
-@@ -630,6 +630,7 @@
- #define CPP_N_DECIMAL 0x0100
- #define CPP_N_HEX 0x0200
- #define CPP_N_OCTAL 0x0400
-+#define CPP_N_BINARY 0x0800
-
- #define CPP_N_UNSIGNED 0x1000 /* Properties. */
- #define CPP_N_IMAGINARY 0x2000
---- gcc/cppexp.c.orig Thu Feb 12 00:52:56 2004
-+++ gcc/cppexp.c Thu Apr 29 12:29:40 2004
-@@ -22,6 +22,9 @@
- #include "system.h"
- #include "cpplib.h"
- #include "cpphash.h"
-+#include "flags.h"
-+#include "coretypes.h"
-+#include "toplev.h"
-
- #define PART_PRECISION (sizeof (cpp_num_part) * CHAR_BIT)
- #define HALF_MASK (~(cpp_num_part) 0 >> (PART_PRECISION / 2))
-@@ -75,6 +78,9 @@
- #define SYNTAX_ERROR2(msgid, arg) \
- do { cpp_error (pfile, CPP_DL_ERROR, msgid, arg); goto syntax_error; } \
- while(0)
-+#define SYNTAX_ERROR3(msgid, arg1, arg2) \
-+ do { cpp_error (pfile, CPP_DL_ERROR, msgid, arg1, arg2); goto syntax_error; } \
-+ while(0)
-
- /* Subroutine of cpp_classify_number. S points to a float suffix of
- length LEN, possibly zero. Returns 0 for an invalid suffix, or a
-@@ -171,6 +177,11 @@
- radix = 16;
- str++;
- }
-+ else if ((*str == 'b' || *str == 'B') && (str[1] == '0' || str[1] == '1'))
-+ {
-+ radix = 2;
-+ str++;
-+ }
- }
-
- /* Now scan for a well-formed integer or float. */
-@@ -209,7 +220,8 @@
- radix = 10;
-
- if (max_digit >= radix)
-- SYNTAX_ERROR2 ("invalid digit \"%c\" in octal constant", '0' + max_digit);
-+ SYNTAX_ERROR3 ("invalid digit \"%c\" in %s constant", '0' + max_digit,
-+ radix == 2? "binary": "octal");
-
- if (float_flag != NOT_FLOAT)
- {
-@@ -288,11 +300,16 @@
- if ((result & CPP_N_IMAGINARY) && CPP_PEDANTIC (pfile))
- cpp_error (pfile, CPP_DL_PEDWARN,
- "imaginary constants are a GCC extension");
-+ if (radix == 2 && CPP_PEDANTIC (pfile))
-+ cpp_error (pfile, CPP_DL_PEDWARN,
-+ "binary constants are a GCC extension");
-
- if (radix == 10)
- result |= CPP_N_DECIMAL;
- else if (radix == 16)
- result |= CPP_N_HEX;
-+ else if (radix == 2)
-+ result |= CPP_N_BINARY;
- else
- result |= CPP_N_OCTAL;
-
-@@ -341,6 +358,11 @@
- else if ((type & CPP_N_RADIX) == CPP_N_HEX)
- {
- base = 16;
-+ p += 2;
-+ }
-+ else if ((type & CPP_N_RADIX) == CPP_N_BINARY)
-+ {
-+ base = 2;
- p += 2;
- }
-
---- gcc/doc/extend.texi.orig Wed Jun 9 20:31:59 2004
-+++ gcc/doc/extend.texi Wed Jul 7 20:51:58 2004
-@@ -475,6 +475,7 @@
- * Pragmas:: Pragmas accepted by GCC.
- * Unnamed Fields:: Unnamed struct/union fields within structs/unions.
- * Thread-Local:: Per-thread variables.
-+* Binary constants:: Binary constants using the `0b' prefix.
- @end menu
-
- @node Statement Exprs
-@@ -7648,6 +7649,26 @@
- Non-@code{static} members shall not be @code{__thread}.
- @end quotation
- @end itemize
-+
-+@node Binary constants
-+@section Binary constants using the `0b' prefix
-+@cindex Binary constants using the `0b' prefix
-+
-+@emph{Note:} This is currently a private extension of AVR-GCC.
-+
-+Integer constants can be written as binary constants, consisting of a
-+sequence of `0' and `1' digits, prefixed by `0b'. This is
-+particularly useful in environments that operate a lot on the
-+bit-level (like microcontrollers).
-+
-+The following statements are identical:
-+
-+@smallexample
-+i = 42;
-+i = 0x2a;
-+i = 052;
-+i = 0b101010;
-+@end smallexample
-
- @node C++ Extensions
- @chapter Extensions to the C++ Language
diff --git a/devel/avr-gcc-3/files/patch-dwarfdebug b/devel/avr-gcc-3/files/patch-dwarfdebug
deleted file mode 100644
index 4663f984f160..000000000000
--- a/devel/avr-gcc-3/files/patch-dwarfdebug
+++ /dev/null
@@ -1,8 +0,0 @@
---- gcc/config/avr/avr.h.orig Tue Mar 9 03:59:55 2004
-+++ gcc/config/avr/avr.h Sun Jul 4 21:46:12 2004
-@@ -2479,4 +2479,5 @@
- /* zero register r1 */
- #define ZERO_REGNO 1
-
-+#define DWARF2_DEBUGGING_INFO 1
- #define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
diff --git a/devel/avr-gcc-3/files/patch-mega08-tinyx13-can128 b/devel/avr-gcc-3/files/patch-mega08-tinyx13-can128
deleted file mode 100644
index 9719ccb90695..000000000000
--- a/devel/avr-gcc-3/files/patch-mega08-tinyx13-can128
+++ /dev/null
@@ -1,124 +0,0 @@
---- gcc/config/avr/avr.c.orig 2004-09-27 19:13:55.000000000 -0600
-+++ gcc/config/avr/avr.c 2005-02-01 14:58:40.465250000 -0700
-@@ -175,6 +175,9 @@
- { "at90c8534", 2, "__AVR_AT90C8534__" },
- { "at90s8535", 2, "__AVR_AT90S8535__" },
- { "at86rf401", 2, "__AVR_AT86RF401__" },
-+ /* Classic + MOVW, <= 8K. */
-+ { "attiny13", 2, "__AVR_ATtiny13__" },
-+ { "attiny2313", 2, "__AVR_ATtiny2313__" },
- /* Classic, > 8K. */
- { "avr3", 3, NULL },
- { "atmega103", 3, "__AVR_ATmega103__" },
-@@ -185,6 +188,8 @@
- /* Enhanced, <= 8K. */
- { "avr4", 4, NULL },
- { "atmega8", 4, "__AVR_ATmega8__" },
-+ { "atmega48", 4, "__AVR_ATmega48__" },
-+ { "atmega88", 4, "__AVR_ATmega88__" },
- { "atmega8515", 4, "__AVR_ATmega8515__" },
- { "atmega8535", 4, "__AVR_ATmega8535__" },
- /* Enhanced, > 8K. */
-@@ -193,11 +198,13 @@
- { "atmega161", 5, "__AVR_ATmega161__" },
- { "atmega162", 5, "__AVR_ATmega162__" },
- { "atmega163", 5, "__AVR_ATmega163__" },
-+ { "atmega168", 5, "__AVR_ATmega168__" },
- { "atmega169", 5, "__AVR_ATmega169__" },
- { "atmega32", 5, "__AVR_ATmega32__" },
- { "atmega323", 5, "__AVR_ATmega323__" },
- { "atmega64", 5, "__AVR_ATmega64__" },
- { "atmega128", 5, "__AVR_ATmega128__" },
-+ { "at90can128", 5, "__AVR_AT90CAN128__" },
- { "at94k", 5, "__AVR_AT94K__" },
- /* Assembler only. */
- { "avr1", 1, NULL },
-
---- gcc/config/avr/avr.h.orig 2004-03-08 19:59:55.000000000 -0700
-+++ gcc/config/avr/avr.h 2005-02-01 14:58:40.480875000 -0700
-@@ -2351,12 +2351,12 @@
- Do not define this macro if it does not need to do anything. */
-
- #define LINK_SPEC " %{!mmcu*:-m avr2}\
--%{mmcu=at90s1200|mmcu=attiny1*|mmcu=attiny28:-m avr1} \
--%{mmcu=attiny22|mmcu=attiny26|mmcu=at90s2*|mmcu=at90s4*|mmcu=at90s8*|mmcu=at90c8*|mmcu=at86rf401:-m avr2}\
-+%{mmcu=at90s1200|mmcu=attiny11|mmcu=attiny12|mmcu=attiny15|mmcu=attiny28:-m avr1} \
-+%{mmcu=attiny22|mmcu=attiny26|mmcu=at90s2*|mmcu=at90s4*|mmcu=at90s8*|mmcu=at90c8*|mmcu=at86rf401|mmcu=attiny13|mmcu=attiny2313:-m avr2}\
- %{mmcu=atmega103|mmcu=atmega603|mmcu=at43*|mmcu=at76*:-m avr3}\
--%{mmcu=atmega8*:-m avr4}\
--%{mmcu=atmega16*|mmcu=atmega32*|mmcu=atmega64|mmcu=atmega128|mmcu=at94k:-m avr5}\
--%{mmcu=atmega64|mmcu=atmega128|mmcu=atmega162|mmcu=atmega169: -Tdata 0x800100} "
-+%{mmcu=atmega8*|mmcu=atmega48:-m avr4}\
-+%{mmcu=atmega16*|mmcu=atmega32*|mmcu=atmega64|mmcu=atmega128|mmcu=at90can128|mmcu=at94k:-m avr5}\
-+%{mmcu=atmega48|mmcu=atmega88|mmcu=atmega64|mmcu=atmega128|mmcu=at90can128|mmcu=at90can128|mmcu=atmega162|mmcu=atmega168|mmcu=atmega169: -Tdata 0x800100} "
-
- /* A C string constant that tells the GCC driver program options to
- pass to the linker. It can also specify how to translate options
-@@ -2365,7 +2365,7 @@
- Do not define this macro if it does not need to do anything. */
-
- #define LIB_SPEC \
-- "%{!mmcu=at90s1*:%{!mmcu=attiny1*:%{!mmcu=attiny28: -lc }}}"
-+ "%{!mmcu=at90s1*:%{!mmcu=attiny11:%{!mmcu=attiny12:%{!mmcu=attiny15:%{!mmcu=attiny28: -lc }}}}}"
- /* Another C string constant used much like `LINK_SPEC'. The
- difference between the two is that `LIB_SPEC' is used at the end
- of the command given to the linker.
-@@ -2377,7 +2377,7 @@
- /* No libstdc++ for now. Empty string doesn't work. */
-
- #define LIBGCC_SPEC \
-- "%{!mmcu=at90s1*:%{!mmcu=attiny1*:%{!mmcu=attiny28: -lgcc }}}"
-+ "%{!mmcu=at90s1*:%{!mmcu=attiny11:%{!mmcu=attiny12:%{!mmcu=attiny15:%{!mmcu=attiny28: -lgcc }}}}}"
- /* Another C string constant that tells the GCC driver program how
- and when to place a reference to `libgcc.a' into the linker
- command line. This constant is placed both before and after the
-@@ -2421,23 +2421,29 @@
- %{mmcu=at90c8534:crtc8534.o%s} \
- %{mmcu=at90s8535:crts8535.o%s} \
- %{mmcu=at86rf401:crt86401.o%s} \
-+%{mmcu=attiny13:crttn13.o%s} \
-+%{mmcu=attiny2313:crttn2313.o%s} \
- %{mmcu=atmega103|mmcu=avr3:crtm103.o%s} \
- %{mmcu=atmega603:crtm603.o%s} \
- %{mmcu=at43usb320:crt43320.o%s} \
- %{mmcu=at43usb355:crt43355.o%s} \
- %{mmcu=at76c711:crt76711.o%s} \
- %{mmcu=atmega8|mmcu=avr4:crtm8.o%s} \
-+%{mmcu=atmega48:crtm48.o%s} \
-+%{mmcu=atmega88:crtm88.o%s} \
- %{mmcu=atmega8515:crtm8515.o%s} \
- %{mmcu=atmega8535:crtm8535.o%s} \
- %{mmcu=atmega16:crtm16.o%s} \
- %{mmcu=atmega161|mmcu=avr5:crtm161.o%s} \
- %{mmcu=atmega162:crtm162.o%s} \
- %{mmcu=atmega163:crtm163.o%s} \
-+%{mmcu=atmega168:crtm168.o%s} \
- %{mmcu=atmega169:crtm169.o%s} \
- %{mmcu=atmega32:crtm32.o%s} \
- %{mmcu=atmega323:crtm323.o%s} \
- %{mmcu=atmega64:crtm64.o%s} \
- %{mmcu=atmega128:crtm128.o%s} \
-+%{mmcu=at90can128:crtcan128.o%s} \
- %{mmcu=at94k:crtat94k.o%s}"
-
- #define EXTRA_SPECS {"crt_binutils", CRT_BINUTILS_SPECS},
---- gcc/config/avr/t-avr.orig 2003-02-27 14:45:33.000000000 -0700
-+++ gcc/config/avr/t-avr 2005-02-01 14:58:40.480875000 -0700
-@@ -50,13 +50,14 @@
- mmcu?avr3=mmcu?at43usb320 mmcu?avr3=mmcu?at43usb355 \
- mmcu?avr3=mmcu?at76c711 \
- mmcu?avr4=mmcu?atmega8515 mmcu?avr4=mmcu?atmega8535 \
-- mmcu?avr4=mmcu?atmega8 \
-+ mmcu?avr4=mmcu?atmega8 mmcu?avr4=mmcu?atmega48 \
-+ mmcu?avr4=mmcu?atmega88 \
- mmcu?avr5=mmcu?atmega161 mmcu?avr5=mmcu?atmega162 \
- mmcu?avr5=mmcu?atmega163 mmcu?avr5=mmcu?atmega169 \
-- mmcu?avr5=mmcu?atmega16 \
-+ mmcu?avr5=mmcu?atmega16 mmcu?avr5=mmcu?atmega168 \
- mmcu?avr5=mmcu?atmega323 mmcu?avr5=mmcu?atmega32 \
- mmcu?avr5=mmcu?atmega64 mmcu?avr5=mmcu?atmega128 \
-- mmcu?avr5=mmcu?at94k
-+ mmcu?avr5=mmcu?at94k mmcu?avr5=mmcu?at90can128
-
- MULTILIB_EXCEPTIONS =
-
diff --git a/devel/avr-gcc-3/files/patch-mega325x-mega645x b/devel/avr-gcc-3/files/patch-mega325x-mega645x
deleted file mode 100644
index 16f7b5f27f64..000000000000
--- a/devel/avr-gcc-3/files/patch-mega325x-mega645x
+++ /dev/null
@@ -1,58 +0,0 @@
-2005-03-04 Eric B. Weddington <ericw@evcohs.com>
-
- * gcc/config/avr/avr.c (avr_mcu_types): Add entries for atmega325,
- atmega3250, atmega645, atmega6450.
- * gcc/config/avr/avr.h (LINK_SPEC): Ditto.
- (CRT_BINUTILS_SPECS): Ditto.
- * gcc/config/avr/t-avr (MULTILIB_MATCHES): Ditto.
-
---- gcc/config/avr/avr.c.old 2005-02-10 17:36:47.921875000 -0700
-+++ gcc/config/avr/avr.c 2005-03-04 09:35:26.633875000 -0700
-@@ -202,7 +202,11 @@
- { "atmega169", 5, "__AVR_ATmega169__" },
- { "atmega32", 5, "__AVR_ATmega32__" },
- { "atmega323", 5, "__AVR_ATmega323__" },
-+ { "atmega325", 5, "__AVR_ATmega325__" },
-+ { "atmega3250", 5, "__AVR_ATmega3250__" },
- { "atmega64", 5, "__AVR_ATmega64__" },
-+ { "atmega645", 5, "__AVR_ATmega645__" },
-+ { "atmega6450", 5, "__AVR_ATmega6450__" },
- { "atmega128", 5, "__AVR_ATmega128__" },
- { "at90can128", 5, "__AVR_AT90CAN128__" },
- { "at94k", 5, "__AVR_AT94K__" },
---- gcc/config/avr/avr.h.old 2005-02-10 17:36:48.015625000 -0700
-+++ gcc/config/avr/avr.h 2005-03-04 09:44:23.118250000 -0700
-@@ -2355,8 +2355,8 @@
- %{mmcu=attiny22|mmcu=attiny26|mmcu=at90s2*|mmcu=at90s4*|mmcu=at90s8*|mmcu=at90c8*|mmcu=at86rf401|mmcu=attiny13|mmcu=attiny2313:-m avr2}\
- %{mmcu=atmega103|mmcu=atmega603|mmcu=at43*|mmcu=at76*:-m avr3}\
- %{mmcu=atmega8*|mmcu=atmega48:-m avr4}\
--%{mmcu=atmega16*|mmcu=atmega32*|mmcu=atmega64|mmcu=atmega128|mmcu=at90can128|mmcu=at94k:-m avr5}\
--%{mmcu=atmega48|mmcu=atmega88|mmcu=atmega64|mmcu=atmega128|mmcu=at90can128|mmcu=at90can128|mmcu=atmega162|mmcu=atmega168|mmcu=atmega169: -Tdata 0x800100} "
-+%{mmcu=atmega16*|mmcu=atmega32*|mmcu=atmega64*|mmcu=atmega128|mmcu=at90can128|mmcu=at94k:-m avr5}\
-+%{mmcu=atmega325|mmcu=atmega3250|mmcu=atmega48|mmcu=atmega88|mmcu=atmega64|mmcu=atmega645|mmcu=atmega6450|mmcu=atmega128|mmcu=at90can128|mmcu=at90can128|mmcu=atmega162|mmcu=atmega168|mmcu=atmega169: -Tdata 0x800100} "
-
- /* A C string constant that tells the GCC driver program options to
- pass to the linker. It can also specify how to translate options
-@@ -2441,7 +2441,11 @@
- %{mmcu=atmega169:crtm169.o%s} \
- %{mmcu=atmega32:crtm32.o%s} \
- %{mmcu=atmega323:crtm323.o%s} \
-+%{mmcu=atmega325:crtm325.o%s} \
-+%{mmcu=atmega3250:crtm3250.o%s} \
- %{mmcu=atmega64:crtm64.o%s} \
-+%{mmcu=atmega645:crtm645.o%s} \
-+%{mmcu=atmega6450:crtm6450.o%s} \
- %{mmcu=atmega128:crtm128.o%s} \
- %{mmcu=at90can128:crtcan128.o%s} \
- %{mmcu=at94k:crtat94k.o%s}"
---- gcc/config/avr/t-avr.old 2005-02-10 17:36:48.031250000 -0700
-+++ gcc/config/avr/t-avr 2005-03-04 09:56:43.790125000 -0700
-@@ -56,6 +56,8 @@
- mmcu?avr5=mmcu?atmega163 mmcu?avr5=mmcu?atmega169 \
- mmcu?avr5=mmcu?atmega16 mmcu?avr5=mmcu?atmega168 \
- mmcu?avr5=mmcu?atmega323 mmcu?avr5=mmcu?atmega32 \
-+ mmcu?avr5=mmcu?atmega325 mmcu?avr5=mmcu?atmega3250 \
-+ mmcu?avr5=mmcu?atmega645 mmcu?avr5=mmcu?atmega6450 \
- mmcu?avr5=mmcu?atmega64 mmcu?avr5=mmcu?atmega128 \
- mmcu?avr5=mmcu?at94k mmcu?avr5=mmcu?at90can128
-