public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/56164] New: avr-gcc 4.7.2 fail with __flash keyword
@ 2013-01-31 14:24 demiurg_spb at freemail dot ru
2013-01-31 14:30 ` [Bug c/56164] " demiurg_spb at freemail dot ru
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: demiurg_spb at freemail dot ru @ 2013-01-31 14:24 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56164
Bug #: 56164
Summary: avr-gcc 4.7.2 fail with __flash keyword
Classification: Unclassified
Product: gcc
Version: 4.7.2
Status: UNCONFIRMED
Severity: critical
Priority: P3
Component: c
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: demiurg_spb@freemail.ru
Problem is present with __flash keyword, with PROGMEM everything is ok.
Compiller output:
==================================================================
module.c: In function 'foo':
module.c:52:1: error: unable to find a register to spill in class
'BASE_POINTER_REGS'
module.c:52:1: error: this is the insn:
(insn 73 72 74 5 (set (reg:SF 66 [ D.1445 ])
(unspec:SF [
(reg:HI 30 r30)
(const_int 0 [0])
] UNSPEC_LPM)) module.c:28 9 {load_sf}
(expr_list:REG_DEAD (reg:HI 30 r30)
(nil)))
module.c:52: confused by earlier errors, bailing out
make.EXE: *** [../bin/test/test.elf] Error 1
==================================================================
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/56164] avr-gcc 4.7.2 fail with __flash keyword
2013-01-31 14:24 [Bug c/56164] New: avr-gcc 4.7.2 fail with __flash keyword demiurg_spb at freemail dot ru
@ 2013-01-31 14:30 ` demiurg_spb at freemail dot ru
2013-01-31 15:25 ` gjl at gcc dot gnu.org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: demiurg_spb at freemail dot ru @ 2013-01-31 14:30 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56164
--- Comment #1 from demiurg_spb at freemail dot ru 2013-01-31 14:30:00 UTC ---
Created attachment 29316
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29316
testcase (zip-archive)
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/56164] avr-gcc 4.7.2 fail with __flash keyword
2013-01-31 14:24 [Bug c/56164] New: avr-gcc 4.7.2 fail with __flash keyword demiurg_spb at freemail dot ru
2013-01-31 14:30 ` [Bug c/56164] " demiurg_spb at freemail dot ru
@ 2013-01-31 15:25 ` gjl at gcc dot gnu.org
2013-01-31 20:25 ` gjl at gcc dot gnu.org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: gjl at gcc dot gnu.org @ 2013-01-31 15:25 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56164
Georg-Johann Lay <gjl at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2013-01-31
CC| |gjl at gcc dot gnu.org
Ever Confirmed|0 |1
--- Comment #2 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2013-01-31 15:24:58 UTC ---
(In reply to comment #1)
> testcase (zip-archive)
Please provide a test case, following the bug reporting instructions in
http://gcc.gnu.org/bugs/#report
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/56164] avr-gcc 4.7.2 fail with __flash keyword
2013-01-31 14:24 [Bug c/56164] New: avr-gcc 4.7.2 fail with __flash keyword demiurg_spb at freemail dot ru
2013-01-31 14:30 ` [Bug c/56164] " demiurg_spb at freemail dot ru
2013-01-31 15:25 ` gjl at gcc dot gnu.org
@ 2013-01-31 20:25 ` gjl at gcc dot gnu.org
2013-01-31 20:28 ` [Bug target/56164] [avr] ICE: spill " gjl at gcc dot gnu.org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: gjl at gcc dot gnu.org @ 2013-01-31 20:25 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56164
--- Comment #3 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2013-01-31 20:25:20 UTC ---
Created attachment 29322
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29322
Small an valis test case
Output with avr-gcc 4.7.2:
avr-gcc -S -mmcu=atmega8 -Os foo.c
foo.c: In function 'psy':
foo.c:18:1: error: unable to find a register to spill in class 'POINTER_REGS'
}
^
foo.c:18:1: error: this is the insn:
(insn 26 25 28 2 (set (reg:SF 59 [ D.1396 ])
(unspec:SF [
(reg:HI 30 r30)
(const_int 0 [0])
] UNSPEC_LPM)) foo.c:9 22 {load_sf}
(expr_list:REG_DEAD (reg:HI 30 r30)
(nil)))
foo.c:18:1: internal compiler error: in spill_failure, at reload1.c:2124
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/56164] [avr] ICE: spill fail with __flash keyword
2013-01-31 14:24 [Bug c/56164] New: avr-gcc 4.7.2 fail with __flash keyword demiurg_spb at freemail dot ru
` (2 preceding siblings ...)
2013-01-31 20:25 ` gjl at gcc dot gnu.org
@ 2013-01-31 20:28 ` gjl at gcc dot gnu.org
2013-02-07 17:46 ` gjl at gcc dot gnu.org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: gjl at gcc dot gnu.org @ 2013-01-31 20:28 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56164
Georg-Johann Lay <gjl at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target| |avr
Priority|P3 |P4
Status|WAITING |NEW
Keywords| |ice-on-valid-code
Component|c |target
Summary|avr-gcc 4.7.2 fail with |[avr] ICE: spill fail with
|__flash keyword |__flash keyword
Target Milestone|--- |4.7.3
Known to fail| |4.7.2
Severity|critical |normal
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/56164] [avr] ICE: spill fail with __flash keyword
2013-01-31 14:24 [Bug c/56164] New: avr-gcc 4.7.2 fail with __flash keyword demiurg_spb at freemail dot ru
` (3 preceding siblings ...)
2013-01-31 20:28 ` [Bug target/56164] [avr] ICE: spill " gjl at gcc dot gnu.org
@ 2013-02-07 17:46 ` gjl at gcc dot gnu.org
2013-04-11 7:59 ` rguenth at gcc dot gnu.org
2014-06-12 13:53 ` rguenth at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: gjl at gcc dot gnu.org @ 2013-02-07 17:46 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56164
Georg-Johann Lay <gjl at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2013-01-31 00:00:00 |2013-02-07 0:00
--- Comment #4 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2013-02-07 17:45:56 UTC ---
Confirmed with:
gcc version 4.7.3 20130207 (prerelease) [gcc-4_7-branch revision 195858] (GCC)
Configured with:
../../gcc.gnu.org/gcc-4_7-branch/configure --target=avr
--prefix=/local/gnu/install/gcc-4.7 --disable-nls --with-dwarf2
--enable-languages=c,c++ --enable-target-optspace=yes --with-avrlibc=yes
Invocation:
avr-gcc spill-flash-2.c -S -Os -mmcu=atmega8
spill-flash.c: In function 'psy':
spill-flash.c:18:1: error: unable to find a register to spill in class
'POINTER_REGS'
spill-flash.c:18:1: error: this is the insn:
(insn 26 25 28 2 (set (reg:SF 59 [ D.1370 ])
(unspec:SF [
(reg:HI 30 r30)
(const_int 0 [0])
] UNSPEC_LPM)) spill-flash.c:9 9 {load_sf}
(expr_list:REG_DEAD (reg:HI 30 r30)
(nil)))
spill-flash.c:18: confused by earlier errors, bailing out
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/56164] [avr] ICE: spill fail with __flash keyword
2013-01-31 14:24 [Bug c/56164] New: avr-gcc 4.7.2 fail with __flash keyword demiurg_spb at freemail dot ru
` (4 preceding siblings ...)
2013-02-07 17:46 ` gjl at gcc dot gnu.org
@ 2013-04-11 7:59 ` rguenth at gcc dot gnu.org
2014-06-12 13:53 ` rguenth at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-04-11 7:59 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56164
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.7.3 |4.7.4
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> 2013-04-11 07:58:55 UTC ---
GCC 4.7.3 is being released, adjusting target milestone.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/56164] [avr] ICE: spill fail with __flash keyword
2013-01-31 14:24 [Bug c/56164] New: avr-gcc 4.7.2 fail with __flash keyword demiurg_spb at freemail dot ru
` (5 preceding siblings ...)
2013-04-11 7:59 ` rguenth at gcc dot gnu.org
@ 2014-06-12 13:53 ` rguenth at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-06-12 13:53 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56164
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.7.4 |---
--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
Unsetting target milestone of open non-regression bug from version of branch
being closed.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2014-06-12 13:53 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-31 14:24 [Bug c/56164] New: avr-gcc 4.7.2 fail with __flash keyword demiurg_spb at freemail dot ru
2013-01-31 14:30 ` [Bug c/56164] " demiurg_spb at freemail dot ru
2013-01-31 15:25 ` gjl at gcc dot gnu.org
2013-01-31 20:25 ` gjl at gcc dot gnu.org
2013-01-31 20:28 ` [Bug target/56164] [avr] ICE: spill " gjl at gcc dot gnu.org
2013-02-07 17:46 ` gjl at gcc dot gnu.org
2013-04-11 7:59 ` rguenth at gcc dot gnu.org
2014-06-12 13:53 ` rguenth at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).