This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/53621] [SH] Frame pointers not generated with -fno-omit-frame-pointer on GCC 4.7.0
- From: "chrbr at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 12 Jun 2012 06:25:09 +0000
- Subject: [Bug target/53621] [SH] Frame pointers not generated with -fno-omit-frame-pointer on GCC 4.7.0
- Auto-submitted: auto-generated
- References: <bug-53621-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53621
--- Comment #7 from chrbr at gcc dot gnu.org 2012-06-12 06:25:09 UTC ---
(In reply to comment #6)
> I thought that -pg and -fomit-frame-pointer are always incompatible.
> Agree with the possible issues for old unwinders.
>
> I've forgotten that sh coff targets went away. Then, removing that
> line might be enough.
> I'd like to approve any patches for this PR :-) It should be
> backported to the release branches, because this is a 4.6/4.7/4.8
> regression from 4.5, AFAIK.
I will remove it, but first I'd like to make a few other checks:
I had a look to see why this was broken since the 4.6, and it appears that the
line was well formed when it lived within the OPTIMIZATION_OPTION hook. However
it was removed and all the settings moved away first to the
TARGET_OPTION_OVERRIDE hook, which now is bogus.
in the 4.6 branch we could still use TARGET_OPTION_INIT_STRUCT but not in the
4.7. so the fix will certainly differ between branches.
So I'd prefer that all the internal variables that used to be set in
sh_optimization_option should be double checked.