This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/70044] [5/6 Regression] -flto turns on -fomit-frame-pointer
- From: "rguenther at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 03 Mar 2016 12:39:59 +0000
- Subject: [Bug lto/70044] [5/6 Regression] -flto turns on -fomit-frame-pointer
- Auto-submitted: auto-generated
- References: <bug-70044-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70044
--- Comment #2 from rguenther at suse dot de <rguenther at suse dot de> ---
On Thu, 3 Mar 2016, ktkachov at gcc dot gnu.org wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70044
>
> ktkachov at gcc dot gnu.org changed:
>
> What |Removed |Added
> ----------------------------------------------------------------------------
> CC| |rguenth at gcc dot gnu.org
>
> --- Comment #1 from ktkachov at gcc dot gnu.org ---
> Doesn't seem to happen on arm or x86_64.
> Who is responsible for recomputing the values of the optimisation options i.e.
> flag_omit_frame_pointer during LTO?
The backend is, LTO has the usual options langhooks and toplev calls
the corresponding target variants.
NOTE that -fomit-frame-pointer will appear in optimize attributes now
so setting/unsetting is expected to work.