This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
-flto=N
- From: Dilyan Palauzov <dilyan dot palauzov at aegee dot org>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 15 Jul 2015 17:44:53 +0200
- Subject: -flto=N
- Authentication-results: sourceware.org; auth=none
- Authentication-results: aegeeserv.aegee.org; auth=pass (PLAIN) smtp.auth=didopalauzov
- Authentication-results: mail.aegee.org; dkim=none
- Dkim-filter: OpenDKIM Filter v2.10.3 smtp.aegee.org t6FFica5019868
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?
Thanks
Dilian