pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/cross/avr-gcc Update to 4.4.1. Upstream changelog is o...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9830f888de64
branches:  trunk
changeset: 398251:9830f888de64
user:      hasso <hasso%pkgsrc.org@localhost>
date:      Thu Aug 27 15:29:37 2009 +0000

description:
Update to 4.4.1. Upstream changelog is obviously too massive to paste it
here. All hard update work done by Simon 'corecode' Schubert and minor
modifications by me.

diffstat:

 cross/avr-gcc/Makefile                  |   54 +++--
 cross/avr-gcc/PLIST                     |   98 +++++-----
 cross/avr-gcc/distinfo                  |   20 +-
 cross/avr-gcc/patches/patch-16bitassign |  302 --------------------------------
 cross/avr-gcc/patches/patch-aa          |   16 +-
 cross/avr-gcc/patches/patch-ab          |  123 +-----------
 cross/avr-gcc/patches/patch-ac          |   30 ---
 7 files changed, 108 insertions(+), 535 deletions(-)

diffs (truncated from 717 to 300 lines):

diff -r 4e3a9060d574 -r 9830f888de64 cross/avr-gcc/Makefile
--- a/cross/avr-gcc/Makefile    Thu Aug 27 15:26:41 2009 +0000
+++ b/cross/avr-gcc/Makefile    Thu Aug 27 15:29:37 2009 +0000
@@ -1,44 +1,54 @@
-# $NetBSD: Makefile,v 1.20 2006/12/07 21:12:17 joerg Exp $
+# $NetBSD: Makefile,v 1.21 2009/08/27 15:29:37 hasso Exp $
 
-DISTNAME=              gcc-3.3.2003.05.11
-PKGNAME=               avr-gcc-3.3.2003.05.11
-PKGREVISION=           2
+DISTNAME=              gcc-4.4.1
+PKGNAME=               avr-gcc-4.4.1
 CATEGORIES=            cross
-MASTER_SITES=          http://people.freebsd.org/~joerg/
+MASTER_SITES=          ${MASTER_SITE_GNU:=gcc/releases/${DISTNAME}/}
 EXTRACT_SUFX=          .tar.bz2
-DISTFILES=             gcc-core+g++-3.3.2003.05.11${EXTRACT_SUFX} \
-                       ${MAN_AUX}
+DISTFILES=             ${DISTNAME:S/-/-core-/}${EXTRACT_SUFX} \
+                       ${DISTNAME:S/-/-g++-/}${EXTRACT_SUFX}
 
 MAINTAINER=            pkgsrc-users%NetBSD.org@localhost
-COMMENT=               GNU gcc-3.3 for Atmel AVR 8-bit RISC microcontrollers
+COMMENT=               GNU gcc-4.4 for Atmel AVR 8-bit RISC microcontrollers
 
 DEPENDS+=              avr-binutils-[0-9]*:../../cross/avr-binutils
 BUILD_DEPENDS+=                autoconf-[0-9]*:../../devel/autoconf
 BUILD_DEPENDS+=                bison-[0-9]*:../../devel/bison
 
-EXTRACT_ONLY=          gcc-core+g++-3.3.2003.05.11${EXTRACT_SUFX}
-
-# Unfortunately, only some mirrors have it as a .bz2 file, while
-# the original master site still uses .gz.
 GNU_CONFIGURE=         yes
 USE_BZIP2=             yes
 USE_TOOLS+=            bison gmake lex perl tar msgfmt
 USE_PKGLOCALEDIR=      yes
+USE_GNU_CONFIGURE_HOST=        no
 
-CONFIGURE_ARGS+=       --target=avr
-
-MAN_AUX=               gcc-man.2003.05.11.gz
+CONFIGURE_ARGS+=       --target=avr --disable-nls
 
 MAKE_FLAGS+=           LANGUAGES="c c++"
 MAKE_ENV+=             MACHINE_ARCH=avr
 MAKE_ENV+=             SHELL=${CONFIG_SHELL}
+CFLAGS_FOR_BUILD:=     ${CFLAGS}
+MAVE_ENV+=             CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD:Q}
+CXXFLAGS_FOR_BUILD:=   ${CXXFLAGS}
+MAVE_ENV+=             CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD:Q}
+CFLAGS=                        # empty
+CXXFLAGS=              # empty
 
