public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/52472] New: ICE: in convert_debug_memory_address, at cfgexpand.c:2491
@ 2012-03-03 19:38 gjl at gcc dot gnu.org
2012-03-03 19:40 ` [Bug middle-end/52472] " gjl at gcc dot gnu.org
` (9 more replies)
0 siblings, 10 replies; 11+ messages in thread
From: gjl at gcc dot gnu.org @ 2012-03-03 19:38 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52472
Bug #: 52472
Summary: ICE: in convert_debug_memory_address, at
cfgexpand.c:2491
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Keywords: addr-space, ice-on-invalid-code
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: gjl@gcc.gnu.org
CC: eric.weddington@atmel.com
Host: mingw32
Target: avr
typedef unsigned long uint32_t;
typedef unsigned int uint16_t;
extern const __memx unsigned int data[320][12];
#define pgm_read_word_far(addr) \
(__extension__({ \
uint32_t __addr32 = (uint32_t)(addr); \
uint16_t __result; \
__asm__("; much code" \
: "=r" (__result) \
: "r" (__addr32)); \
__result; \
}))
int ice (void)
{
return pgm_read_word_far (0x20000 + (unsigned long) &data[0][0]);
}
== Command Line ==
>> avr-gcc ice-memx.c -S -Os -g3 -v
== ICE ==
ice-memx.c: In function 'ice':
ice-memx.c:18:12: warning: cast from pointer to integer of different size
[-Wpointer-to-int-cast]
ice-memx.c:16:5: internal compiler error: in convert_debug_memory_address, at
cfgexpand.c:2491
== Configure ==
Using built-in specs.
Target: avr
Configured with: ../gcc-trunk/configure --with-gmp=/usr/local
--prefix=/usr/local/avr --target=avr --enable-languages=c,c++ --with-dwarf2
--disable-shared --disable-libada --disable-libssp --disable-nls
Thread model: single
gcc version 4.7.0 20120217 (experimental) (GCC)
GNU C (GCC) version 4.7.0 20120217 (experimental) (avr)
compiled by GNU C version 4.6.2, GMP version 5.0.4, MPFR version 3.1.0, MPC
version 0.9
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/52472] ICE: in convert_debug_memory_address, at cfgexpand.c:2491
2012-03-03 19:38 [Bug middle-end/52472] New: ICE: in convert_debug_memory_address, at cfgexpand.c:2491 gjl at gcc dot gnu.org
@ 2012-03-03 19:40 ` gjl at gcc dot gnu.org
2012-03-03 19:41 ` gjl at gcc dot gnu.org
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: gjl at gcc dot gnu.org @ 2012-03-03 19:40 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52472
Georg-Johann Lay <gjl at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2012-03-03
Target Milestone|--- |4.7.0
Ever Confirmed|0 |1
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/52472] ICE: in convert_debug_memory_address, at cfgexpand.c:2491
2012-03-03 19:38 [Bug middle-end/52472] New: ICE: in convert_debug_memory_address, at cfgexpand.c:2491 gjl at gcc dot gnu.org
2012-03-03 19:40 ` [Bug middle-end/52472] " gjl at gcc dot gnu.org
@ 2012-03-03 19:41 ` gjl at gcc dot gnu.org
2012-03-05 10:24 ` rguenth at gcc dot gnu.org
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: gjl at gcc dot gnu.org @ 2012-03-03 19:41 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52472
--- Comment #1 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2012-03-03 19:38:56 UTC ---
Created attachment 26820
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26820
ice-memx.c: C source
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/52472] ICE: in convert_debug_memory_address, at cfgexpand.c:2491
2012-03-03 19:38 [Bug middle-end/52472] New: ICE: in convert_debug_memory_address, at cfgexpand.c:2491 gjl at gcc dot gnu.org
2012-03-03 19:40 ` [Bug middle-end/52472] " gjl at gcc dot gnu.org
2012-03-03 19:41 ` gjl at gcc dot gnu.org
@ 2012-03-05 10:24 ` rguenth at gcc dot gnu.org
2012-03-05 10:32 ` gjl at gcc dot gnu.org
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-03-05 10:24 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52472
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
Target Milestone|4.7.0 |---
--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-03-05 10:22:42 UTC ---
The !POINTERS_EXTEND_UNSIGNED path seems to be not implemented if it would
require codegen. I suppose instead we should have a way of saying
"not possible" here?
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/52472] ICE: in convert_debug_memory_address, at cfgexpand.c:2491
2012-03-03 19:38 [Bug middle-end/52472] New: ICE: in convert_debug_memory_address, at cfgexpand.c:2491 gjl at gcc dot gnu.org
` (2 preceding siblings ...)
2012-03-05 10:24 ` rguenth at gcc dot gnu.org
@ 2012-03-05 10:32 ` gjl at gcc dot gnu.org
2012-03-05 14:05 ` gjl at gcc dot gnu.org
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: gjl at gcc dot gnu.org @ 2012-03-05 10:32 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52472
--- Comment #3 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2012-03-05 10:32:26 UTC ---
I thought about setting POINTERS_EXTEND_UNSIGNED but am unsure about other side
effects of that define.
Presumably, POINTERS_EXTEND_UNSIGNED is undefined because it was never needed
before?
What do you think?
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/52472] ICE: in convert_debug_memory_address, at cfgexpand.c:2491
2012-03-03 19:38 [Bug middle-end/52472] New: ICE: in convert_debug_memory_address, at cfgexpand.c:2491 gjl at gcc dot gnu.org
` (3 preceding siblings ...)
2012-03-05 10:32 ` gjl at gcc dot gnu.org
@ 2012-03-05 14:05 ` gjl at gcc dot gnu.org
2012-03-06 12:35 ` jakub at gcc dot gnu.org
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: gjl at gcc dot gnu.org @ 2012-03-05 14:05 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52472
--- Comment #4 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2012-03-05 14:05:36 UTC ---
I tried
#define POINTERS_EXTEND_UNSIGNED 1
but this runs into ICE some lines later in cfgexpand.c:2496
mode = PSI
as = 0
x = symbol_ref:PSI ("data")
Of course PSImode is not a valid pointer mode for generic address space.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/52472] ICE: in convert_debug_memory_address, at cfgexpand.c:2491
2012-03-03 19:38 [Bug middle-end/52472] New: ICE: in convert_debug_memory_address, at cfgexpand.c:2491 gjl at gcc dot gnu.org
` (4 preceding siblings ...)
2012-03-05 14:05 ` gjl at gcc dot gnu.org
@ 2012-03-06 12:35 ` jakub at gcc dot gnu.org
2012-03-07 16:10 ` gjl at gcc dot gnu.org
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-03-06 12:35 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52472
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-03-06 12:35:09 UTC ---
convert_debug_memory_address can just return NULL_RTX if it can't handle it.
Can't reproduce this though.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/52472] ICE: in convert_debug_memory_address, at cfgexpand.c:2491
2012-03-03 19:38 [Bug middle-end/52472] New: ICE: in convert_debug_memory_address, at cfgexpand.c:2491 gjl at gcc dot gnu.org
` (5 preceding siblings ...)
2012-03-06 12:35 ` jakub at gcc dot gnu.org
@ 2012-03-07 16:10 ` gjl at gcc dot gnu.org
2012-03-28 15:29 ` gjl at gcc dot gnu.org
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: gjl at gcc dot gnu.org @ 2012-03-07 16:10 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52472
--- Comment #6 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2012-03-07 16:09:12 UTC ---
(In reply to comment #5)
> Can't reproduce this though.
Strange. I still see the ICE with current trunk. It's a 32 bit build and host;
might this have an impact?
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/52472] ICE: in convert_debug_memory_address, at cfgexpand.c:2491
2012-03-03 19:38 [Bug middle-end/52472] New: ICE: in convert_debug_memory_address, at cfgexpand.c:2491 gjl at gcc dot gnu.org
` (6 preceding siblings ...)
2012-03-07 16:10 ` gjl at gcc dot gnu.org
@ 2012-03-28 15:29 ` gjl at gcc dot gnu.org
2013-04-13 14:33 ` gjl at gcc dot gnu.org
2014-06-05 18:35 ` [Bug debug/52472] " law at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: gjl at gcc dot gnu.org @ 2012-03-28 15:29 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52472
Georg-Johann Lay <gjl at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|ice-on-invalid-code |ice-on-valid-code
Last reconfirmed|2012-03-03 00:00:00 |2012-03-28 0:00
Host|mingw32 |
--- Comment #7 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2012-03-28 15:27:42 UTC ---
Reduced test-case: Compile with:
$ avr-gcc ice-memx.c -S -g -Os
extern const __memx unsigned data[][10];
unsigned long ice (void)
{
unsigned long addr32;
return addr32 = (unsigned long) data;
}
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/52472] ICE: in convert_debug_memory_address, at cfgexpand.c:2491
2012-03-03 19:38 [Bug middle-end/52472] New: ICE: in convert_debug_memory_address, at cfgexpand.c:2491 gjl at gcc dot gnu.org
` (7 preceding siblings ...)
2012-03-28 15:29 ` gjl at gcc dot gnu.org
@ 2013-04-13 14:33 ` gjl at gcc dot gnu.org
2014-06-05 18:35 ` [Bug debug/52472] " law at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: gjl at gcc dot gnu.org @ 2013-04-13 14:33 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52472
Georg-Johann Lay <gjl at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |Sergey.Belyashov at gmail
| |dot com
--- Comment #8 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2013-04-13 14:33:19 UTC ---
*** Bug 56792 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug debug/52472] ICE: in convert_debug_memory_address, at cfgexpand.c:2491
2012-03-03 19:38 [Bug middle-end/52472] New: ICE: in convert_debug_memory_address, at cfgexpand.c:2491 gjl at gcc dot gnu.org
` (8 preceding siblings ...)
2013-04-13 14:33 ` gjl at gcc dot gnu.org
@ 2014-06-05 18:35 ` law at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: law at gcc dot gnu.org @ 2014-06-05 18:35 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52472
--- Comment #9 from Jeffrey A. Law <law at gcc dot gnu.org> ---
Author: law
Date: Thu Jun 5 18:34:43 2014
New Revision: 211288
URL: http://gcc.gnu.org/viewcvs?rev=211288&root=gcc&view=rev
Log:
PR target/52472
* cfgexpand.c (expand_debug_expr): Use address space of nested
TREE_TYPE for ADDR_EXPR and MEM_REF.
PR target/52472
* gcc.target/avr/pr52472.c: New test.
Added:
trunk/gcc/testsuite/gcc.target/avr/pr52472.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/cfgexpand.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2014-06-05 18:35 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-03 19:38 [Bug middle-end/52472] New: ICE: in convert_debug_memory_address, at cfgexpand.c:2491 gjl at gcc dot gnu.org
2012-03-03 19:40 ` [Bug middle-end/52472] " gjl at gcc dot gnu.org
2012-03-03 19:41 ` gjl at gcc dot gnu.org
2012-03-05 10:24 ` rguenth at gcc dot gnu.org
2012-03-05 10:32 ` gjl at gcc dot gnu.org
2012-03-05 14:05 ` gjl at gcc dot gnu.org
2012-03-06 12:35 ` jakub at gcc dot gnu.org
2012-03-07 16:10 ` gjl at gcc dot gnu.org
2012-03-28 15:29 ` gjl at gcc dot gnu.org
2013-04-13 14:33 ` gjl at gcc dot gnu.org
2014-06-05 18:35 ` [Bug debug/52472] " law 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).