aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorSenthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>2016-07-06 11:40:17 +0000
committerSenthil Kumar Selvaraj <saaadhu@gcc.gnu.org>2016-07-06 11:40:17 +0000
commit7b4e076985f2c41f93fb8d8f89183ef1244f98ae (patch)
treed0392d7b3b94a0bbf2cfc9cf05df88584da7b228 /gcc/config
parenteb4432f7044e342fa527c2ca6c3991bebb92e874 (diff)
downloadgcc-7b4e076985f2c41f93fb8d8f89183ef1244f98ae.zip
gcc-7b4e076985f2c41f93fb8d8f89183ef1244f98ae.tar.gz
gcc-7b4e076985f2c41f93fb8d8f89183ef1244f98ae.tar.bz2
re PR target/50739 ([avr] nameless error with -fmerge-all-constants)
Fix PR target/50739 This patch fixes a problem with fmerge-all-constants and the progmem attribute. gcc/ PR target/50739 * config/avr/avr.c (avr_asm_select_section): Strip off SECTION_DECLARED from flags when calling get_section. testsuite/ PR target/50739 * gcc.target/avr/pr50739.c: New test From-SVN: r238041
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/avr/avr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/config/avr/avr.c b/gcc/config/avr/avr.c
index 18ed766..7371f29 100644
--- a/gcc/config/avr/avr.c
+++ b/gcc/config/avr/avr.c
@@ -9641,7 +9641,9 @@ avr_asm_select_section (tree decl, int reloc, unsigned HOST_WIDE_INT align)
{
const char *sname = ACONCAT ((new_prefix,
name + strlen (old_prefix), NULL));
- return get_section (sname, sect->common.flags, sect->named.decl);
+ return get_section (sname,
+ sect->common.flags & ~SECTION_DECLARED,
+ sect->named.decl);
}
}