]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
PR target/51756
authorgjl <gjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 12 Jan 2012 16:51:28 +0000 (16:51 +0000)
committergjl <gjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 12 Jan 2012 16:51:28 +0000 (16:51 +0000)
* 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/trunk@183129 138bc75d-0d04-0410-961f-82ee72b054a4

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

index c0898c56d942c438a171e5eea1d146e026da5f3c..57408e68eef2cd6adb1743ef3c202c333718c4d1 100644 (file)
@@ -1,3 +1,9 @@
+2012-01-10  Georg-Johann Lay  <avr@gjlay.de>
+
+       PR target/51756
+       * config/avr/avr.c (avr_encode_section_info): Test for absence of
+       DECL_EXTERNAL when checking for initializers of progmem variables.
+
 2012-01-12  Ira Rosen  <irar@il.ibm.com>
 
        PR tree-optimization/51799
index 8d0a57fd1df67b915baa273fe63e04155ce1a7d1..846c796e8ad10d013d42a924c12e1f6a4f639000 100644 (file)
@@ -7222,6 +7222,7 @@ avr_encode_section_info (tree decl, rtx rtl, int new_decl_p)
   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,