-pre-build:
-               if perl -e 'use 1.10 Pod::Man' >/dev/null 2>/dev/null ; \
-               then : ; \
-               else \
-                       cd ${WRKSRC} ; \
-                       ${TAR} -xvzf ${DISTDIR}/${MAN_AUX} ; \
-               fi
+SUBST_CLASSES+=                sed
+SUBST_FILES.sed=       fixincludes/fixincl.x
+SUBST_SED.sed=         -e 's|@SED@|${TOOLS_PATH.sed}|g'
+SUBST_STAGE.sed=       post-patch
+
+
+do-configure:
+       ${MKDIR} ${WRKDIR}/obj
+       cd ${WRKDIR}/obj; ${SETENV} ${CONFIGURE_ENV} ${CONFIG_SHELL} ${WRKSRC}/configure ${CONFIGURE_ARGS}
 
+do-build:
+       (${_ULIMIT_CMD} cd ${WRKDIR}/obj && ${SETENV} ${MAKE_ENV} ${GMAKE} -j${MAKE_JOBS:U1} )
+
+do-install:
+       cd ${WRKDIR}/obj && ${SETENV} ${MAKE_ENV} ${GMAKE} install
+
+.include "../../devel/gmp/buildlink3.mk"
+.include "../../math/mpfr/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 4e3a9060d574 -r 9830f888de64 cross/avr-gcc/PLIST
--- a/cross/avr-gcc/PLIST       Thu Aug 27 15:26:41 2009 +0000
+++ b/cross/avr-gcc/PLIST       Thu Aug 27 15:29:37 2009 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.3 2009/06/14 17:39:52 joerg Exp $
+@comment $NetBSD: PLIST,v 1.4 2009/08/27 15:29:37 hasso Exp $
 avr/bin/c++
 avr/bin/g++
 avr/bin/gcc
@@ -6,58 +6,56 @@
 bin/avr-cpp
 bin/avr-g++
 bin/avr-gcc
-bin/avr-gcc-3.3
+bin/avr-gcc-4.4.1
 bin/avr-gccbug
-lib/gcc-lib/avr/3.3/avr3/libgcc.a
-lib/gcc-lib/avr/3.3/avr4/libgcc.a
-lib/gcc-lib/avr/3.3/avr5/libgcc.a
-lib/gcc-lib/avr/3.3/cc1
-lib/gcc-lib/avr/3.3/cc1plus
-lib/gcc-lib/avr/3.3/collect2
-lib/gcc-lib/avr/3.3/include/README
-lib/gcc-lib/avr/3.3/include/fixed
-lib/gcc-lib/avr/3.3/include/float.h
-lib/gcc-lib/avr/3.3/include/iso646.h
-lib/gcc-lib/avr/3.3/include/limits.h
-lib/gcc-lib/avr/3.3/include/stdarg.h
-lib/gcc-lib/avr/3.3/include/stdbool.h
-lib/gcc-lib/avr/3.3/include/stddef.h
-lib/gcc-lib/avr/3.3/include/syslimits.h
-lib/gcc-lib/avr/3.3/include/unwind.h
-lib/gcc-lib/avr/3.3/include/varargs.h
-lib/gcc-lib/avr/3.3/install-tools/fix-header
-lib/gcc-lib/avr/3.3/install-tools/fixinc.sh
-lib/gcc-lib/avr/3.3/install-tools/fixincl
-lib/gcc-lib/avr/3.3/install-tools/fixproto
-lib/gcc-lib/avr/3.3/install-tools/gsyslimits.h
-lib/gcc-lib/avr/3.3/install-tools/include/README
-lib/gcc-lib/avr/3.3/install-tools/include/float.h
-lib/gcc-lib/avr/3.3/install-tools/include/iso646.h
-lib/gcc-lib/avr/3.3/install-tools/include/limits.h
-lib/gcc-lib/avr/3.3/install-tools/include/stdarg.h
-lib/gcc-lib/avr/3.3/install-tools/include/stdbool.h
-lib/gcc-lib/avr/3.3/install-tools/include/stddef.h
-lib/gcc-lib/avr/3.3/install-tools/include/unwind.h
-lib/gcc-lib/avr/3.3/install-tools/include/varargs.h
-lib/gcc-lib/avr/3.3/install-tools/mkheaders
-lib/gcc-lib/avr/3.3/install-tools/mkheaders.conf
-lib/gcc-lib/avr/3.3/install-tools/mkinstalldirs
-lib/gcc-lib/avr/3.3/libgcc.a
-lib/gcc-lib/avr/3.3/specs
+bin/avr-gcov
+lib/gcc/avr/4.4.1/avr25/libgcc.a
+lib/gcc/avr/4.4.1/avr25/libgcov.a
+lib/gcc/avr/4.4.1/avr3/libgcc.a
+lib/gcc/avr/4.4.1/avr3/libgcov.a
+lib/gcc/avr/4.4.1/avr31/libgcc.a
+lib/gcc/avr/4.4.1/avr31/libgcov.a
+lib/gcc/avr/4.4.1/avr35/libgcc.a
+lib/gcc/avr/4.4.1/avr35/libgcov.a
+lib/gcc/avr/4.4.1/avr4/libgcc.a
+lib/gcc/avr/4.4.1/avr4/libgcov.a
+lib/gcc/avr/4.4.1/avr5/libgcc.a
+lib/gcc/avr/4.4.1/avr5/libgcov.a
+lib/gcc/avr/4.4.1/avr51/libgcc.a
+lib/gcc/avr/4.4.1/avr51/libgcov.a
+lib/gcc/avr/4.4.1/avr6/libgcc.a
+lib/gcc/avr/4.4.1/avr6/libgcov.a
+lib/gcc/avr/4.4.1/include-fixed/README
+lib/gcc/avr/4.4.1/include-fixed/limits.h
+lib/gcc/avr/4.4.1/include-fixed/syslimits.h
+lib/gcc/avr/4.4.1/include/float.h
+lib/gcc/avr/4.4.1/include/iso646.h
+lib/gcc/avr/4.4.1/include/stdarg.h
+lib/gcc/avr/4.4.1/include/stdbool.h
+lib/gcc/avr/4.4.1/include/stddef.h
+lib/gcc/avr/4.4.1/include/stdfix.h
+lib/gcc/avr/4.4.1/include/tgmath.h
+lib/gcc/avr/4.4.1/include/unwind.h
+lib/gcc/avr/4.4.1/include/varargs.h
+lib/gcc/avr/4.4.1/install-tools/fixinc_list
+lib/gcc/avr/4.4.1/install-tools/gsyslimits.h
+lib/gcc/avr/4.4.1/install-tools/include/README
+lib/gcc/avr/4.4.1/install-tools/include/limits.h
+lib/gcc/avr/4.4.1/install-tools/macro_list
+lib/gcc/avr/4.4.1/install-tools/mkheaders.conf
+lib/gcc/avr/4.4.1/libgcc.a
+lib/gcc/avr/4.4.1/libgcov.a
+libexec/gcc/avr/4.4.1/cc1
+libexec/gcc/avr/4.4.1/cc1plus
+libexec/gcc/avr/4.4.1/collect2
+libexec/gcc/avr/4.4.1/install-tools/fixinc.sh
+libexec/gcc/avr/4.4.1/install-tools/fixincl
+libexec/gcc/avr/4.4.1/install-tools/mkheaders
+libexec/gcc/avr/4.4.1/install-tools/mkinstalldirs
+man/man1/avr-cpp.1
 man/man1/avr-g++.1
 man/man1/avr-gcc.1
