<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[128280] trunk/dports/lang/gcc49</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="https://trac.macports.org/changeset/128280">128280</a></dd>
<dt>Author</dt> <dd>larryv@macports.org</dd>
<dt>Date</dt> <dd>2014-11-17 23:41:00 -0800 (Mon, 17 Nov 2014)</dd>
</dl>
<h3>Log Message</h3>
<pre>gcc49: Update to 4.9.2 (timeout, #45840)
Also fix handling of OS X deployment targets; see
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63810.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkdportslanggcc49Portfile">trunk/dports/lang/gcc49/Portfile</a></li>
<li><a href="#trunkdportslanggcc49filesyosemitelibtoolpatch">trunk/dports/lang/gcc49/files/yosemite-libtool.patch</a></li>
</ul>
<h3>Added Paths</h3>
<ul>
<li><a href="#trunkdportslanggcc49filesmacosxversionminpatch">trunk/dports/lang/gcc49/files/macosx-version-min.patch</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkdportslanggcc49Portfile"></a>
<div class="modfile"><h4>Modified: trunk/dports/lang/gcc49/Portfile (128279 => 128280)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/lang/gcc49/Portfile        2014-11-18 05:51:44 UTC (rev 128279)
+++ trunk/dports/lang/gcc49/Portfile        2014-11-18 07:41:00 UTC (rev 128280)
</span><span class="lines">@@ -8,10 +8,8 @@
</span><span class="cx"> name gcc49
</span><span class="cx"> subport libgcc {}
</span><span class="cx">
</span><del>-# TODO: On next update, increase epoch to 2 and remove libgcc's separate epoch.
-epoch 1
-version 4.9.1
-revision 1
</del><ins>+epoch 2
+version 4.9.2
</ins><span class="cx"> platforms darwin
</span><span class="cx"> categories lang
</span><span class="cx"> maintainers mww openmaintainer
</span><span class="lines">@@ -31,8 +29,8 @@
</span><span class="cx"> distname gcc-${version}
</span><span class="cx"> use_bzip2 yes
</span><span class="cx">
</span><del>-checksums rmd160 7a829a260648a190afa1d6c616c78ddc861f4f7d \
- sha256 d334781a124ada6f38e63b545e2a3b8c2183049515a1abab6d513f109f1d717e
</del><ins>+checksums rmd160 bc6454e7c67c6f5fd2c98cdd1364ebb1739e1347 \
+ sha256 2020c98295856aa13fda0f2f3a4794490757fc24bcca918d52cc8b4917b972dd
</ins><span class="cx">
</span><span class="cx"> depends_lib port:gmp port:mpfr port:libiconv port:libmpc path:lib/pkgconfig/cloog-isl.pc:cloog path:lib/libgcc/libgcc_s.1.dylib:libgcc port:ld64 port:cctools
</span><span class="cx"> depends_run port:gcc_select
</span><span class="lines">@@ -40,8 +38,9 @@
</span><span class="cx"> depends_skip_archcheck-append gcc_select ld64 cctools
</span><span class="cx"> license_noconflict gmp mpfr ppl libmpc
</span><span class="cx">
</span><del>-patch.pre_args -p1
-patchfiles Fix-__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__.patch
</del><ins>+# Handle OS X deployment targets correctly (GCC PR target/63810
+# <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63810>).
+patchfiles macosx-version-min.patch
</ins><span class="cx">
</span><span class="cx"> # Don't link with "-flat_namespace -undefined suppress" on Yosemite and
</span><span class="cx"> # later (#45483).
</span><span class="lines">@@ -116,8 +115,6 @@
</span><span class="cx"> if {${subport} eq "libgcc"} {
</span><span class="cx"> conflicts libgcc-devel
</span><span class="cx">
</span><del>- epoch 2
-
</del><span class="cx"> # http://trac.macports.org/ticket/35770
</span><span class="cx"> # http://trac.macports.org/ticket/38814
</span><span class="cx"> # While there can be multiple versions of these runtimes in a single
</span></span></pre></div>
<a id="trunkdportslanggcc49filesmacosxversionminpatch"></a>
<div class="addfile"><h4>Added: trunk/dports/lang/gcc49/files/macosx-version-min.patch (0 => 128280)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/lang/gcc49/files/macosx-version-min.patch         (rev 0)
+++ trunk/dports/lang/gcc49/files/macosx-version-min.patch        2014-11-18 07:41:00 UTC (rev 128280)
</span><span class="lines">@@ -0,0 +1,419 @@
</span><ins>+Index: gcc/config/darwin-c.c
+===================================================================
+--- gcc/config/darwin-c.c.orig
++++ gcc/config/darwin-c.c
+@@ -570,42 +570,180 @@ find_subframework_header (cpp_reader *pf
+ return 0;
+ }
+
+-/* Return the value of darwin_macosx_version_min suitable for the
+- __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ macro, so '10.4.2'
+- becomes 1040 and '10.10.0' becomes 101000. The lowest digit is
+- always zero, as is the second lowest for '10.10.x' and above.
+- Print a warning if the version number can't be understood. */
++/* Given a version string, return the version as a statically-allocated
++ array of three non-negative integers. If the version string is
++ invalid, return null.
++
++ Version strings must consist of one, two, or three tokens, each
++ separated by a single period. Each token must contain only the
++ characters '0' through '9' and is converted to an equivalent
++ integer. Omitted tokens are treated as zeros. For example:
++
++ "10" becomes {10,0,0}
++ "10.10" becomes {10,10,0}
++ "10.10.1" becomes {10,10,1}
++ "10.000010.1" becomes {10,10,1}
++ "10.010.001" becomes {10,10,1}
++ "000010.10.00001" becomes {10,10,1} */
++
++enum version_components { MAJOR, MINOR, TINY };
++
++static const unsigned long *
++parse_version (const char *version_str)
++{
++ size_t version_len;
++ char *end;
++ static unsigned long version_array[3];
++
++ if (! version_str)
++ return NULL;
++
++ version_len = strlen (version_str);
++ if (version_len < 1)
++ return NULL;
++
++ /* Version string must consist of digits and periods only. */
++ if (strspn (version_str, "0123456789.") != version_len)
++ return NULL;
++
++ if (! ISDIGIT (version_str[0]) || ! ISDIGIT (version_str[version_len - 1]))
++ return NULL;
++
++ version_array[MAJOR] = strtoul (version_str, &end, 10);
++ version_str = end + ((*end == '.') ? 1 : 0);
++
++ /* Version string must not contain adjacent periods. */
++ if (*version_str == '.')
++ return NULL;
++
++ version_array[MINOR] = strtoul (version_str, &end, 10);
++ version_str = end + ((*end == '.') ? 1 : 0);
++
++ version_array[TINY] = strtoul (version_str, &end, 10);
++
++ /* Version string must contain no more than three tokens. */
++ if (*end != '\0')
++ return NULL;
++
++ return version_array;
++}
++
++/* Given a three-component version represented as an array of
++ non-negative integers, return a statically-allocated string suitable
++ for the legacy __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ macro.
++ If the version is invalid and cannot be coerced into a valid form,
++ return null.
++
++ The legacy format is a four-character string -- two chars for the
++ major number and one each for the minor and tiny numbers. Major
++ numbers are zero-padded if necessary. Minor and tiny numbers from
++ 10 through 99 are permitted but are clamped to 9 (for example,
++ {10,9,10} produces "1099"). Versions containing numbers greater
++ than 99 are rejected. */
++
+ static const char *
+-version_as_macro (void)
++version_as_legacy_macro (const unsigned long *version)
+ {
+- static char result[7] = "1000";
+- int minorDigitIdx;
++ unsigned long major, minor, tiny;
++ static char result[sizeof "9999"];
++
++ if (! version)
++ return NULL;
++
++ major = version[MAJOR];
++ minor = version[MINOR];
++ tiny = version[TINY];
++
++ if (major > 99 || minor > 99 || tiny > 99)
++ return NULL;
++
++ minor = ((minor > 9) ? 9 : minor);
++ tiny = ((tiny > 9) ? 9 : tiny);
++
++ /* NOTE: Cast result of sizeof so that result of sprintf is not
++ converted to an unsigned type. */
++ if (sprintf (result, "%02lu%lu%lu", major, minor, tiny)
++ != (int) sizeof "9999" - 1)
++ return NULL;
+
+- if (strncmp (darwin_macosx_version_min, "10.", 3) != 0)
++ return result;
++}
++
++/* Given a three-component version represented as an array of
++ non-negative integers, return a statically-allocated string suitable
++ for the modern __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ macro
++ or the __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ macro. If the
++ version is invalid, return null.
++
++ The modern format is a five- or six-character string -- one or two
++ chars for the major number and two each for the minor and tiny
++ numbers, which are zero-padded if necessary (for example, {8,1,0}
++ produces "80100", and {10,10,1} produces "101001"). Versions
++ containing numbers greater than 99 are rejected. */
++
++static const char *
++version_as_modern_macro (const unsigned long *version)
++{
++ unsigned long major, minor, tiny;
++ static char result[sizeof "999999"];
++
++ if (! version)
++ return NULL;
++
++ major = version[MAJOR];
++ minor = version[MINOR];
++ tiny = version[TINY];
++
++ if (major > 99 || minor > 99 || tiny > 99)
++ return NULL;
++
++ /* NOTE: 'sizeof ((x > y) ? "foo" : "bar")' returns size of char
++ pointer instead of char array, so use
++ '(x > y) ? sizeof "foo" : sizeof "bar"' instead. */
++ /* NOTE: Cast result of sizeof so that result of sprintf is not
++ converted to an unsigned type. */
++ if (sprintf (result, "%lu%02lu%02lu", major, minor, tiny)
++ != (int) ((major > 9) ? sizeof "999999" : sizeof "99999") - 1)
++ return NULL;
++
++ return result;
++}
++
++/* Return the value of darwin_macosx_version_min, suitably formatted
++ for the __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ macro. Values
++ representing OS X 10.9 and earlier are encoded using the legacy
++ four-character format, while 10.10 and later use a modern
++ six-character format. (For example, "10.9" produces "1090", and
++ "10.10.1" produces "101001".) If the value is invalid and cannot be
++ coerced into a valid form, print a warning and return "1000". */
++
++static const char *
++macosx_version_as_macro (void)
++{
++ const unsigned long *version_array;
++ const char *version_macro;
++
++ version_array = parse_version (darwin_macosx_version_min);
++ if (! version_array)
+ goto fail;
+- if (! ISDIGIT (darwin_macosx_version_min[3]))
++
++ /* Do not assume that the major number will always be exactly 10. */
++ if (version_array[MAJOR] < 10 || version_array[MAJOR] > 10)
+ goto fail;
+
+- minorDigitIdx = 3;
+- result[2] = darwin_macosx_version_min[minorDigitIdx++];
+- if (ISDIGIT (darwin_macosx_version_min[minorDigitIdx]))
+- {
+- /* Starting with OS X 10.10, the macro ends '00' rather than '0',
+- i.e. 10.10.x becomes 101000 rather than 10100. */
+- result[3] = darwin_macosx_version_min[minorDigitIdx++];
+- result[4] = '0';
+- result[5] = '0';
+- result[6] = '\0';
+- }
+- if (darwin_macosx_version_min[minorDigitIdx] != '\0'
+- && darwin_macosx_version_min[minorDigitIdx] != '.')
++ if (version_array[MAJOR] == 10 && version_array[MINOR] < 10)
++ version_macro = version_as_legacy_macro (version_array);
++ else
++ version_macro = version_as_modern_macro (version_array);
++
++ if (! version_macro)
+ goto fail;
+
+- return result;
++ return version_macro;
+
+ fail:
+ error ("unknown value %qs of -mmacosx-version-min",
+-         darwin_macosx_version_min);
++ darwin_macosx_version_min);
+ return "1000";
+ }
+
+@@ -627,7 +765,7 @@ darwin_cpp_builtins (cpp_reader *pfile)
+ builtin_define ("__CONSTANT_CFSTRINGS__");
+
+ builtin_define_with_value ("__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__",
+-                         version_as_macro(), false);
++                         macosx_version_as_macro(), false);
+
+ /* Since we do not (at 4.6) support ObjC gc for the NeXT runtime, the
+ following will cause a syntax error if one tries to compile gc attributed
+Index: gcc/testsuite/gcc.dg/darwin-minversion-10.c
+===================================================================
+--- /dev/null
++++ gcc/testsuite/gcc.dg/darwin-minversion-10.c
+@@ -0,0 +1,16 @@
++/* PR target/63810: Test that a version with a zero-padded minor
++ number < 10 and a zero-padded tiny number < 10 produces the correct
++ four-character macro. */
++/* Added by Lawrence Velázquez <larryv@macports.org>. */
++
++/* { dg-options "-mmacosx-version-min=10.07.02" } */
++/* { dg-do compile { target *-*-darwin* } } */
++
++int
++main ()
++{
++#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ != 1072
++ fail me;
++#endif
++ return 0;
++}
+Index: gcc/testsuite/gcc.dg/darwin-minversion-11.c
+===================================================================
+--- /dev/null
++++ gcc/testsuite/gcc.dg/darwin-minversion-11.c
+@@ -0,0 +1,15 @@
++/* PR target/63810: Test that a version with outrageous zero-padding and
++ a minor number > 9 still produces a six-character macro. */
++/* Added by Lawrence Velázquez <larryv@macports.org>. */
++
++/* { dg-options "-mmacosx-version-min=00010.010.0000098" } */
++/* { dg-do compile { target *-*-darwin* } } */
++
++int
++main ()
++{
++#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ != 101098
++ fail me;
++#endif
++ return 0;
++}
+Index: gcc/testsuite/gcc.dg/darwin-minversion-12.c
+===================================================================
+--- /dev/null
++++ gcc/testsuite/gcc.dg/darwin-minversion-12.c
+@@ -0,0 +1,15 @@
++/* PR target/63810: Test that a version with outrageous zero-padding and
++ a minor number < 10 still produces a four-character macro. */
++/* Added by Lawrence Velázquez <larryv@macports.org>. */
++
++/* { dg-options "-mmacosx-version-min=010.008.000031" } */
++/* { dg-do compile { target *-*-darwin* } } */
++
++int
++main ()
++{
++#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ != 1089
++ fail me;
++#endif
++ return 0;
++}
+Index: gcc/testsuite/gcc.dg/darwin-minversion-3.c
+===================================================================
+--- gcc/testsuite/gcc.dg/darwin-minversion-3.c.orig
++++ gcc/testsuite/gcc.dg/darwin-minversion-3.c
+@@ -1,11 +1,11 @@
+-/* Test that most-minor versions greater than 9 work. */
+-/* { dg-options "-mmacosx-version-min=10.4.10" } */
++/* Test that most minor versions < 10 work. */
++/* { dg-options "-mmacosx-version-min=10.4.1" } */
+ /* { dg-do compile { target *-*-darwin* } } */
+
+ int
+ main ()
+ {
+-#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ != 1040
++#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ != 1041
+ fail me;
+ #endif
+ return 0;
+Index: gcc/testsuite/gcc.dg/darwin-minversion-4.c
+===================================================================
+--- gcc/testsuite/gcc.dg/darwin-minversion-4.c.orig
++++ gcc/testsuite/gcc.dg/darwin-minversion-4.c
+@@ -1,11 +1,11 @@
+-/* Test that major versions greater than 9 work and have the additional 0. */
+-/* { dg-options "-mmacosx-version-min=10.10.0" } */
++/* Test that minor versions > 9 produce a six-character macro. */
++/* { dg-options "-mmacosx-version-min=10.10.1" } */
+ /* { dg-do compile { target *-*-darwin* } } */
+
+ int
+ main ()
+ {
+-#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ != 101000
++#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ != 101001
+ fail me;
+ #endif
+ return 0;
+Index: gcc/testsuite/gcc.dg/darwin-minversion-5.c
+===================================================================
+--- /dev/null
++++ gcc/testsuite/gcc.dg/darwin-minversion-5.c
+@@ -0,0 +1,16 @@
++/* PR target/63810: Test that a version with minor number < 10 and tiny
++ number > 9 produces a four-character macro with the tiny number
++ clamped to 9. */
++/* Added by Lawrence Velázquez <larryv@macports.org>. */
++
++/* { dg-options "-mmacosx-version-min=10.9.10" } */
++/* { dg-do compile { target *-*-darwin* } } */
++
++int
++main ()
++{
++#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ != 1099
++ fail me;
++#endif
++ return 0;
++}
+Index: gcc/testsuite/gcc.dg/darwin-minversion-6.c
+===================================================================
+--- /dev/null
++++ gcc/testsuite/gcc.dg/darwin-minversion-6.c
+@@ -0,0 +1,15 @@
++/* PR target/63810: Test that tiny numbers are preserved in
++ six-character macros. */
++/* Added by Lawrence Velázquez <larryv@macports.org>. */
++
++/* { dg-options "-mmacosx-version-min=10.10.11" } */
++/* { dg-do compile { target *-*-darwin* } } */
++
++int
++main ()
++{
++#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ != 101011
++ fail me;
++#endif
++ return 0;
++}
+Index: gcc/testsuite/gcc.dg/darwin-minversion-7.c
+===================================================================
+--- /dev/null
++++ gcc/testsuite/gcc.dg/darwin-minversion-7.c
+@@ -0,0 +1,15 @@
++/* PR target/63810: Test that tiny numbers < 10 are preserved in
++ four-character macros. */
++/* Added by Lawrence Velázquez <larryv@macports.org>. */
++
++/* { dg-options "-mmacosx-version-min=10.9.1" } */
++/* { dg-do compile { target *-*-darwin* } } */
++
++int
++main ()
++{
++#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ != 1091
++ fail me;
++#endif
++ return 0;
++}
+Index: gcc/testsuite/gcc.dg/darwin-minversion-8.c
+===================================================================
+--- /dev/null
++++ gcc/testsuite/gcc.dg/darwin-minversion-8.c
+@@ -0,0 +1,15 @@
++/* PR target/63810: Test that a version with minor number > 9 and no
++ tiny number produces a six-character macro ending in "00". */
++/* Added by Lawrence Velázquez <larryv@macports.org>. */
++
++/* { dg-options "-mmacosx-version-min=10.11" } */
++/* { dg-do compile { target *-*-darwin* } } */
++
++int
++main ()
++{
++#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ != 101100
++ fail me;
++#endif
++ return 0;
++}
+Index: gcc/testsuite/gcc.dg/darwin-minversion-9.c
+===================================================================
+--- /dev/null
++++ gcc/testsuite/gcc.dg/darwin-minversion-9.c
+@@ -0,0 +1,15 @@
++/* PR target/63810: Test that a version with a zero-padded minor
++ number < 10 produces a four-character macro. */
++/* Added by Lawrence Velázquez <larryv@macports.org>. */
++
++/* { dg-options "-mmacosx-version-min=10.08.4" } */
++/* { dg-do compile { target *-*-darwin* } } */
++
++int
++main ()
++{
++#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ != 1084
++ fail me;
++#endif
++ return 0;
++}
</ins></span></pre></div>
<a id="trunkdportslanggcc49filesyosemitelibtoolpatch"></a>
<div class="modfile"><h4>Modified: trunk/dports/lang/gcc49/files/yosemite-libtool.patch (128279 => 128280)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/lang/gcc49/files/yosemite-libtool.patch        2014-11-18 05:51:44 UTC (rev 128279)
+++ trunk/dports/lang/gcc49/files/yosemite-libtool.patch        2014-11-18 07:41:00 UTC (rev 128280)
</span><span class="lines">@@ -1,7 +1,7 @@
</span><del>-Index: gcc-4.9.1/boehm-gc/configure
</del><ins>+Index: boehm-gc/configure
</ins><span class="cx"> ===================================================================
</span><del>---- gcc-4.9.1.orig/boehm-gc/configure
-+++ gcc-4.9.1/boehm-gc/configure
</del><ins>+--- boehm-gc/configure.orig
++++ boehm-gc/configure
</ins><span class="cx"> @@ -7508,7 +7508,7 @@ $as_echo "$lt_cv_ld_force_load" >&6; }
</span><span class="cx"> case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
</span><span class="cx">         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
</span><span class="lines">@@ -11,11 +11,11 @@
</span><span class="cx">          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
</span><span class="cx">         10.*)
</span><span class="cx">          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
</span><del>-Index: gcc-4.9.1/gcc/configure
</del><ins>+Index: gcc/configure
</ins><span class="cx"> ===================================================================
</span><del>---- gcc-4.9.1.orig/gcc/configure
-+++ gcc-4.9.1/gcc/configure
-@@ -14415,7 +14415,7 @@ $as_echo "$lt_cv_ld_force_load" >&6; }
</del><ins>+--- gcc/configure.orig
++++ gcc/configure
+@@ -14424,7 +14424,7 @@ $as_echo "$lt_cv_ld_force_load" >&6; }
</ins><span class="cx"> case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
</span><span class="cx">         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
</span><span class="cx">          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
</span><span class="lines">@@ -24,10 +24,10 @@
</span><span class="cx">          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
</span><span class="cx">         10.*)
</span><span class="cx">          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
</span><del>-Index: gcc-4.9.1/libatomic/configure
</del><ins>+Index: libatomic/configure
</ins><span class="cx"> ===================================================================
</span><del>---- gcc-4.9.1.orig/libatomic/configure
-+++ gcc-4.9.1/libatomic/configure
</del><ins>+--- libatomic/configure.orig
++++ libatomic/configure
</ins><span class="cx"> @@ -7324,7 +7324,7 @@ $as_echo "$lt_cv_ld_force_load" >&6; }
</span><span class="cx"> case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
</span><span class="cx">         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
</span><span class="lines">@@ -37,10 +37,10 @@
</span><span class="cx">          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
</span><span class="cx">         10.*)
</span><span class="cx">          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
</span><del>-Index: gcc-4.9.1/libbacktrace/configure
</del><ins>+Index: libbacktrace/configure
</ins><span class="cx"> ===================================================================
</span><del>---- gcc-4.9.1.orig/libbacktrace/configure
-+++ gcc-4.9.1/libbacktrace/configure
</del><ins>+--- libbacktrace/configure.orig
++++ libbacktrace/configure
</ins><span class="cx"> @@ -7576,7 +7576,7 @@ $as_echo "$lt_cv_ld_force_load" >&6; }
</span><span class="cx"> case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
</span><span class="cx">         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
</span><span class="lines">@@ -50,10 +50,10 @@
</span><span class="cx">          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
</span><span class="cx">         10.*)
</span><span class="cx">          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
</span><del>-Index: gcc-4.9.1/libcilkrts/configure
</del><ins>+Index: libcilkrts/configure
</ins><span class="cx"> ===================================================================
</span><del>---- gcc-4.9.1.orig/libcilkrts/configure
-+++ gcc-4.9.1/libcilkrts/configure
</del><ins>+--- libcilkrts/configure.orig
++++ libcilkrts/configure
</ins><span class="cx"> @@ -7544,7 +7544,7 @@ $as_echo "$lt_cv_ld_force_load" >&6; }
</span><span class="cx"> case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
</span><span class="cx">         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
</span><span class="lines">@@ -63,10 +63,10 @@
</span><span class="cx">          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
</span><span class="cx">         10.*)
</span><span class="cx">          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
</span><del>-Index: gcc-4.9.1/libffi/configure
</del><ins>+Index: libffi/configure
</ins><span class="cx"> ===================================================================
</span><del>---- gcc-4.9.1.orig/libffi/configure
-+++ gcc-4.9.1/libffi/configure
</del><ins>+--- libffi/configure.orig
++++ libffi/configure
</ins><span class="cx"> @@ -7125,7 +7125,7 @@ $as_echo "$lt_cv_ld_force_load" >&6; }
</span><span class="cx"> case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
</span><span class="cx">         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
</span><span class="lines">@@ -76,11 +76,11 @@
</span><span class="cx">          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
</span><span class="cx">         10.*)
</span><span class="cx">          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
</span><del>-Index: gcc-4.9.1/libgfortran/configure
</del><ins>+Index: libgfortran/configure
</ins><span class="cx"> ===================================================================
</span><del>---- gcc-4.9.1.orig/libgfortran/configure
-+++ gcc-4.9.1/libgfortran/configure
-@@ -8804,7 +8804,7 @@ $as_echo "$lt_cv_ld_force_load" >&6; }
</del><ins>+--- libgfortran/configure.orig
++++ libgfortran/configure
+@@ -8805,7 +8805,7 @@ $as_echo "$lt_cv_ld_force_load" >&6; }
</ins><span class="cx"> case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
</span><span class="cx">         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
</span><span class="cx">          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
</span><span class="lines">@@ -89,10 +89,10 @@
</span><span class="cx">          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
</span><span class="cx">         10.*)
</span><span class="cx">          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
</span><del>-Index: gcc-4.9.1/libgo/configure
</del><ins>+Index: libgo/configure
</ins><span class="cx"> ===================================================================
</span><del>---- gcc-4.9.1.orig/libgo/configure
-+++ gcc-4.9.1/libgo/configure
</del><ins>+--- libgo/configure.orig
++++ libgo/configure
</ins><span class="cx"> @@ -7243,7 +7243,7 @@ $as_echo "$lt_cv_ld_force_load" >&6; }
</span><span class="cx"> case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
</span><span class="cx">         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
</span><span class="lines">@@ -102,10 +102,10 @@
</span><span class="cx">          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
</span><span class="cx">         10.*)
</span><span class="cx">          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
</span><del>-Index: gcc-4.9.1/libgomp/configure
</del><ins>+Index: libgomp/configure
</ins><span class="cx"> ===================================================================
</span><del>---- gcc-4.9.1.orig/libgomp/configure
-+++ gcc-4.9.1/libgomp/configure
</del><ins>+--- libgomp/configure.orig
++++ libgomp/configure
</ins><span class="cx"> @@ -7312,7 +7312,7 @@ $as_echo "$lt_cv_ld_force_load" >&6; }
</span><span class="cx"> case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
</span><span class="cx">         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
</span><span class="lines">@@ -115,10 +115,10 @@
</span><span class="cx">          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
</span><span class="cx">         10.*)
</span><span class="cx">          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
</span><del>-Index: gcc-4.9.1/libitm/configure
</del><ins>+Index: libitm/configure
</ins><span class="cx"> ===================================================================
</span><del>---- gcc-4.9.1.orig/libitm/configure
-+++ gcc-4.9.1/libitm/configure
</del><ins>+--- libitm/configure.orig
++++ libitm/configure
</ins><span class="cx"> @@ -8002,7 +8002,7 @@ $as_echo "$lt_cv_ld_force_load" >&6; }
</span><span class="cx"> case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
</span><span class="cx">         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
</span><span class="lines">@@ -128,10 +128,10 @@
</span><span class="cx">          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
</span><span class="cx">         10.*)
</span><span class="cx">          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
</span><del>-Index: gcc-4.9.1/libjava/classpath/configure
</del><ins>+Index: libjava/classpath/configure
</ins><span class="cx"> ===================================================================
</span><del>---- gcc-4.9.1.orig/libjava/classpath/configure
-+++ gcc-4.9.1/libjava/classpath/configure
</del><ins>+--- libjava/classpath/configure.orig
++++ libjava/classpath/configure
</ins><span class="cx"> @@ -8368,7 +8368,7 @@ $as_echo "$lt_cv_ld_force_load" >&6; }
</span><span class="cx"> case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
</span><span class="cx">         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
</span><span class="lines">@@ -141,10 +141,10 @@
</span><span class="cx">          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
</span><span class="cx">         10.*)
</span><span class="cx">          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
</span><del>-Index: gcc-4.9.1/libjava/configure
</del><ins>+Index: libjava/configure
</ins><span class="cx"> ===================================================================
</span><del>---- gcc-4.9.1.orig/libjava/configure
-+++ gcc-4.9.1/libjava/configure
</del><ins>+--- libjava/configure.orig
++++ libjava/configure
</ins><span class="cx"> @@ -9580,7 +9580,7 @@ $as_echo "$lt_cv_ld_force_load" >&6; }
</span><span class="cx"> case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
</span><span class="cx">         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
</span><span class="lines">@@ -154,10 +154,10 @@
</span><span class="cx">          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
</span><span class="cx">         10.*)
</span><span class="cx">          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
</span><del>-Index: gcc-4.9.1/libobjc/configure
</del><ins>+Index: libobjc/configure
</ins><span class="cx"> ===================================================================
</span><del>---- gcc-4.9.1.orig/libobjc/configure
-+++ gcc-4.9.1/libobjc/configure
</del><ins>+--- libobjc/configure.orig
++++ libobjc/configure
</ins><span class="cx"> @@ -6794,7 +6794,7 @@ $as_echo "$lt_cv_ld_force_load" >&6; }
</span><span class="cx"> case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
</span><span class="cx">         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
</span><span class="lines">@@ -167,10 +167,10 @@
</span><span class="cx">          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
</span><span class="cx">         10.*)
</span><span class="cx">          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
</span><del>-Index: gcc-4.9.1/libquadmath/configure
</del><ins>+Index: libquadmath/configure
</ins><span class="cx"> ===================================================================
</span><del>---- gcc-4.9.1.orig/libquadmath/configure
-+++ gcc-4.9.1/libquadmath/configure
</del><ins>+--- libquadmath/configure.orig
++++ libquadmath/configure
</ins><span class="cx"> @@ -6986,7 +6986,7 @@ $as_echo "$lt_cv_ld_force_load" >&6; }
</span><span class="cx"> case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
</span><span class="cx">         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
</span><span class="lines">@@ -180,10 +180,10 @@
</span><span class="cx">          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
</span><span class="cx">         10.*)
</span><span class="cx">          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
</span><del>-Index: gcc-4.9.1/libsanitizer/configure
</del><ins>+Index: libsanitizer/configure
</ins><span class="cx"> ===================================================================
</span><del>---- gcc-4.9.1.orig/libsanitizer/configure
-+++ gcc-4.9.1/libsanitizer/configure
</del><ins>+--- libsanitizer/configure.orig
++++ libsanitizer/configure
</ins><span class="cx"> @@ -8506,7 +8506,7 @@ $as_echo "$lt_cv_ld_force_load" >&6; }
</span><span class="cx"> case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
</span><span class="cx">         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
</span><span class="lines">@@ -193,10 +193,10 @@
</span><span class="cx">          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
</span><span class="cx">         10.*)
</span><span class="cx">          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
</span><del>-Index: gcc-4.9.1/libssp/configure
</del><ins>+Index: libssp/configure
</ins><span class="cx"> ===================================================================
</span><del>---- gcc-4.9.1.orig/libssp/configure
-+++ gcc-4.9.1/libssp/configure
</del><ins>+--- libssp/configure.orig
++++ libssp/configure
</ins><span class="cx"> @@ -7123,7 +7123,7 @@ $as_echo "$lt_cv_ld_force_load" >&6; }
</span><span class="cx"> case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
</span><span class="cx">         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
</span><span class="lines">@@ -206,10 +206,10 @@
</span><span class="cx">          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
</span><span class="cx">         10.*)
</span><span class="cx">          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
</span><del>-Index: gcc-4.9.1/libstdc++-v3/configure
</del><ins>+Index: libstdc++-v3/configure
</ins><span class="cx"> ===================================================================
</span><del>---- gcc-4.9.1.orig/libstdc++-v3/configure
-+++ gcc-4.9.1/libstdc++-v3/configure
</del><ins>+--- libstdc++-v3/configure.orig
++++ libstdc++-v3/configure
</ins><span class="cx"> @@ -7856,7 +7856,7 @@ $as_echo "$lt_cv_ld_force_load" >&6; }
</span><span class="cx"> case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
</span><span class="cx">         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
</span><span class="lines">@@ -219,10 +219,10 @@
</span><span class="cx">          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
</span><span class="cx">         10.*)
</span><span class="cx">          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
</span><del>-Index: gcc-4.9.1/libvtv/configure
</del><ins>+Index: libvtv/configure
</ins><span class="cx"> ===================================================================
</span><del>---- gcc-4.9.1.orig/libvtv/configure
-+++ gcc-4.9.1/libvtv/configure
</del><ins>+--- libvtv/configure.orig
++++ libvtv/configure
</ins><span class="cx"> @@ -8614,7 +8614,7 @@ $as_echo "$lt_cv_ld_force_load" >&6; }
</span><span class="cx"> case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
</span><span class="cx">         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
</span><span class="lines">@@ -232,10 +232,10 @@
</span><span class="cx">          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
</span><span class="cx">         10.*)
</span><span class="cx">          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
</span><del>-Index: gcc-4.9.1/lto-plugin/configure
</del><ins>+Index: lto-plugin/configure
</ins><span class="cx"> ===================================================================
</span><del>---- gcc-4.9.1.orig/lto-plugin/configure
-+++ gcc-4.9.1/lto-plugin/configure
</del><ins>+--- lto-plugin/configure.orig
++++ lto-plugin/configure
</ins><span class="cx"> @@ -6804,7 +6804,7 @@ $as_echo "$lt_cv_ld_force_load" >&6; }
</span><span class="cx"> case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
</span><span class="cx">         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
</span><span class="lines">@@ -245,10 +245,10 @@
</span><span class="cx">          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
</span><span class="cx">         10.*)
</span><span class="cx">          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
</span><del>-Index: gcc-4.9.1/zlib/configure
</del><ins>+Index: zlib/configure
</ins><span class="cx"> ===================================================================
</span><del>---- gcc-4.9.1.orig/zlib/configure
-+++ gcc-4.9.1/zlib/configure
</del><ins>+--- zlib/configure.orig
++++ zlib/configure
</ins><span class="cx"> @@ -6594,7 +6594,7 @@ $as_echo "$lt_cv_ld_force_load" >&6; }
</span><span class="cx"> case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
</span><span class="cx">         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
</span></span></pre>
</div>
</div>
</body>
</html>