delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/03/06/03:29:23

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 255D0386F01D
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1615019358;
bh=Amp5kpxx7cLpYskA0aUqARo/aA+NMpFkf54LsP3NIqE=;
h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=KpzszfnV/9ppF6tY+8qMMj9ucJ+UgmlBp2+zU9oSVC1tXpL8Ui74U+GXvZtCDnb+s
7JvQODYucRg5oEA9OqbC2Hlsf4e+q+9G1/JEqYdzdExggozX2v68XaGWMDJMwu7A1R
6KxHqkU5BpOCZ85BV5wMygOznHsi6QH7ROIkWb+s=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 39ED83857C77
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:subject:to:references:from:message-id:date
:user-agent:mime-version:in-reply-to:content-language
:content-transfer-encoding;
bh=p9gc8lNoz+yWkoI1IltWS6Jai5r2+L2Jq6yJ45qYxXA=;
b=gXt02hNwxR5tSv3bbsVox+yj99kflLKi+jBSarWI6mSs4qdbTZlZt6rxZExchwky0b
B0IDl2vrjQ5ScdXPjkqMkaME307OW2BBk33kXsZpfwBD2TOQ4tGmsjgXz6+Fl8Ye3E4v
l0ha8KmZM1KLc0k4zoobNlxZEGLSPTUwECnytJrd/uHIgWgPFcD4vw4w45xbK8gQdoic
mHX8QkNtxt8Zi3QYLqmenxX+bxDMa5lHoUkhnTgWzxhSog2VH33ttq57mlX1AowC1vGG
XQKvw6oJhk3C2B05woXKTylMjQhb4LdwDdaewTUh/J7JrhMc3rCr9eWoAUbqq4u8x5xE
1WKA==
X-Gm-Message-State: AOAM533NbUzgppTvHtcFK1VWNJtzaWyXcSLVS6h9vGSRz8aROnlnDZR2
tb7pyx7/w3vJIgIoPisX87uwnP1dNtzgJQ==
X-Google-Smtp-Source: ABdhPJzKR1iCvYNYYlsSUeoYatPSaFigaH1xai88YR4u4NQwDZ+yL8PppcfirQdpMu6BP5fPE+32wg==
X-Received: by 2002:a50:fc94:: with SMTP id f20mr13068513edq.370.1615019350332;
Sat, 06 Mar 2021 00:29:10 -0800 (PST)
Subject: Re: stack grow direction wrongly detected
To: cygwin AT cygwin DOT com
References: <6eded5d3-93f3-7c98-5055-ee5ac2566bc8 AT gmail DOT com>
<20210305233104 DOT 782838da83161a90f56a5369 AT nifty DOT ne DOT jp>
<YEJDjnDYbV7RXsqw AT xps13>
Message-ID: <6dd2f48b-89d6-ce58-c8c1-bb8a351128c2@gmail.com>
Date: Sat, 6 Mar 2021 09:29:09 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.8.0
MIME-Version: 1.0
In-Reply-To: <YEJDjnDYbV7RXsqw@xps13>
X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, NICE_REPLY_A,
RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS,
TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Marco Atzeri via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Marco Atzeri <marco DOT atzeri AT gmail DOT com>
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

On 05.03.2021 15:43, gs-cygwin DOT com AT gluelogic DOT com wrote:
> On Fri, Mar 05, 2021 at 11:31:04PM +0900, Takashi Yano via Cygwin wrote:
>> On Fri, 5 Mar 2021 13:18:38 +0100
>> Marco Atzeri wrote:
>>> Hi Guys,
>>> noted trying to rebuild guile 1.8.8.
>>>
>>> The following piece of code in the past
>>> was setting SCM_I_GSC_STACK_GROWS_UP=0
>>> and now produces SCM_I_GSC_STACK_GROWS_UP=1
>>>
>>> I assume some change in the gcc compiler is causing the issue.
>>> I presume most of the programs and libraries do not care,
>>> but some special one like guile crashes during build for this issue,
>>> so be aware.
>>>
>>> Regards
>>> Marco
>>>

> 
> If the compiler is gcc or clang:
> 
> __attribute__(__noinline__)

thanks Glenn,

as
__attribute__((__noinline__))

it seems to work
for all variant of -Ox

> int
> find_stack_direction ()
> {
> ...
> }
> 
> Cheers, Glenn

Regards
Marco

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019