X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:to:from:subject:message-id:date:mime-version
	:content-type:content-transfer-encoding; q=dns; s=default; b=rJy
	1SeP6WTopy5Oe8ZiiwcqDF/qa1p5LTqp72qUBjkrPTCIcNNLkHt7GGvlu0JrYcwD
	XJNRW5TgN7t56V+C7kDxsT/ihMIBN/ZNzGzFNGk6W4eHZGvYIDEopEBLxq2D9zuw
	sI+VOLo0ANmEkHqa7y9gG9Sc7HlHNIORKgf1FKt0=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:to:from:subject:message-id:date:mime-version
	:content-type:content-transfer-encoding; s=default; bh=ZCaEnAhvv
	Iz2rzkGQWNoPUf0lyo=; b=ZkzTGBXr5uDhFmKYFI7ldJe9Qoi/FsFKtgRNWevei
	QMWOHYpqVIbxjvs1ij6hubJtvGipJIXtRFU7u82mxuvnRd69n0H3L+HnTv7IwwSL
	17qggMV99/y20jsPMneeJMRUt4xezpo7wp0KBRGU+K1F+boZaCccUUKF5B8LN4HS
	Jg=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=Hx-languages-length:1888, HX-Received:Sat, HContent-Transfer-Encoding:8bit
X-HELO: mail-wm0-f51.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=1e100.net; s=20161025;        h=x-gm-message-state:to:from:subject:message-id:date:user-agent         :mime-version:content-language:content-transfer-encoding;        bh=E62MIzdvyrhsn5jfV8uYbhS/i6YSmts2AtG09JI75+g=;        b=sZ2ZUBZEyck+Kn6MVy3EQHQJ9wowFtLb8QwIlOvyHRzeFKym1g0FSSsqC6vxzNQ+EQ         DLGXzy6OA+ph7SonNCLGaE4/CJEvyGzMfUq7qF4xPim08LdoHz760Giepq+cK9eIuzGa         bZtCApNQZyz/hu57qVzpZfmgnqc1NpJONSFJPqfLkrrsX30J0zOr6YAUDH9JQtJWLjEC         rlqCHkCUz8HtMZYj5JePq17K1JJUkkRiyQ2j+p+uUlaQISCGR1wEbAn9aFRyJNAMmu7N         o3npzPVdI7VvA2WjT/jEhmeJjZ8GKmeWfxkGHJwIf+Fzu87b8crHydx6ZdhsysfUgs2u         DIfA==
X-Gm-Message-State: AHPjjUj4Bob0C1fjRjf1WjugkEO40B/iWZmYzM2iol472hshrIeCv4x7	0Ol5QvIXOE8ugjnR
X-Google-Smtp-Source: ADKCNb6bMBQ1Qg2nwwhszv4CEr6lVk5l140wbbsng4m6xaaqeUqx7+1HqyORHbYBEPuc0trlqbXBrw==
X-Received: by 10.80.163.184 with SMTP id s53mr749381edb.189.1504349743551;        Sat, 02 Sep 2017 03:55:43 -0700 (PDT)
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
From: Marco Atzeri <marco.atzeri@gmail.com>
Subject: putchar and putchar_unlocked have different scope ?
Message-ID: <e0a17c2e-d4de-ea3b-0476-68cb11ae6e76@gmail.com>
Date: Sat, 2 Sep 2017 12:55:34 +0200
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
X-IsSubscribed: yes

Trying to build gcc-6.3.0-2 with its source package on
cygwin  2.9.0-0.2


x86_64-pc-cygwin-g++ -std=gnu++98 -c   -g -DIN_GCC     -fno-exceptions 
-fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing 
-Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute 
-Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros 
-Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H -DGENERATOR_FILE 
-fno-PIE -I. -Ibuild 
-I/cygdrive/e/cyg_pub/devel/gcc/gcc-6.3.0-2.src/gcc-6.3.0-2.x86_64/src/gcc-6.3.0/gcc 
-I/cygdrive/e/cyg_pub/devel/gcc/gcc-6.3.0-2.src/gcc-6.3.0-2.x86_64/src/gcc-6.3.0/gcc/build 
-I/cygdrive/e/cyg_pub/devel/gcc/gcc-6.3.0-2.src/gcc-6.3.0-2.x86_64/src/gcc-6.3.0/gcc/../include 
 
-I/cygdrive/e/cyg_pub/devel/gcc/gcc-6.3.0-2.src/gcc-6.3.0-2.x86_64/src/gcc-6.3.0/gcc/../libcpp/include 
  \
         -o build/genchecksum.o 
/cygdrive/e/cyg_pub/devel/gcc/gcc-6.3.0-2.src/gcc-6.3.0-2.x86_64/src/gcc-6.3.0/gcc/genchecksum.c
echo "      return Relocate_Path (S0, S2);" >>tmp-sdefault.adb
echo "   end Object_Dir_Default_Name;" >>tmp-sdefault.adb
echo "   function Target_Name return String_Ptr is" >>tmp-sdefault.adb
In file included from 
/cygdrive/e/cyg_pub/devel/gcc/gcc-6.3.0-2.src/gcc-6.3.0-2.x86_64/src/gcc-6.3.0/gcc/system.h:46:0,
                  from 
/cygdrive/e/cyg_pub/devel/gcc/gcc-6.3.0-2.src/gcc-6.3.0-2.x86_64/src/gcc-6.3.0/gcc/gengenrtl.c:22:
/cygdrive/e/cyg_pub/devel/gcc/gcc-6.3.0-2.src/gcc-6.3.0-2.x86_64/src/gcc-6.3.0/gcc/gengenrtl.c: 
In function ‘void genheader()’:
/cygdrive/e/cyg_pub/devel/gcc/gcc-6.3.0-2.src/gcc-6.3.0-2.x86_64/src/gcc-6.3.0/gcc/system.h:87:22: 
error: ‘_putchar_unlocked’ was not declared in this scope
  #  define putchar(C) putchar_unlocked (C)
                       ^
/cygdrive/e/cyg_pub/devel/gcc/gcc-6.3.0-2.src/gcc-6.3.0-2.x86_64/src/gcc-6.3.0/gcc/gengenrtl.c:298:3: 
note: in expansion of macro ‘putchar’
    putchar ('\n');
    ^~~~~~~

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

