[142165] trunk/dports/devel/boehmgc

ryandesign at macports.org ryandesign at macports.org
Sat Dec 12 04:36:19 PST 2015


Revision: 142165
          https://trac.macports.org/changeset/142165
Author:   ryandesign at macports.org
Date:     2015-11-05 00:05:01 -0800 (Thu, 05 Nov 2015)
Log Message:
-----------
boehmgc: add an upstream patch to avoid "warning: unknown attribute '__alloc_size__'" (#49590)

Modified Paths:
--------------
    trunk/dports/devel/boehmgc/Portfile

Added Paths:
-----------
    trunk/dports/devel/boehmgc/files/
    trunk/dports/devel/boehmgc/files/patch-include-gc_config_macros.h.diff

Modified: trunk/dports/devel/boehmgc/Portfile
===================================================================
--- trunk/dports/devel/boehmgc/Portfile	2015-11-05 07:36:21 UTC (rev 142164)
+++ trunk/dports/devel/boehmgc/Portfile	2015-11-05 08:05:01 UTC (rev 142165)
@@ -7,6 +7,7 @@
 
 github.setup        ivmai bdwgc 7_4_2 gc
 version             [string map {_ .} ${github.version}]
+revision            1
 checksums           rmd160  bcc598cc89708249bb560ba42c7cc8684a78da6f \
                     sha256  9a83e51a82c0215dc758dd864057ce1e82e17d1e8f9c7c69a21c7218c96f9ab5
 
@@ -37,6 +38,8 @@
                 port:pkgconfig \
                 port:libatomic_ops
 
+patchfiles      patch-include-gc_config_macros.h.diff
+
 configure.args  --with-threads=posix \
                 --enable-cplusplus
 configure.cppflags-append \

Added: trunk/dports/devel/boehmgc/files/patch-include-gc_config_macros.h.diff
===================================================================
--- trunk/dports/devel/boehmgc/files/patch-include-gc_config_macros.h.diff	                        (rev 0)
+++ trunk/dports/devel/boehmgc/files/patch-include-gc_config_macros.h.diff	2015-11-05 08:05:01 UTC (rev 142165)
@@ -0,0 +1,26 @@
+https://github.com/ivmai/bdwgc/commit/b725923951d77f5c6792c2797f89179267c58c9c
+--- include/gc_config_macros.h.orig	2014-06-03 01:09:52.000000000 -0500
++++ include/gc_config_macros.h	2015-11-05 02:00:10.000000000 -0600
+@@ -242,13 +242,17 @@
+ #ifndef GC_ATTR_ALLOC_SIZE
+   /* 'alloc_size' attribute improves __builtin_object_size correctness. */
+   /* Only single-argument form of 'alloc_size' attribute is used.       */
+-# if defined(__GNUC__) && (__GNUC__ > 4 \
+-        || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3 && !defined(__ICC)) \
+-        || __clang_major__ > 3 \
+-        || (__clang_major__ == 3 && __clang_minor__ >= 2))
++# ifdef __clang__
++#   if __has_attribute(__alloc_size__)
++#     define GC_ATTR_ALLOC_SIZE(argnum) __attribute__((__alloc_size__(argnum)))
++#   else
++#     define GC_ATTR_ALLOC_SIZE(argnum) /* empty */
++#   endif
++# elif __GNUC__ > 4 \
++       || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3 && !defined(__ICC))
+ #   define GC_ATTR_ALLOC_SIZE(argnum) __attribute__((__alloc_size__(argnum)))
+ # else
+-#   define GC_ATTR_ALLOC_SIZE(argnum)
++#   define GC_ATTR_ALLOC_SIZE(argnum) /* empty */
+ # endif
+ #endif
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/c9d4b8da/attachment.html>


More information about the macports-changes mailing list