Re: [patch,avr] PR81407: Error if progmem variable needs constructing.

2017-07-12 Thread Denis Chertykov
2017-07-12 12:45 GMT+04:00 Georg-Johann Lay : > Hi, if the C++ front-end decides that something will need constructing, > it will silently put the stuff into .rodata so that according > pgm_read_xxx will read garbage from .progmem. > > As proposed by Jason, this patch diagnoses such

[patch,avr] PR81407: Error if progmem variable needs constructing.

2017-07-12 Thread Georg-Johann Lay
Hi, if the C++ front-end decides that something will need constructing, it will silently put the stuff into .rodata so that according pgm_read_xxx will read garbage from .progmem. As proposed by Jason, this patch diagnoses such situations. Ok to commit? Johann PR target/81407