Fix thinko from r179765
authorGeorg-Johann Lay <avr@gjlay.de>
Fri, 14 Oct 2011 16:42:24 +0000 (16:42 +0000)
committerGeorg-Johann Lay <gjl@gcc.gnu.org>
Fri, 14 Oct 2011 16:42:24 +0000 (16:42 +0000)
Fix thinko from r179765
* config/avr/avr.c (avr_option_override): Don't override
flag_omit_frame_pointer if not actually needed.

From-SVN: r179994

gcc/ChangeLog
gcc/config/avr/avr.c

index add57f01efb04752c012ee0777b3d064ee8e769f..48b703c09e7685b189455e3bd6f042cbd8c4b33d 100644 (file)
@@ -1,3 +1,9 @@
+2011-10-14  Georg-Johann Lay  <avr@gjlay.de>
+
+       Fix thinko from r179765
+       * config/avr/avr.c (avr_option_override): Don't override
+       flag_omit_frame_pointer if not actually needed.
+       
 2011-10-14  Georg-Johann Lay  <avr@gjlay.de>
 
        PR target/46278
index d34ac6a81803c36153fdb50d10ab23d7d34bbd62..22db97dabadf25fd454d45670eb53f5f2c429452 100644 (file)
@@ -372,10 +372,6 @@ avr_option_override (void)
     {
       flag_omit_frame_pointer = 0;
     }
-  else
-    {
-      flag_omit_frame_pointer = (optimize >= 1);
-    }
 
   avr_current_device = &avr_mcu_types[avr_mcu_index];
   avr_current_arch = &avr_arch_types[avr_current_device->arch];