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 MiB        8,04 MiB        2,46 MiB        7,30 MiB
zlib    293,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

Reply via email to