re PR target/71948 ([avr] Make progmem work on reduced Tiny cores by adding 0x4000...
authorGeorg-Johann Lay <avr@gjlay.de>
Mon, 1 Aug 2016 17:12:32 +0000 (17:12 +0000)
committerGeorg-Johann Lay <gjl@gcc.gnu.org>
Mon, 1 Aug 2016 17:12:32 +0000 (17:12 +0000)
PR target/71948
* config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
does not overlap with other symbol flags.

From-SVN: r238961

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

index 5d7616ef37c9bc3144729d2e4f55b34e96f8d9ac..795f1c7eee24dc4affd6948ebbdeed5960b23920 100644 (file)
@@ -1,3 +1,9 @@
+2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
+
+       PR target/71948
+       * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
+       does not overlap with other symbol flags.
+
 2016-08-01  Wilco Dijkstra  <wdijkstr@arm.com>
 
        * config/aarch64/aarch64.h (aarch64_frame):
index fba62d2c1653112f5e784ee532027f43240be66b..f6d73423728227d15496e886d3b28f01b21df798 100644 (file)
@@ -82,7 +82,7 @@
 
 /* (AVR_TINY only): Symbol has attribute progmem */
 #define AVR_SYMBOL_FLAG_TINY_PM \
-  (SYMBOL_FLAG_MACH_DEP << 4)
+  (SYMBOL_FLAG_MACH_DEP << 7)
 
 #define TINY_ADIW(REG1, REG2, I)                                \
     "subi " #REG1 ",lo8(-(" #I "))" CR_TAB                      \