[91227] trunk/dports/cross/avr-gcc

g5pw at macports.org g5pw at macports.org
Mon Mar 26 03:07:10 PDT 2012


Revision: 91227
          https://trac.macports.org/changeset/91227
Author:   g5pw at macports.org
Date:     2012-03-26 03:07:09 -0700 (Mon, 26 Mar 2012)
Log Message:
-----------
cross/avr-gcc:
Bumped toversion 4.7.0
Using llvm-gcc because of a bug in clang (I suspect. When building with clang it gives a "ran out of registers" error)
Eliminated patches, apparently there's no need for them (everything compiles fine and works)

Modified Paths:
--------------
    trunk/dports/cross/avr-gcc/Portfile

Removed Paths:
-------------
    trunk/dports/cross/avr-gcc/files/gcc-config-rs6000-host-darwin.c.diff
    trunk/dports/cross/avr-gcc/files/patch-lto-plugin-osx.diff

Modified: trunk/dports/cross/avr-gcc/Portfile
===================================================================
--- trunk/dports/cross/avr-gcc/Portfile	2012-03-26 09:37:01 UTC (rev 91226)
+++ trunk/dports/cross/avr-gcc/Portfile	2012-03-26 10:07:09 UTC (rev 91227)
@@ -5,7 +5,7 @@
 PortGroup               crossgcc 1.0
 
 name                    avr-gcc
-crossgcc.setup          avr 4.6.3
+crossgcc.setup          avr 4.7.0
 
 maintainers             g5pw
 license                 {GPL-3+ Permissive}
@@ -13,22 +13,20 @@
 distfiles               gcc-${version}.tar.bz2
 extract.only            ${distfiles}
 
-checksums               rmd160  9abb2f940d08fc84f2d91b6a6ce8d662ca889269 \
-                        sha256  e8f5853d4eec2f5ebaf8a72ae4d53c436aacf98153b2499f8635b48c4718a093
+checksums               rmd160  4ed660b281cdb9bcf98f5c2cf2da105c71db5be4 \
+                        sha256  a680083e016f656dab7acd45b9729912e70e71bbffcbf0e3e8aa1cccf19dc9a5
 
 # Download everything to gcc/
 dist_subdir             gcc
 
-
-patchfiles-append       patch-lto-plugin-osx.diff
-
+if {${configure.compiler} == "clang"} {
+    configure.compiler      llvm-gcc-4.2
+}
 configure.args-delete   --enable-languages="c,objc,c++,obj-c++"
 
-configure.args-append   --with-included-gettext                \
-                        --enable-obsolete                      \
-                        --enable-lto                           \
-                        --disable-libquadmath                  \
-                        --enable-languages="c,c++"
+configure.args-append   --enable-languages="c,c++" \
+                        --enable-lto
+                        
 
 if {$build_arch != "" && ${os.platform} == "darwin"} {
     configure.args-append --build=${build_arch}-apple-darwin${os.major} \

Deleted: trunk/dports/cross/avr-gcc/files/gcc-config-rs6000-host-darwin.c.diff
===================================================================
--- trunk/dports/cross/avr-gcc/files/gcc-config-rs6000-host-darwin.c.diff	2012-03-26 09:37:01 UTC (rev 91226)
+++ trunk/dports/cross/avr-gcc/files/gcc-config-rs6000-host-darwin.c.diff	2012-03-26 10:07:09 UTC (rev 91227)
@@ -1,29 +0,0 @@
---- gcc/config/rs6000/host-darwin.c	2004-11-09 11:13:18.000000000 +0100
-+++ gcc/config/rs6000/host-darwin.c	2007-11-07 21:34:55.000000000 +0100
-@@ -35,7 +35,7 @@
- 
- /* This doesn't have a prototype in signal.h in 10.2.x and earlier,
-    fixed in later releases.  */
--extern int sigaltstack(const struct sigaltstack *, struct sigaltstack *);
-+/*extern int sigaltstack(const struct sigaltstack *, struct sigaltstack *);*/
- 
- #undef HOST_HOOKS_EXTRA_SIGNALS
- #define HOST_HOOKS_EXTRA_SIGNALS darwin_rs6000_extra_signals
-@@ -64,7 +64,7 @@
-      which case the next line will segfault _again_.  Handle this case.  */
-   signal (SIGSEGV, segv_crash_handler);
- 
--  faulting_insn = *(unsigned *)uc->uc_mcontext->ss.srr0;
-+  faulting_insn = *(unsigned *)uc->uc_mcontext->__ss.__srr0;
- 
-   /* Note that this only has to work for GCC, so we don't have to deal
-      with all the possible cases (GCC has no AltiVec code, for
-@@ -113,7 +113,7 @@
-     }
- 
-   fprintf (stderr, "[address=%08lx pc=%08x]\n", 
--	   uc->uc_mcontext->es.dar, uc->uc_mcontext->ss.srr0);
-+	   uc->uc_mcontext->__es.__dar, uc->uc_mcontext->__ss.__srr0);
-   internal_error ("Segmentation Fault");
-   exit (FATAL_EXIT_CODE);
- }

Deleted: trunk/dports/cross/avr-gcc/files/patch-lto-plugin-osx.diff
===================================================================
--- trunk/dports/cross/avr-gcc/files/patch-lto-plugin-osx.diff	2012-03-26 09:37:01 UTC (rev 91226)
+++ trunk/dports/cross/avr-gcc/files/patch-lto-plugin-osx.diff	2012-03-26 10:07:09 UTC (rev 91227)
@@ -1,13 +0,0 @@
---- lto-plugin/lto-plugin.c	2011-04-05 14:13:27.000000000 +0200
-+++ lto-plugin/lto-plugin.c	2011-12-12 13:49:23.000000000 +0100
-@@ -68,6 +68,10 @@
- # define O_BINARY 0
- #endif
- 
-+#ifdef	__APPLE__
-+char * environ[] = {NULL};
-+#endif
-+
- /* Segment name for LTO sections.  This is only used for Mach-O.
-    FIXME: This needs to be kept in sync with darwin.c.  */
- 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120326/90b45751/attachment.html>


More information about the macports-changes mailing list