This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: -flto=N
- From: Markus Trippelsdorf <markus at trippelsdorf dot de>
- To: Dilyan Palauzov <dilyan dot palauzov at aegee dot org>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Wed, 15 Jul 2015 20:07:02 +0200
- Subject: Re: -flto=N
- Authentication-results: sourceware.org; auth=none
- References: <55A67FF5 dot 2030209 at aegee dot org>
On 2015.07.15 at 17:44 +0200, Dilyan Palauzov wrote:
> Hello,
>
> to my understanding -flto is passed during the generation of object
> files and GIMPLE, but not to the linker / or linker plugin/. In
> particular, with -fno-fat-lto-objects the linker(-plugin) has to
> conclude that it has to make LTO.
>
> The documentation about -flto in 4.9.3 says, that it shall be provided
> at link-time, but GCC can automatically deduce it, if any .o file was
> compiled with -flto.
>
> Question:
> Has the N in -flto=N only effect, if it is explicitly provided to gcc
> at link time?
Yes.
--
Markus