delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
X-Recipient: | djgpp AT delorie DOT com |
X-Original-DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; |
d=gmail.com; s=20161025; | |
h=mime-version:in-reply-to:references:from:date:message-id:subject:to; | |
bh=MoGZF6qiv6kQfGnIvkC1mY2TaiBWl4QrqDVv3ZwKHjU=; | |
b=QVaY/XwdtcIOLjcflpQeVKo+1L8fpp6bmgjtwt5eiwSgRtNers9+K+F1v6hk0Dz/Kj | |
TJ+8xlj6IMePVcjAD8PjI9uIMKdbJLbbEcHl/ws/mV3AskMMFdXCZUDnvxnayIyg+vpZ | |
ZzKFy0IPwRXmxNCvqxDfMJZYv656WBuINefmPdqRvFQftKqzvacJVITapFQ1EEB1peha | |
axQfIWXStvEEAgeIY7GfcrkERtKyU1bhzTVvYRvojJpznRMa8mb+NQ5kYAHeY8K0xEdL | |
3CrXi1T4lw3NRm3VZFSEBBECL/spau/rEBr6jLkIReqYd5ZIr2baSxy0hbtJaFUb9pwz | |
14VA== | |
X-Google-DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; |
d=1e100.net; s=20161025; | |
h=x-gm-message-state:mime-version:in-reply-to:references:from:date | |
:message-id:subject:to; | |
bh=MoGZF6qiv6kQfGnIvkC1mY2TaiBWl4QrqDVv3ZwKHjU=; | |
b=O02OoBKSxfKn8CmxEkEMeJQtLh2H3PpS+A8ictyWydMmTVXYZ97sCPn9HCEUPFDhPR | |
vKx+sm2royW0JDrklEOFKzwT8tS73EBWKkXybXQEGZvbjW7+z4EVRNv8ILP0WgVKjLMC | |
AQeAcY9Rb2Hj1x/c9/OcvDEV828sx3e2wpQjnB0w1iYWiRJjylbheKj3LZtcH4+b/BJ5 | |
5zbEJnPlebJlHYs5xpzYThFfbALi77TocuADO8fmnDVDbqBfbi3SPxBJwb+enBW3B245 | |
hqZvIVsMc1iJgYi6uGO9Vbt6DdavkrsZLKbDgtbuSX4xonpkinfW8sj3fVEzCLcLf8RJ | |
d+Xw== | |
X-Gm-Message-State: | AOAM5333MLqgNL3dMyEER3IlESbGBmzVUhGl1pG3o2dgEcHhfSThjhaS |
1xxgBVwYMJj0MpieOu6NPWAlMtfMsmyue3A6e2ETRKIO | |
X-Google-Smtp-Source: | ABdhPJyKSGJfLSu+VdyrNfmLQLsMW8ofXN2LzYIrMf8NaeA4FrTpaL3DTJGKtfCPzYj671QqYy3JJ7OOd6e8KoilJnI= |
X-Received: | by 2002:a54:400f:: with SMTP id x15mr6459826oie.38.1607626588498; |
Thu, 10 Dec 2020 10:56:28 -0800 (PST) | |
MIME-Version: | 1.0 |
In-Reply-To: | <831rfx4ixg.fsf@gnu.org> |
References: | <5FD1FEA1 DOT 7010304 AT gmx DOT de> <8816d501-9f33-4d68-4235-1935a83580f6 AT gmail DOT com> |
<CAA2C=vACivjbYiU7yVpyFdzKjjKB10E1tvqShLPQ6i31cuKrDA AT mail DOT gmail DOT com> | |
<111383e4-b3db-f346-b71c-749dee17dc9e AT gmail DOT com> <CAA2C=vDL+YWHssNteT71jUNxYAJkxwiNXrKp1O618tY6bHHcxg AT mail DOT gmail DOT com> | |
<831rfx4ixg DOT fsf AT gnu DOT org> | |
From: | "Ozkan Sezer (sezeroz AT gmail DOT com) [via djgpp AT delorie DOT com]" <djgpp AT delorie DOT com> |
Date: | Thu, 10 Dec 2020 21:56:27 +0300 |
Message-ID: | <CAA2C=vA0rCDsZk1ou75XcU9tGRO8c7JzJVU5xuG6Q5Q9GeFO5g@mail.gmail.com> |
Subject: | Re: Difficulties compiling libc from repository using gcc 10.N.0 |
To: | djgpp AT delorie DOT com |
Reply-To: | djgpp AT delorie DOT com |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | djgpp AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
On 12/10/20, Eli Zaretskii (eliz AT gnu DOT org) [via djgpp AT delorie DOT com] <djgpp AT delorie DOT com> wrote: >> --- src/libc/ansi/stdlib/exit.c 2 May 2015 07:32:10 -0000 1.9 >> +++ src/libc/ansi/stdlib/exit.c 10 Dec 2020 17:39:43 -0000 >> @@ -15,7 +15,7 @@ >> >> struct __atexit *__atexit_ptr = 0; >> >> -void (*__stdio_cleanup_hook)(void); >> +extern void (*__stdio_cleanup_hook)(void); /* stdio/stdiohk.c */ > > This part I don't understand: are you saying that it is no longer the > default that a function not explicitly declared 'static' has the > external linkage? Why do we need an explicit 'extern' qualifier? If I understand your question correctly, the function pointer __stdio_cleanup_hook is not static. It is defined both in stdlib/exit.c and in stdio/stdiohk.c, hence the issues with -fno-common.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |