Re: [Patch, AVR]: Hack around PR34734

2011-06-16 Thread Georg-Johann Lay
here will suffice. >>>> Sent: Wednesday, June 15, 2011 3:26 PM >>>> To: gcc-patches@gcc.gnu.org >>>> Cc: Weddington, Eric; Anatoly Sokolov; Denis Chertykov >>>> Subject: [Patch, AVR]: Hack around PR34734 >>>> >>>> PR34734 is an annoyi

Re: [Patch, AVR]: Hack around PR34734

2011-06-16 Thread Richard Guenther
t;>> To: gcc-patches@gcc.gnu.org >>> Cc: Weddington, Eric; Anatoly Sokolov; Denis Chertykov >>> Subject: [Patch, AVR]: Hack around PR34734 >>> >>> PR34734 is an annoying, false C++ warning for code like >>> >>> const int x __att

[Patch, AVR]: Hack around PR34734

2011-06-15 Thread Georg-Johann Lay
PR34734 is an annoying, false C++ warning for code like const int x __attribute__((progmem)) = 1; progmem.c:1:30: warning: only initialized variables can be placed into program memory area [enabled by default] The problem is that DECL_INITIAL is NULL at the specific point in space and time (avr_

Re: [Patch, AVR]: Hack around PR34734

2011-06-15 Thread Georg-Johann Lay
) Someone will have to dive into C++ FE/parser. Johann > > Eric Weddington > >> -Original Message- >> From: Georg-Johann Lay [mailto:a...@gjlay.de] >> Sent: Wednesday, June 15, 2011 3:26 PM >> To: gcc-patches@gcc.gnu.org >> Cc: Weddington, Eric; Anat

RE: [Patch, AVR]: Hack around PR34734

2011-06-15 Thread Weddington, Eric
ne 15, 2011 3:26 PM > To: gcc-patches@gcc.gnu.org > Cc: Weddington, Eric; Anatoly Sokolov; Denis Chertykov > Subject: [Patch, AVR]: Hack around PR34734 > > PR34734 is an annoying, false C++ warning for code like > > const int x __attribute__((progmem)) = 1; > > progmem.c