This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/51756] wrong warning: uninitialized variable put into program memory area


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];
}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]