Commit 7b4e0769 by Senthil Kumar Selvaraj Committed by Senthil Kumar Selvaraj

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
parent eb4432f7
2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
PR target/50739
* config/avr/avr.c (avr_asm_select_section): Strip off
SECTION_DECLARED from flags when calling get_section.
2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
* tree-vectorizer.h (vect_memory_access_type): Add
......
......@@ -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);
}
}
......
2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
PR target/50739
* gcc.target/avr/pr50739.c: New test.
2016-07-05 Jan Hubicka <jh@suse.cz>
* gcc.dg/tree-ssa/scev-14.c: update template.
......
/* { dg-do compile } */
/* { dg-options "-fmerge-all-constants" } */
char *ca = "123";
const char a[] __attribute__((__progmem__))= "a";
const char b[] __attribute__((__progmem__))= "b";
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment