[Bug c/83801] [8 Regression][avr] String constant in __flash not put into .progmem

2018-01-15 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83801 --- Comment #14 from Georg-Johann Lay --- Author: gjl Date: Mon Jan 15 10:04:32 2018 New Revision: 256687 URL: https://gcc.gnu.org/viewcvs?rev=256687&root=gcc&view=rev Log: PR c/83801 PR c/83729 * gcc.target/avr/torture/p

[Bug c/83801] [8 Regression][avr] String constant in __flash not put into .progmem

2018-01-15 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83801 --- Comment #13 from Georg-Johann Lay --- *** Bug 83729 has been marked as a duplicate of this bug. ***

[Bug c/83801] [8 Regression][avr] String constant in __flash not put into .progmem

2018-01-13 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83801 Jakub Jelinek changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c/83801] [8 Regression][avr] String constant in __flash not put into .progmem

2018-01-13 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83801 --- Comment #11 from Jakub Jelinek --- Author: jakub Date: Sat Jan 13 17:00:43 2018 New Revision: 256608 URL: https://gcc.gnu.org/viewcvs?rev=256608&root=gcc&view=rev Log: PR c/83801 * c-tree.h (decl_constant_value_1): Add a bool

[Bug c/83801] [8 Regression][avr] String constant in __flash not put into .progmem

2018-01-12 Thread gandalf at winds dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83801 --- Comment #10 from gandalf at winds dot org --- This fix resolves the issues for me. Thank you!

[Bug c/83801] [8 Regression][avr] String constant in __flash not put into .progmem

2018-01-12 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83801 --- Comment #9 from Georg-Johann Lay --- (In reply to Jakub Jelinek from comment #8) > Created attachment 43115 [details] > gcc8-pr83801.patch > > Untested patch, that if !is_init kind of restores the 7.x behavior of not > using DECL_INITIAL if

[Bug c/83801] [8 Regression][avr] String constant in __flash not put into .progmem

2018-01-12 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83801 --- Comment #8 from Jakub Jelinek --- Created attachment 43115 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43115&action=edit gcc8-pr83801.patch Untested patch, that if !is_init kind of restores the 7.x behavior of not using DECL_INITIAL

[Bug c/83801] [8 Regression][avr] String constant in __flash not put into .progmem

2018-01-12 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83801 --- Comment #7 from Georg-Johann Lay --- (In reply to Jakub Jelinek from comment #5) > I think the testcases just make invalid assumptions. Huh? Which assumptions specifically? 1) There are objects of static storage duration in some non-generi

[Bug c/83801] [8 Regression][avr] String constant in __flash not put into .progmem

2018-01-12 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83801 Richard Biener changed: What|Removed |Added Target Milestone|--- |8.0

[Bug c/83801] [8 Regression][avr] String constant in __flash not put into .progmem

2018-01-11 Thread gandalf at winds dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83801 --- Comment #6 from gandalf at winds dot org --- (In reply to Georg-Johann Lay from comment #1) > Old v7.2 does it correctly: one string in flash, one in RAM. My more specific testcase (comment #3 in PR83729) references a 32-byte string in a func

[Bug c/83801] [8 Regression][avr] String constant in __flash not put into .progmem

2018-01-11 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83801 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #5

[Bug c/83801] [8 Regression][avr] String constant in __flash not put into .progmem

2018-01-11 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83801 --- Comment #4 from Georg-Johann Lay --- *** Bug 83805 has been marked as a duplicate of this bug. ***

[Bug c/83801] [8 Regression][avr] String constant in __flash not put into .progmem

2018-01-11 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83801 Georg-Johann Lay changed: What|Removed |Added Keywords||addr-space Component|target