re PR target/49939 ([avr] Skip 2-word instructions if applicable)
authorGeorg-Johann Lay <avr@gjlay.de>
Wed, 29 Feb 2012 09:50:19 +0000 (09:50 +0000)
committerGeorg-Johann Lay <gjl@gcc.gnu.org>
Wed, 29 Feb 2012 09:50:19 +0000 (09:50 +0000)
PR target/49939
* config/avr/avr.h (ASM_SPEC): Add -mno-skip-bug if we know that
the device does not have the skip-bug.

From-SVN: r184656

gcc/ChangeLog
gcc/config/avr/avr.h

index d53ff229059b2c9c24d926ce74e97afe13a1a5e2..361c7806236091d325f467eb74d58ab169d140f1 100644 (file)
@@ -1,3 +1,9 @@
+2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
+
+       PR target/49939
+       * config/avr/avr.h (ASM_SPEC): Add -mno-skip-bug if we know that
+       the device does not have the skip-bug.
+
 2012-02-29  Oleg Endo  <olegendo@gcc.gnu.org>
 
        * doc/invoke.texi (-msoft-atomic): Add more detailed description.
index b051c4b99ee2f405051e87db69c87cff1ef41647..8488e15dcad72c4d1a67aca6e38014522a6529aa 100644 (file)
@@ -595,7 +595,9 @@ extern const char *avr_device_to_devicelib (int argc, const char **argv);
    pass to `cc1plus'.  */
 
 #define ASM_SPEC "%{mmcu=avr25:-mmcu=avr2;mmcu=avr35:-mmcu=avr3;mmcu=avr31:-mmcu=avr3;mmcu=avr51:-mmcu=avr5;\
-mmcu=*:-mmcu=%*}"
+mmcu=*:-mmcu=%*} \
+%{mmcu=*:%{!mmcu=avr2:%{!mmcu=at90s8515:%{!mmcu=avr31:%{!mmcu=atmega103:\
+-mno-skip-bug}}}}}"
 
 #define LINK_SPEC "\
 %{mrelax:--relax\