-man/man1/cpp.1
-man/man1/gcov.1
+man/man1/avr-gcov.1
 man/man7/fsf-funding.7
 man/man7/gfdl.7
 man/man7/gpl.7
-share/locale/be/LC_MESSAGES/gcc.mo
-share/locale/da/LC_MESSAGES/gcc.mo
-share/locale/de/LC_MESSAGES/gcc.mo
-share/locale/el/LC_MESSAGES/gcc.mo
-share/locale/es/LC_MESSAGES/gcc.mo
-share/locale/fr/LC_MESSAGES/gcc.mo
-share/locale/ja/LC_MESSAGES/gcc.mo
-share/locale/nl/LC_MESSAGES/gcc.mo
-share/locale/sv/LC_MESSAGES/gcc.mo
-share/locale/tr/LC_MESSAGES/gcc.mo
diff -r 4e3a9060d574 -r 9830f888de64 cross/avr-gcc/distinfo
--- a/cross/avr-gcc/distinfo    Thu Aug 27 15:26:41 2009 +0000
+++ b/cross/avr-gcc/distinfo    Thu Aug 27 15:29:37 2009 +0000
@@ -1,12 +1,10 @@
-$NetBSD: distinfo,v 1.3 2006/03/30 17:37:03 joerg Exp $
+$NetBSD: distinfo,v 1.4 2009/08/27 15:29:37 hasso Exp $
 
