This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/67025] Missing aggressive loop optimization warning when -fPIC used
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 03 Aug 2016 06:24:16 +0000
- Subject: [Bug c/67025] Missing aggressive loop optimization warning when -fPIC used
- Auto-submitted: auto-generated
- References: <bug-67025-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67025
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Not a bug and here is why:
With -fPIC foo is considered as being able to be overridden at runtime so it
cannot be inlined into main.
Without -fPIC, since foo cannot be changed at runtime and it is called once and
it is small, it gets inline.