This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/64052] New: compilation error "local frame unavailable" appears for some optimization levels
- From: "eugene at hutorny dot in.ua" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 24 Nov 2014 14:40:05 +0000
- Subject: [Bug c++/64052] New: compilation error "local frame unavailable" appears for some optimization levels
- Auto-submitted: auto-generated
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"