-SHA1 (gcc-core+g++-3.3.2003.05.11.tar.bz2) = d9224f5b5a76317563fa7d02c31c2ba9cdfae029
-RMD160 (gcc-core+g++-3.3.2003.05.11.tar.bz2) = f6c3a7ef96ec5488a492406bb2d76e251acd9ba1
-Size (gcc-core+g++-3.3.2003.05.11.tar.bz2) = 12112530 bytes
-SHA1 (gcc-man.2003.05.11.gz) = b7e2cd1e79ba4705003762cab58e25c14899b1c9
-RMD160 (gcc-man.2003.05.11.gz) = d040189c4cc6af5c581597fd1afd4eb42cae91eb
-Size (gcc-man.2003.05.11.gz) = 153595 bytes
-SHA1 (patch-16bitassign) = 9b076aeb426cc932fd2cb9acb9c14f82996a7ae7
-SHA1 (patch-aa) = 3f8641a42a31a7f5d6839e95fc6bfbce5218f9f3
-SHA1 (patch-ab) = 8938a1987422f7d99bc51ebf906a46b66c0debac
-SHA1 (patch-ac) = 32e5c83620e7777f26b5752d7e3b8a899cf3fe2a
+SHA1 (gcc-core-4.4.1.tar.bz2) = 7e18b5f49b77a78e0ccd31c82c6220c5756da754
+RMD160 (gcc-core-4.4.1.tar.bz2) = 6545aea8ad1c9ae55cb0f12991456a0dd3bc490d
+Size (gcc-core-4.4.1.tar.bz2) = 25747208 bytes
+SHA1 (gcc-g++-4.4.1.tar.bz2) = 921c8c18287cabc4c515b4a52c70e445160bd161
+RMD160 (gcc-g++-4.4.1.tar.bz2) = 67b2774d14eea8272b214f0d879e70fb6920b3bf
+Size (gcc-g++-4.4.1.tar.bz2) = 5936040 bytes
+SHA1 (patch-aa) = 17ee1942842186c4336d72bb8223bdb3023c85c1
+SHA1 (patch-ab) = 4a3ab9719a6714933954a120ad8c594c3a4a2e1f
diff -r 4e3a9060d574 -r 9830f888de64 cross/avr-gcc/patches/patch-16bitassign
--- a/cross/avr-gcc/patches/patch-16bitassign   Thu Aug 27 15:26:41 2009 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,302 +0,0 @@
-$NetBSD: patch-16bitassign,v 1.1.1.1 2003/07/16 20:14:21 wennmach Exp $
-
-From marekm%amelek.gda.pl@localhost Sun Jan 19 02:37:50 2003
-Path: interface-business.de!not-for-mail
-Newsgroups: local.avr.gcc
-Followup-To: poster
-Reply-To: avr-gcc-list%avr1.org@localhost
-Subject: [avr-gcc-list] Patch for indirect 16-bit I/O
-To: avr-gcc-list%avr1.org@localhost
-X-Mailer: ELM [version 2.4ME+ PL95 (25)]
-MIME-Version: 1.0
-Content-Transfer-Encoding: 7bit
-Content-Type: text/plain; charset=US-ASCII
-Message-ID: <E18a4PG-0004Cs-00%alf.amelek.gda.pl@localhost>
-From: Marek Michalkiewicz <marekm%amelek.gda.pl@localhost>
-Sender: owner-avr-gcc-list%avr1.org@localhost
-Precedence: bulk
-Date: Sun, 19 Jan 2003 02:37:50 +0100 (CET)
-Lines: 280
-Xref: interface-business.de local.avr.gcc:2452
-
-Hi,
-
-This should handle all these 16-bit I/O accesses addressed with
-pointers ("volatile" is required to force writing high byte first
-and reading low byte first in absolutely all cases, even if that
-makes the code less efficient).  The patch is for CVS mainline, but
-should apply cleanly to the 3.3 branch too.  I'm not committing it
-to GCC CVS just yet - please test, I haven't... well, it compiles :)
-
-BTW, mainline currently requires that SEEK_{SET,CUR,END} are
-defined in <stdio.h> - otherwise some new libgcc2.c stuff (unused
-on the AVR, but it has to compile) will cause the build to fail.
-Just edit /usr/local/avr/include/stdio.h to add them manually...
-
-Marek
-
-
-Index: gcc/config/avr/avr.c
-===================================================================
-RCS file: /cvs/gcc/gcc/gcc/config/avr/avr.c,v
-retrieving revision 1.87
-diff -c -3 -p -r1.87 avr.c
-*** gcc/config/avr/avr.c       16 Dec 2002 18:20:58 -0000      1.87
---- gcc/config/avr/avr.c       19 Jan 2003 01:07:52 -0000
-*************** print_operand (file, x, code)
-*** 1138,1143 ****
---- 1138,1153 ----
-  
-         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));
-*************** out_movhi_r_mr (insn, op, l)
-*** 1944,1949 ****
---- 1954,1962 ----
-    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)



Home | Main Index | Thread Index | Old Index