<!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>[128281] trunk/dports/lang/gcc49/files/Fix-__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__.patch</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/128281">128281</a></dd>
<dt>Author</dt> <dd>larryv@macports.org</dd>
<dt>Date</dt> <dd>2014-11-17 23:44:52 -0800 (Mon, 17 Nov 2014)</dd>
</dl>
<h3>Log Message</h3>
<pre>gcc49: Remove patch obsoleted by <a href="https://trac.macports.org/changeset/128280">r128280</a></pre>
<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkdportslanggcc49filesFix__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__patch">trunk/dports/lang/gcc49/files/Fix-__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__.patch</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkdportslanggcc49filesFix__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__patch"></a>
<div class="delfile"><h4>Deleted: trunk/dports/lang/gcc49/files/Fix-__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__.patch (128280 => 128281)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/lang/gcc49/files/Fix-__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__.patch        2014-11-18 07:41:00 UTC (rev 128280)
+++ trunk/dports/lang/gcc49/files/Fix-__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__.patch        2014-11-18 07:44:52 UTC (rev 128281)
</span><span class="lines">@@ -1,184 +0,0 @@
</span><del>-From gcc-patches-return-376219-listarch-gcc-patches=gcc dot gnu dot org at gcc dot gnu dot org Tue Aug 26 18:11:50 2014
-Return-Path: <gcc-patches-return-376219-listarch-gcc-patches=gcc dot gnu dot org at gcc dot gnu dot org>
-Delivered-To: listarch-gcc-patches at gcc dot gnu dot org
-Received: (qmail 25306 invoked by alias); 26 Aug 2014 18:11:50 -0000
-Mailing-List: contact gcc-patches-help at gcc dot gnu dot org; run by ezmlm
-Precedence: bulk
-List-Id: <gcc-patches.gcc.gnu.org>
-List-Archive: <http://gcc.gnu.org/ml/gcc-patches/>
-List-Post: <mailto:gcc-patches at gcc dot gnu dot org>
-List-Help: <mailto:gcc-patches-help at gcc dot gnu dot org>
-Sender: gcc-patches-owner at gcc dot gnu dot org
-Delivered-To: mailing list gcc-patches at gcc dot gnu dot org
-Received: (qmail 25285 invoked by uid 89); 26 Aug 2014 18:11:48 -0000
-Authentication-Results: sourceware.org; auth=none
-X-Virus-Found: No
-X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
-X-HELO: mail-we0-f177.google.com
-Received: from mail-we0-f177.google.com (HELO mail-we0-f177.google.com) (74.125.82.177) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 26 Aug 2014 18:11:47 +0000
-Received: by mail-we0-f177.google.com with SMTP id w62so15108145wes.36 for <gcc-patches@gcc.gnu.org>; Tue, 26 Aug 2014 11:11:44 -0700 (PDT)
-X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=jQ8aZHBAd6aQJ3IMFFUC1zIOTmzfBeJqWQhaseZNEsU=; b=RhREQ4ihhLt2jJtbfxJSCLGCo/lICme+YCyHeZpI/AzO1i+eTcMJ94dAcfmYVa3Sck Cf9oFxCOw3VU5kktoLrlatc24kJjYFpovV1UxFJco67XdorzR6mr0F6VQXH0gaC2g3Jz lqb4wLPhGIEzkCGn9JAUV7LKa+Sc2pBR8nZMVqiOiNSy0h08EUfP7q2uJk5OrJKpVMOK ekDdKFEvO8IwglW4WGjohbTADyprazBNjDfnBkML/1oKIgMUXgMlBiY7O2fhbnr4mGEz yDciKi9gsmxXY0+2r3VbzyXw+wXtJWlujzgfmv7ImN/0wQ2xfJMWbd1z450A/V+HK/PU b90g==
-X-Gm-Message-State: ALoCoQl0hzSRQSEGOgbvgyiep3ufqSqyioui3xbjhaWFUBFKcB9UvLGzQ95p/4hGHUfPlpQHv1JK
-X-Received: by 10.180.74.42 with SMTP id q10mr23507919wiv.39.1409076704756; Tue, 26 Aug 2014 11:11:44 -0700 (PDT)
-Received: from localhost.localdomain (host81-133-133-27.in-addr.btopenworld.com. [81.133.133.27]) by mx.google.com with ESMTPSA id cy9sm14548123wib.18.2014.08.26.11.11.43 for <multiple recipients> (version=TLSv1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 26 Aug 2014 11:11:44 -0700 (PDT)
-From: James Clarke <jrtc27 at jrtc27 dot com>
-To: gcc-patches at gcc dot gnu dot org
-Cc: James Clarke <jrtc27 at jrtc27 dot com>
-Subject: [PATCH v4 1/2] Fix __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
-Date: Tue, 26 Aug 2014 19:11:31 +0100
-Message-Id: <1409076692-65815-2-git-send-email-jrtc27@jrtc27.com>
-In-Reply-To: <1409076692-65815-1-git-send-email-jrtc27 at jrtc27 dot com>
-References: <1409076692-65815-1-git-send-email-jrtc27@jrtc27.com>
-
-Previously, this macro had taken the form 10X0, where X is the minor
-version number, e.g. 1090 for OS X 10.9 Mavericks. However, as of OS X
-10.10 Yosemite, it should take the form 10XX00, i.e. 101000 for 10.10.
-
-Added a test for the new format and fixed the formatting for the
-existing ones.
-
-gcc/ChangeLog:
-
- * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
- and above
- * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
- kernel version check to avoid incrementing it after every major OS X
- release
-
-gcc/testsuite/ChangeLog:
-
- * gcc.db/darwin-minversion-1.c: Fixed formatting
- * gcc.db/darwin-minversion-2.c: Fixed formatting
- * gcc.db/darwin-minversion-3.c: Fixed formatting
- * gcc.dg/darwin-minversion-4.c: Added test for OS X 10.10
----
- gcc/config/darwin-c.c | 25 +++++++++++++++++++------
- gcc/config/darwin-driver.c | 2 --
- gcc/testsuite/gcc.dg/darwin-minversion-1.c | 3 ++-
- gcc/testsuite/gcc.dg/darwin-minversion-2.c | 3 ++-
- gcc/testsuite/gcc.dg/darwin-minversion-3.c | 3 ++-
- gcc/testsuite/gcc.dg/darwin-minversion-4.c | 12 ++++++++++++
- 6 files changed, 37 insertions(+), 11 deletions(-)
- create mode 100644 gcc/testsuite/gcc.dg/darwin-minversion-4.c
-
-diff --git a/gcc/config/darwin-c.c b/gcc/config/darwin-c.c
-index 892ba35..7fe4b1f 100644
---- a/gcc/config/darwin-c.c
-+++ b/gcc/config/darwin-c.c
-@@ -571,21 +571,34 @@ find_subframework_header (cpp_reader *pfile, const char *header, cpp_dir **dirp)
- }
-
- /* 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. The lowest digit is always zero.
-+ __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. */
- static const char *
- version_as_macro (void)
- {
-- static char result[] = "1000";
-+ static char result[7] = "1000";
-+ int minorDigitIdx;
-
- if (strncmp (darwin_macosx_version_min, "10.", 3) != 0)
- goto fail;
- if (! ISDIGIT (darwin_macosx_version_min[3]))
- goto fail;
-- result[2] = darwin_macosx_version_min[3];
-- if (darwin_macosx_version_min[4] != '\0'
-- && darwin_macosx_version_min[4] != '.')
-+
-+ 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] != '.')
- goto fail;
-
- return result;
-diff --git a/gcc/config/darwin-driver.c b/gcc/config/darwin-driver.c
-index 8b6ae93..eb478e8 100644
---- a/gcc/config/darwin-driver.c
-+++ b/gcc/config/darwin-driver.c
-@@ -57,8 +57,6 @@ darwin_find_version_from_kernel (char *new_flag)
- version_p = osversion + 1;
- if (ISDIGIT (*version_p))
- major_vers = major_vers * 10 + (*version_p++ - '0');
-- if (major_vers > 4 + 9)
-- goto parse_failed;
- if (*version_p++ != '.')
- goto parse_failed;
- version_pend = strchr(version_p, '.');
-diff --git a/gcc/testsuite/gcc.dg/darwin-minversion-1.c b/gcc/testsuite/gcc.dg/darwin-minversion-1.c
-index d8a3243..6221d61 100644
---- a/gcc/testsuite/gcc.dg/darwin-minversion-1.c
-+++ b/gcc/testsuite/gcc.dg/darwin-minversion-1.c
-@@ -2,7 +2,8 @@
- /* { dg-options "-mmacosx-version-min=10.1" } */
- /* { dg-do run { target *-*-darwin* } } */
-
--int main(void)
-+int
-+main ()
- {
- #if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ != 1010
- fail me;
-diff --git a/gcc/testsuite/gcc.dg/darwin-minversion-2.c b/gcc/testsuite/gcc.dg/darwin-minversion-2.c
-index fd4975a..8e18d52 100644
---- a/gcc/testsuite/gcc.dg/darwin-minversion-2.c
-+++ b/gcc/testsuite/gcc.dg/darwin-minversion-2.c
-@@ -2,7 +2,8 @@
- /* { dg-options "-mmacosx-version-min=10.1 -mmacosx-version-min=10.3" } */
- /* { dg-do run { target *-*-darwin* } } */
-
--int main(void)
-+int
-+main ()
- {
- #if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ != 1030
- fail me;
-diff --git a/gcc/testsuite/gcc.dg/darwin-minversion-3.c b/gcc/testsuite/gcc.dg/darwin-minversion-3.c
-index d0c5934..4fcb969 100644
---- a/gcc/testsuite/gcc.dg/darwin-minversion-3.c
-+++ b/gcc/testsuite/gcc.dg/darwin-minversion-3.c
-@@ -2,7 +2,8 @@
- /* { dg-options "-mmacosx-version-min=10.4.10" } */
- /* { dg-do compile { target *-*-darwin* } } */
-
--int main(void)
-+int
-+main ()
- {
- #if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ != 1040
- fail me;
-diff --git a/gcc/testsuite/gcc.dg/darwin-minversion-4.c b/gcc/testsuite/gcc.dg/darwin-minversion-4.c
-new file mode 100644
-index 0000000..1cb42eb
---- /dev/null
-+++ b/gcc/testsuite/gcc.dg/darwin-minversion-4.c
-@@ -0,0 +1,12 @@
-+/* Test that major versions greater than 9 work and have the additional 0. */
-+/* { dg-options "-mmacosx-version-min=10.10.0" } */
-+/* { dg-do compile { target *-*-darwin* } } */
-+
-+int
-+main ()
-+{
-+#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ != 101000
-+ fail me;
-+#endif
-+ return 0;
-+}
---
-2.1.0
-
</del></span></pre>
</div>
</div>
</body>
</html>