From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 3290 invoked from network); 21 Jul 2020 23:42:08 -0000 Received: from ns1.primenet.com.au (HELO primenet.com.au) (203.24.36.2) by inbox.vuxu.org with ESMTPUTF8; 21 Jul 2020 23:42:08 -0000 Received: (qmail 27552 invoked by alias); 21 Jul 2020 23:42:00 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: Sender: zsh-workers@zsh.org X-Seq: 46256 Received: (qmail 6701 invoked by uid 1010); 21 Jul 2020 23:42:00 -0000 X-Qmail-Scanner-Diagnostics: from mail-vk1-f177.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.3/25877. spamassassin: 3.4.4. Clear:RC:0(209.85.221.177):SA:0(-2.0/5.0):. Processed in 1.222248 secs); 21 Jul 2020 23:42:00 -0000 X-Envelope-From: kloczko.tomasz@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.221.177 as permitted sender) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=XfrxidNJn2pW+e+x3ZA/Pib8+avAAQPiurd4kkMSe28=; b=h9FE+G31Nd7mhvLHgUR4nAf4MYJ2FoeAPE/7hJl/WhTgVSmh27Q5QQk7dCGNctGztt fQIDu0U2qDn+amGFZbG8NiRanleuQiHmhlT6hz8Vw010xLYBYByA/+oGG0F7mi3buKaC g2ayKzxkh1BbkZK7mEwBe1m1eQGNhTqJHk2qZB3DSiaDo0wPTdm8X/uUf2FuMb3BUnWQ zDq+XGUMGI5TuLf+OALUnMfpffDZ3vzR8NaMI6EbLbtcou3eE12kHbuJfQf97qL6HRuw /VmS09qC3QT6vxxYPiHwifMEIvBtxMRbJxqAUsXOVPfpEZS4tPnrjzHT1y0pzNyYsnQI g8Zg== X-Gm-Message-State: AOAM53277Dx+ee1fBJOttyeMqDzYuByIZD8BkUjKyoDcS0KIgOR3rD2L Q9ItB8BtDhZZySOGA5wqwg2Cd0DA+m8e7/R8t9y3tuMVsh0= X-Google-Smtp-Source: ABdhPJzaxnBWfeb8K9Ic83By3dS3CfoFcK1DEJujLiTX2I5ObsHs3IHgJBDWhs1tw19unaEFiXGu1ESLhfZGQsI9Skc= X-Received: by 2002:a05:6122:1dc:: with SMTP id h28mr21602460vko.67.1595374885695; Tue, 21 Jul 2020 16:41:25 -0700 (PDT) MIME-Version: 1.0 From: =?UTF-8?Q?Tomasz_K=C5=82oczko?= Date: Wed, 22 Jul 2020 00:41:00 +0100 Message-ID: Subject: 5.8: LTO exposes some new issues To: zsh-workers@zsh.org Content-Type: multipart/alternative; boundary="0000000000005875d305aafc2954" --0000000000005875d305aafc2954 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Looks like by using LTO is possible to expose new source code issues. Also looks like zsh still is using mktemp() gcc -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=3D/usr/lib/rpm/redhat/redhat-hardened-ld -flto=3Dauto -flto-partition=3Dnone -fuse-linker-plugin -rdynamic -o zsh main.o `cat stamp-modobjs` -lpcre -ldl -lncursesw -ltinfo -lrt -lm -lc hist.epro:19:18: warning: type of 'histtab' does not match original declaration [-Wlto-type-mismatch] 19 | extern HashTable histtab; | ^ hist.c:101:11: note: 'histtab' was previously declared here 101 | HashTable histtab; | ^ hist.c:101:11: note: code may be misoptimized unless '-fno-strict-aliasing' is used hashtable.epro:21:38: warning: type of 'cmdnamtab' does not match original declaration [-Wlto-type-mismatch] 21 | extern mod_import_variable HashTable cmdnamtab; | ^ hashtable.c:585:22: note: 'cmdnamtab' was previously declared here 585 | mod_export HashTable cmdnamtab; | ^ hashtable.c:585:22: note: code may be misoptimized unless '-fno-strict-aliasing' is used hashtable.epro:33:38: warning: type of 'aliastab' does not match original declaration [-Wlto-type-mismatch] 33 | extern mod_import_variable HashTable aliastab; | ^ hashtable.c:1172:22: note: 'aliastab' was previously declared here 1172 | mod_export HashTable aliastab; | ^ hashtable.c:1172:22: note: code may be misoptimized unless '-fno-strict-aliasing' is used hashtable.epro:34:38: warning: type of 'sufaliastab' does not match original declaration [-Wlto-type-mismatch] 34 | extern mod_import_variable HashTable sufaliastab; | ^ hashtable.c:1177:22: note: 'sufaliastab' was previously declared here 1177 | mod_export HashTable sufaliastab; | ^ hashtable.c:1177:22: note: code may be misoptimized unless '-fno-strict-aliasing' is used hashtable.epro:31:38: warning: type of 'reswdtab' does not match original declaration [-Wlto-type-mismatch] 31 | extern mod_import_variable HashTable reswdtab; | ^ hashtable.c:1109:22: note: 'reswdtab' was previously declared here 1109 | mod_export HashTable reswdtab; | ^ hashtable.c:1109:22: note: code may be misoptimized unless '-fno-strict-aliasing' is used hashtable.epro:25:38: warning: type of 'shfunctab' does not match original declaration [-Wlto-type-mismatch] 25 | extern mod_import_variable HashTable shfunctab; | ^ hashtable.c:803:22: note: 'shfunctab' was previously declared here 803 | mod_export HashTable shfunctab; | ^ hashtable.c:803:22: note: code may be misoptimized unless '-fno-strict-aliasing' is used utils.c: In function 'getkeystring': lto1: warning: function may return address of local variable [-Wreturn-local-addr] utils.c:6644:16: note: declared here 6644 | char *buf, tmp[1]; | ^ /usr/bin/ld: zsh.lto.o: in function `gettempname': /home/tkloczko/rpmbuild/BUILD/zsh-5.8/Src/utils.c:2226: warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp' kloczek --=20 Tomasz K=C5=82oczko | LinkedIn: *http://lnkd.in/FXPWxH * --0000000000005875d305aafc2954--