[prev in list] [next in list] [prev in thread] [next in thread]
List: perl5-porters
Subject: lto
From: "H.Merijn Brand" <h.m.brand () xs4all ! nl>
Date: 2020-03-20 10:38:36
Message-ID: 20200320113836.6af2b973 () pc09 ! procura ! nl
[Download RAW message or body]
I was playing with -flto=auto
On #p5p I was pointed to
https://github.com/perl/perl5/issues/17068#issuecomment-544102616
Then I used the full set of options that openSUSE uses to build (some)
packages (as I was pointed to somewhere else)
ccflags="$ccflags -D_FORTIFY_SOURCE=2 -fstack-protector-strong
-funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection
-flto=auto -ffat-lto-objects -fno-strict-aliasing -D_REENTRANT"
And I noticed these two warnings that might be valuable for digging and
improvements:
ccache cc -L/pro/local/lib -fstack-protector-strong -o miniperl \
opmini.o perlmini.o gv.o toke.o perly.o pad.o regcomp.o dump.o util.o mg.o \
reentr.o mro_core.o keywords.o hv.o av.o run.o pp_hot.o sv.o pp.o scope.o pp_ctl.o \
pp_sys.o doop.o doio.o regexec.o utf8.o taint.o deb.o universal.o \
globals
.o perlio.o perlapi.o numeric.o mathoms.o locale.o pp_pack.o pp_sort.o caretx.o \
dquote.o time64.o miniperlmain.o -lpthread -ldl -lm -lcrypt -lutil -lc \
perl.h:7680:42: warning: type of 'PL_nan' does not match original declaration \
[-Wlto-type-mismatch] INFNAN_NV_U8_DECL PL_nan;
^
perl.h:7646:35: note: 'PL_nan' was previously declared here
INFNAN_U8_NV_DECL PL_nan = { { LONGDBLNANBYTES } };
^
perl.h:7679:42: warning: type of 'PL_inf' does not match original declaration \
[-Wlto-type-mismatch] INFNAN_NV_U8_DECL PL_inf;
^
perl.h:7610:35: note: 'PL_inf' was previously declared here
INFNAN_U8_NV_DECL PL_inf = { { LONGDBLINFBYTES } };
^
--
H.Merijn Brand http://tux.nl Perl Monger http://amsterdam.pm.org/
using perl5.00307 .. 5.31 porting perl5 on HP-UX, AIX, and Linux
https://useplaintext.email https://tux.nl http://www.test-smoke.org
http://qa.perl.org http://www.goldmark.org/jeff/stupid-disclaimers/
[Attachment #3 (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic