[Bug target/44643] ice in c-typeck.c
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44643 --- Comment #14 from Georg-Johann Lay gjl at gcc dot gnu.org 2011-07-04 12:28:05 UTC --- Author: gjl Date: Mon Jul 4 12:28:02 2011 New Revision: 175809 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=175809 Log: PR target/44643 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY instead of TREE_READONLY. Modified: trunk/gcc/ChangeLog trunk/gcc/config/avr/avr.c
[Bug target/44643] ice in c-typeck.c
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44643 --- Comment #15 from Georg-Johann Lay gjl at gcc dot gnu.org 2011-07-04 12:33:03 UTC --- Author: gjl Date: Mon Jul 4 12:33:00 2011 New Revision: 175810 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=175810 Log: Backport from mainline 2011-07-04 Georg-Johann Lay PR target/44643 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY instead of TREE_READONLY. Modified: branches/gcc-4_6-branch/gcc/ChangeLog branches/gcc-4_6-branch/gcc/config/avr/avr.c
[Bug target/44643] ice in c-typeck.c
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44643 Georg-Johann Lay gjl at gcc dot gnu.org changed: What|Removed |Added Known to work|4.6.1 |4.6.2 Target Milestone|4.6.1 |4.6.2
[Bug target/44643] ice in c-typeck.c
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44643 --- Comment #16 from Georg-Johann Lay gjl at gcc dot gnu.org 2011-07-04 12:48:07 UTC --- Author: gjl Date: Mon Jul 4 12:48:04 2011 New Revision: 175811 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=175811 Log: PR target/34734 PR target/44643 * gcc.target/avr/avr.exp: Run over cpp files, too. * gcc.target/avr/torture/avr-torture.exp: Ditto. * gcc.target/avr/progmem.h: New file. * gcc.target/avr/exit-abort.h: New file. * gcc.target/avr/progmem-error-1.c: New file. * gcc.target/avr/progmem-error-1.cpp: New file. * gcc.target/avr/progmem-warning-1.c: New file. * gcc.target/avr/torture/progmem-1.c: New file. * gcc.target/avr/torture/progmem-1.cpp: New file. Added: trunk/gcc/testsuite/gcc.target/avr/exit-abort.h trunk/gcc/testsuite/gcc.target/avr/progmem-error-1.c trunk/gcc/testsuite/gcc.target/avr/progmem-error-1.cpp trunk/gcc/testsuite/gcc.target/avr/progmem-warning-1.c trunk/gcc/testsuite/gcc.target/avr/progmem.h trunk/gcc/testsuite/gcc.target/avr/torture/progmem-1.c trunk/gcc/testsuite/gcc.target/avr/torture/progmem-1.cpp Modified: trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gcc.target/avr/avr.exp trunk/gcc/testsuite/gcc.target/avr/torture/avr-torture.exp
[Bug target/44643] ice in c-typeck.c
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44643 Georg-Johann Lay gjl at gcc dot gnu.org changed: What|Removed |Added Target Milestone|4.7.0 |4.6.1
[Bug target/44643] ice in c-typeck.c
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44643 Georg-Johann Lay gjl at gcc dot gnu.org changed: What|Removed |Added CC||n...@bike-nomad.com --- Comment #13 from Georg-Johann Lay gjl at gcc dot gnu.org 2011-06-16 17:24:03 UTC --- *** Bug 26883 has been marked as a duplicate of this bug. ***
[Bug target/44643] ice in c-typeck.c
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44643 --- Comment #12 from Georg-Johann Lay gjl at gcc dot gnu.org 2011-05-26 12:52:10 UTC --- Author: gjl Date: Thu May 26 12:52:03 2011 New Revision: 174281 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=174281 Log: PR target/44643 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY alone. Error if non-const data has attribute progmem. Modified: branches/gcc-4_6-branch/gcc/ChangeLog branches/gcc-4_6-branch/gcc/config/avr/avr.c
[Bug target/44643] ice in c-typeck.c
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44643 Joseph S. Myers jsm28 at gcc dot gnu.org changed: What|Removed |Added CC||ddavenport at walchem dot ||com --- Comment #11 from Joseph S. Myers jsm28 at gcc dot gnu.org 2011-05-23 16:30:47 UTC --- *** Bug 49125 has been marked as a duplicate of this bug. ***
[Bug target/44643] ice in c-typeck.c
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44643 Eric Weddington eric.weddington at atmel dot com changed: What|Removed |Added Target Milestone|--- |4.7.0
[Bug target/44643] ice in c-typeck.c
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44643 --- Comment #8 from gjl at gcc dot gnu.org 2011-04-14 08:38:29 UTC --- Author: gjl Date: Thu Apr 14 08:38:20 2011 New Revision: 172415 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=172415 Log: PR target/44643 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY alone. Error if non-const data has attribute progmem. Modified: trunk/gcc/ChangeLog trunk/gcc/config/avr/avr.c
[Bug target/44643] ice in c-typeck.c
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44643 Georg-Johann Lay gjl at gcc dot gnu.org changed: What|Removed |Added CC||gjl at gcc dot gnu.org --- Comment #9 from Georg-Johann Lay gjl at gcc dot gnu.org 2011-04-14 15:10:48 UTC --- Please note that fixing this bug just reduces the inconvenience from an internal compiler error to an ordinary error with a more comprehensible message. The very problem is that avr-libc's PSTR macro tries to put the non-const variable __c[] into the read-only section .progmem.data by means of __attribute__((progmem)). Thus, in order to build avr-libc, PSRT has to be fixed. For details please f'up to issue #32988 in avr-libc http://savannah.nongnu.org/bugs/?32988
[Bug target/44643] ice in c-typeck.c
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44643 Georg-Johann Lay gjl at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED Known to work||4.7.0 Resolution||FIXED --- Comment #10 from Georg-Johann Lay gjl at gcc dot gnu.org 2011-04-14 15:29:37 UTC --- Cloased as resolved+fixed in 4.7.0
[Bug target/44643] ice in c-typeck.c
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44643 Klaus Rudolph lts-rudolph at gmx dot de changed: What|Removed |Added CC||lts-rudolph at gmx dot de --- Comment #7 from Klaus Rudolph lts-rudolph at gmx dot de 2011-03-31 07:53:25 UTC --- The problem occurs also with avr-libc-1.7.1 with gcc 4.6.0 release.
[Bug target/44643] ice in c-typeck.c
--- Comment #6 from pinskia at gcc dot gnu dot org 2010-06-28 01:06 --- Confirmed. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 GCC host triplet|x86_64-apple-darwin10.4.0 | Keywords||ice-on-valid-code Last reconfirmed|-00-00 00:00:00 |2010-06-28 01:06:26 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44643
[Bug target/44643] ice in c-typeck.c
--- Comment #3 from jsm28 at gcc dot gnu dot org 2010-06-23 11:07 --- This is a bug in the AVR back end; if it marks a decl readonly it must also adjust the type of the decl. The problem code is probably in avr_insert_attributes. -- jsm28 at gcc dot gnu dot org changed: What|Removed |Added Component|c |target http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44643
[Bug target/44643] ice in c-typeck.c
--- Comment #4 from weasel at cs dot stanford dot edu 2010-06-23 15:59 --- thanks for the hint about avr_insert_attribute. there's a comment there mumbling: /* ??? This seems sketchy. Why can't the user declare the thing const in the first place? */ when it sets the node's readonly-ness. if i declare the array to have const elements there's no ICE. i guess the 'fix' is to sprinkle const-goodness around the source although it might be nice to have a slightly nicer error message. -- weasel at cs dot stanford dot edu changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution||INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44643
[Bug target/44643] ice in c-typeck.c
--- Comment #5 from jsm28 at gcc dot gnu dot org 2010-06-23 16:35 --- An assertion failure is always a bug. Yes, an error if the object isn't already const would be one valid fix. -- jsm28 at gcc dot gnu dot org changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED Resolution|INVALID | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44643