You are not logged in.

#1 2013-10-24 07:17:27

rubenvb
Member
Registered: 2011-01-14
Posts: 83

Build repo packages with link-time optimization

Hi,

I'm posting this here as a RFC. I looked through the build configuration I believe is used to build the official packages:
https://projects.archlinux.org/devtools … -i686.conf

And although the optimization stuff is OK, there's some room for general improvement. How about enabling link-time optimizations through the -flto C[XX]FLAGS and LDFLAGS? Various benchmarks show around 10% increase in final execution speed, and if not that, a definite size decrease in general. It's been in GCC since 4.5, so stability shouldn't be an issue, although I'm not 100% sure.

Offline

#2 2013-10-24 08:15:18

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,837

Re: Build repo packages with link-time optimization

This is a feature request, so post it in the bugtracker to get an official response.

Offline

#3 2013-10-24 08:53:16

rubenvb
Member
Registered: 2011-01-14
Posts: 83

Re: Build repo packages with link-time optimization

Offline

#4 2013-10-24 10:25:30

Allan
Developer
From: Brisbane, AU
Registered: 2007-06-09
Posts: 10,378
Website

Re: Build repo packages with link-time optimization

rubenvb wrote:

It's been in GCC since 4.5, so stability shouldn't be an issue, although I'm not 100% sure.

I have not been convinced by its stability yet.

Offline

#5 2013-10-24 14:43:03

pogeymanz
Member
Registered: 2008-03-11
Posts: 1,020

Re: Build repo packages with link-time optimization

Allan wrote:
rubenvb wrote:

It's been in GCC since 4.5, so stability shouldn't be an issue, although I'm not 100% sure.

I have not been convinced by its stability yet.

Just out of curiosity: what would it take for you to be convinced?

Offline

#6 2013-10-24 21:13:56

Allan
Developer
From: Brisbane, AU
Registered: 2007-06-09
Posts: 10,378
Website

Re: Build repo packages with link-time optimization

Compiling a bunch of packages and having it actually work...

Also, this was the final straw in rejecting this request: http://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html
"Link-time optimization does not work well with generation of debugging information. Combining -flto with -g is currently experimental and expected to produce wrong results. "

Offline

Board footer

Powered by FluxBB