Commit 67e570ea by Denis Chertykov Committed by Denis Chertykov

avr.c (valid_machine_decl_attribute): Allow `extern' declaration for data with "progmem" attribute.

	* config/avr/avr.c (valid_machine_decl_attribute): Allow `extern'
	declaration for data with "progmem" attribute.

From-SVN: r36829
parent 80b8585d
Tue Oct 10 23:14:33 2000 Denis Chertykov <denisc@overta.ru>
* config/avr/avr.c (valid_machine_decl_attribute): Allow `extern'
declaration for data with "progmem" attribute.
2000-10-09 Marek Michalkiewicz <marekm@linux.org.pl> 2000-10-09 Marek Michalkiewicz <marekm@linux.org.pl>
* config/avr/avr.c (out_shift_with_cnt): Use AS2 macro. * config/avr/avr.c (out_shift_with_cnt): Use AS2 macro.
......
...@@ -4318,7 +4318,7 @@ valid_machine_decl_attribute (decl, attributes, attr, args) ...@@ -4318,7 +4318,7 @@ valid_machine_decl_attribute (decl, attributes, attr, args)
if (is_attribute_p ("progmem", attr) if (is_attribute_p ("progmem", attr)
&& (TREE_STATIC (decl) || DECL_EXTERNAL (decl))) && (TREE_STATIC (decl) || DECL_EXTERNAL (decl)))
{ {
if (DECL_INITIAL (decl) == NULL_TREE) if (DECL_INITIAL (decl) == NULL_TREE && !DECL_EXTERNAL (decl))
{ {
warning ("Only initialized variables can be placed into " warning ("Only initialized variables can be placed into "
"program memory area."); "program memory area.");
......
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