From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20820 invoked by alias); 17 Jun 2014 14:06:54 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 20811 invoked by uid 89); 17 Jun 2014 14:06:54 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.5 required=5.0 tests=AWL,BAYES_00,BODY_8BITS,FREEMAIL_FROM,GARBLED_BODY,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no 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, 17 Jun 2014 14:06:25 +0000 Received: by mail-we0-f177.google.com with SMTP id u56so7170424wes.22 for ; Tue, 17 Jun 2014 07:06:22 -0700 (PDT) X-Received: by 10.180.91.234 with SMTP id ch10mr37383088wib.37.1403013981061; Tue, 17 Jun 2014 07:06:21 -0700 (PDT) Received: from [90.152.228.69] (090152228069.atmpu0036.highway.a1.net. [90.152.228.69]) by mx.google.com with ESMTPSA id x3sm41364988een.17.2014.06.17.07.06.19 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 17 Jun 2014 07:06:20 -0700 (PDT) From: "Bernhard Reutner-Fischer" To: =?UTF-8?B?0JjQu9GM0Y8g0JzQuNGF0LDQu9GM0YbQvtCy?= , Date: Tue, 17 Jun 2014 14:06:00 -0000 Message-ID: <146aa2647f0.2763.0f39ed3bcad52ef2c88c90062b7714dc@gmail.com> In-Reply-To: <02D530CB-20AE-44AA-8D62-658F46915ACC@gmail.com> References: <02D530CB-20AE-44AA-8D62-658F46915ACC@gmail.com> User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 AquaMail/1.3.8 (build: 2100414) Subject: Re: Bug 61407 - Build errors on latest OS X 10.10 Yosemite with Xcode 6 on GCC 4.8.3 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2014-06/txt/msg01358.txt.bz2 On 17 June 2014 13:10:07 Илья Михальцов wrote: > index 892ba35..39f795f 100644 > --- a/gcc/config/darwin-c.c > +++ b/gcc/config/darwin-c.c > @@ -572,20 +572,31 @@ 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. > - Print a warning if the version number can't be understood. */ > + so '10.4.2' becomes 1040 and '10.10.0' becomes 101000. The lowest > + digit is always zero. 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 10.10 numeration for mactro changed */ What does "mactro" mean? macro? Thanks, Sent with AquaMail for Android http://www.aqua-mail.com