From 3ce9aa832b64b5e953c2a16965f8d5d581787d16 Mon Sep 17 00:00:00 2001 From: Georg-Johann Lay Date: Mon, 1 Aug 2016 17:12:32 +0000 Subject: [PATCH] re PR target/71948 ([avr] Make progmem work on reduced Tiny cores by adding 0x4000 to symbols) 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 | 6 ++++++ gcc/config/avr/avr.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5d7616ef37c..795f1c7eee2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2016-08-01 Georg-Johann Lay + + 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 * config/aarch64/aarch64.h (aarch64_frame): diff --git a/gcc/config/avr/avr.c b/gcc/config/avr/avr.c index fba62d2c165..f6d73423728 100644 --- a/gcc/config/avr/avr.c +++ b/gcc/config/avr/avr.c @@ -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 \