public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/64052] New: compilation error "local frame unavailable" appears for some optimization levels
@ 2014-11-24 14:40 eugene at hutorny dot in.ua
  2014-11-24 16:14 ` [Bug target/64052] " rguenth at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: eugene at hutorny dot in.ua @ 2014-11-24 14:40 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64052

            Bug ID: 64052
           Summary: compilation error "local frame unavailable" appears
                    for some optimization levels
           Product: gcc
           Version: 4.7.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: eugene at hutorny dot in.ua
              Host: Linux 2.6.32-5-686
            Target: avr

Created attachment 34097
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34097&action=edit
code sample illustrating the issue

Compilation success of the attached example depend on the optimization
settings: with optimize("O0") compilation fails with error _local frame
unavailable (naked function?)_ while with optimize("Os") it succeeds.

Expected behavior -  optimization option has no effect on compilation success

avr-g++ (GCC) 4.7.2 

Command line:
avr-g++ -Wall -fpack-struct -fshort-enums -funsigned-char -funsigned-bitfields
-fno-exceptions -mmcu=atmega16 -DF_CPU=1000000UL -MMD -MP
-MF"local_frame_test.d" -MT"local_frame_test.d" -c -o "local_frame_test.o"
"local_frame_test.cpp"


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-02-16 18:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-24 14:40 [Bug c++/64052] New: compilation error "local frame unavailable" appears for some optimization levels eugene at hutorny dot in.ua
2014-11-24 16:14 ` [Bug target/64052] " rguenth at gcc dot gnu.org
2014-11-25 18:24 ` eugene at hutorny dot in.ua
2014-11-29 20:27 ` gjl at gcc dot gnu.org
2014-11-29 20:41 ` eugene at hutorny dot in.ua
2015-02-16 18:09 ` gjl at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).