This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/48459] [4.6/4.7 Regression] avr: Assertion failure with -gdwarf-2
- From: "anitha.boyapati at atmel dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 9 Jun 2011 16:54:15 +0000
- Subject: [Bug debug/48459] [4.6/4.7 Regression] avr: Assertion failure with -gdwarf-2
- Auto-submitted: auto-generated
- References: <bug-48459-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48459
--- Comment #5 from Anitha Boyapati <anitha.boyapati at atmel dot com> 2011-06-09 16:54:11 UTC ---
(In reply to comment #4)
> Created attachment 24475 [details]
> patch
>
> Here's an untested patch. Does this fix the problem for you? Naturally you'll
> want to revert it once dwarf2 unwind info is supported.
I don't think this is a proper fix. Current GCC trunk already has support for
DWARF2 CFI emission. But as per internals, emitting CFI can be optional. So
unless DWARF2_UNWIND_INFO or INCOMING_RETURN_ADDR_RTX is defined, the function
initial_return_save() should not be invoked.