[Bug c/86080] New: Using FLTO ends up in huge package size (jansson zeromq zlib)

2018-06-07 Thread vinibali1 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86080

Bug ID: 86080
   Summary: Using FLTO ends up in huge package size (jansson
zeromq zlib)
   Product: gcc
   Version: 8.1.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
  Assignee: unassigned at gcc dot gnu.org
  Reporter: vinibali1 at gmail dot com
  Target Milestone: ---

Created attachment 44243
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44243&action=edit
jansson.7z

Hello there!

I used to play with the compiler options of GCC. These days I was recompiling
the packages of my machine using the PKGBUILD files provided by the Arch
community and I just found a few packages became bigger when using the flto=4
parameter.
0s  0s flto 02  02 flto
jansson 142,00 KiB  419,00 KiB  163,00 KiB  433,00 KiB
zeromq  2,15 MiB8,04 MiB2,46 MiB7,30 MiB
zlib293,00 KiB  717,00 KiB  327,00 KiB  752,00 KiB

For compiled packages and screenshots please look at the attachment.
AMD AthlonII X4 605e
Linux 4.16.13-2-zen
gcc 8.1.1+20180531-1
CFLAGS="-march=x86-64 -mtune=generic -[0s,O2] [-flto=4,] -pipe
-fstack-protector-strong -fno-plt"

PKGBUILDs
https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/jansson
https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/zeromq
https://git.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/zlib

Thank you

[Bug c/86080] Using FLTO ends up in huge package size (jansson zeromq zlib)

2018-06-07 Thread vinibali1 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86080

--- Comment #1 from Balazs Vinarz  ---
Created attachment 44244
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44244&action=edit
zlib.7z

[Bug c/86080] Using FLTO ends up in huge package size (jansson zeromq zlib)

2018-06-07 Thread vinibali1 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86080

--- Comment #2 from Balazs Vinarz  ---
Created attachment 44245
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44245&action=edit
jansson.png

[Bug c/86080] Using FLTO ends up in huge package size (jansson zeromq zlib)

2018-06-07 Thread vinibali1 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86080

--- Comment #4 from Balazs Vinarz  ---
Created attachment 44247
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44247&action=edit
zlib.png

[Bug c/86080] Using FLTO ends up in huge package size (jansson zeromq zlib)

2018-06-07 Thread vinibali1 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86080

--- Comment #3 from Balazs Vinarz  ---
Created attachment 44246
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44246&action=edit
zeromq.png

[Bug c/86080] Using FLTO ends up in huge package size (jansson zeromq zlib)

2018-06-07 Thread vinibali1 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86080

--- Comment #5 from Balazs Vinarz  ---
Link for the zeromq.7z:
https://drive.google.com/open?id=15GwJ8EnlxYzFUHtzf30mf4gxqC74l1p6

[Bug lto/86080] Using FLTO ends up in huge package size (jansson zeromq zlib)

2018-06-14 Thread vinibali1 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86080

--- Comment #7 from Balazs Vinarz  ---
Thank you Richard