This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/51756] wrong warning: uninitialized variable put into program memory area
- From: "gjl at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 04 Jan 2012 21:54:04 +0000
- Subject: [Bug target/51756] wrong warning: uninitialized variable put into program memory area
- Auto-submitted: auto-generated
- References: <bug-51756-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51756
Georg-Johann Lay <gjl at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.7.0 |4.6.3
--- Comment #1 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2012-01-04 21:54:04 UTC ---
The following code also triggers the false warning for 4.6.2:
extern const char v[] __attribute__((progmem));
char foo (void)
{
return v[0];
}