PR target/51756
* config/avr/avr.c (avr_encode_section_info): Test for absence of
DECL_EXTERNAL when checking for initializers of progmem variables.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@183131
138bc75d-0d04-0410-961f-
82ee72b054a4
-2012-01-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
+2012-01-12 Georg-Johann Lay <avr@gjlay.de>
+
+ Backport from mainline r183129
+ PR target/51756
+ * config/avr/avr.c (avr_encode_section_info): Test for absence of
+ DECL_EXTERNAL when checking for initializers of progmem variables.
+
+22012-01-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
Backport from mainline
2012-01-11 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
if (new_decl_p
&& decl && DECL_P (decl)
&& NULL_TREE == DECL_INITIAL (decl)
+ && !DECL_EXTERNAL (decl)
&& avr_progmem_p (decl, DECL_ATTRIBUTES (decl)))
{
warning (OPT_Wuninitialized,