public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/54837] New: [4.8 Regression] lto bootstrap error: ICE in expand_debug_source_expr, at cfgexpand.c:3538
@ 2012-10-06 17:26 markus at trippelsdorf dot de
2012-10-08 10:51 ` [Bug bootstrap/54837] " rguenth at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: markus at trippelsdorf dot de @ 2012-10-06 17:26 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54837
Bug #: 54837
Summary: [4.8 Regression] lto bootstrap error: ICE in
expand_debug_source_expr, at cfgexpand.c:3538
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: markus@trippelsdorf.de
With:
~/gcc/configure --disable-werror --disable-multilib --enable-languages=c,c++
--enable-checking=yes --with-build-config=lto-bootstrap
I get:
In file included from :36:0:
/home/markus/gcc/gcc/vec.h: In member function
‘_ZN5vec_tIcE3popEPKcjS2_.local.27.constprop.53’:
/home/markus/gcc/gcc/vec.h:810:1: internal compiler error: in
expand_debug_source_expr, at cfgexpand.c:3538
vec_t<T>::pop (ALONE_VEC_CHECK_DECL)
^
0x5755a8 expand_debug_source_expr
/home/markus/gcc/gcc/cfgexpand.c:3537
0x575a78 expand_debug_locations
/home/markus/gcc/gcc/cfgexpand.c:3622
0x578496 gimple_expand_cfg
/home/markus/gcc/gcc/cfgexpand.c:4487
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
Reduced:
markus@x4 gcc % cat test.ii
struct A
{
int num_;
};
template < typename T > struct B
{
T & pop (const char *);
A prefix_;
T vec_[];
};
char *a;
B < int >*b;
void fn1 (char *, const char *) __attribute__ ((__noreturn__));
template < typename T > T & B < T >::pop (const char *p1)
{
prefix_.num_ ? : (fn1 (a, p1), 0);
return vec_[-prefix_.num_];
}
int main ()
{
b->pop (__FUNCTION__);
b->pop (__FUNCTION__);
b->pop (__FUNCTION__);
}
markus@x4 gcc % /var/tmp/gcc_build_dir/./prev-gcc/g++
-B/var/tmp/gcc_build_dir/./prev-gcc/ test.ii -nodefaultlibs -g -O2 -flto
In file included from :1:0:
test.ii: In member function ‘_ZN1BIiE3popEPKc.local.0.constprop.1’:
test.ii:14:29: internal compiler error: in expand_debug_source_expr, at
cfgexpand.c:3538
template < typename T > T & B < T >::pop (const char *p1)
^
0x5755a8 expand_debug_source_expr
/home/markus/gcc/gcc/cfgexpand.c:3537
0x575a78 expand_debug_locations
/home/markus/gcc/gcc/cfgexpand.c:3622
0x578496 gimple_expand_cfg
/home/markus/gcc/gcc/cfgexpand.c:4487
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug bootstrap/54837] [4.8 Regression] lto bootstrap error: ICE in expand_debug_source_expr, at cfgexpand.c:3538
2012-10-06 17:26 [Bug bootstrap/54837] New: [4.8 Regression] lto bootstrap error: ICE in expand_debug_source_expr, at cfgexpand.c:3538 markus at trippelsdorf dot de
@ 2012-10-08 10:51 ` rguenth at gcc dot gnu.org
2012-10-08 13:57 ` hjl.tools at gmail dot com
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-10-08 10:51 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54837
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
Target Milestone|--- |4.8.0
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug bootstrap/54837] [4.8 Regression] lto bootstrap error: ICE in expand_debug_source_expr, at cfgexpand.c:3538
2012-10-06 17:26 [Bug bootstrap/54837] New: [4.8 Regression] lto bootstrap error: ICE in expand_debug_source_expr, at cfgexpand.c:3538 markus at trippelsdorf dot de
2012-10-08 10:51 ` [Bug bootstrap/54837] " rguenth at gcc dot gnu.org
@ 2012-10-08 13:57 ` hjl.tools at gmail dot com
2012-10-09 14:15 ` rguenth at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: hjl.tools at gmail dot com @ 2012-10-08 13:57 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54837
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2012-10-08
Ever Confirmed|0 |1
--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> 2012-10-08 13:56:44 UTC ---
This is caused by revision 192139:
http://gcc.gnu.org/ml/gcc-cvs/2012-10/msg00261.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug bootstrap/54837] [4.8 Regression] lto bootstrap error: ICE in expand_debug_source_expr, at cfgexpand.c:3538
2012-10-06 17:26 [Bug bootstrap/54837] New: [4.8 Regression] lto bootstrap error: ICE in expand_debug_source_expr, at cfgexpand.c:3538 markus at trippelsdorf dot de
2012-10-08 10:51 ` [Bug bootstrap/54837] " rguenth at gcc dot gnu.org
2012-10-08 13:57 ` hjl.tools at gmail dot com
@ 2012-10-09 14:15 ` rguenth at gcc dot gnu.org
2012-10-09 14:40 ` rguenth at gcc dot gnu.org
2012-10-09 15:15 ` rguenth at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-10-09 14:15 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54837
--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-10-09 14:14:36 UTC ---
DECL_ABSTRACT_ORIGIN (parm) == aexp
(gdb) call debug_tree (parm)
<parm_decl 0x7ffff5f34000 unit_num
type <integer_type 0x7ffff60c85e8 int asm_written public SI
size <integer_cst 0x7ffff60cc0a0 constant 32>
unit size <integer_cst 0x7ffff60cc0c0 constant 4>
align 32 symtab -165706496 alias set 2 canonical type 0x7ffff60c85e8
precision 32 min <integer_cst 0x7ffff60cc040 -2147483648> max <integer_cst
0x7ffff60cc060 2147483647>
pointer_to_this <pointer_type 0x7ffff60d02a0>>
used SI file /space/rguenther/src/svn/trunk/gcc/genautomata.c line 3573 col
61 size <integer_cst 0x7ffff60cc0a0 32> unit size <integer_cst 0x7ffff60cc0c0
4>
align 32 context <function_decl 0x7ffff61fff00
_ZL16test_unit_reservPmii.3701.constprop.227> abstract_origin <parm_decl
0x7ffff61fce80 unit_num>
(reg/v:SI 71 [ unit_num ]) arg-type <integer_type 0x7ffff60c85e8 int>
incoming-rtl (reg:SI 4 si [ unit_num ])>
(gdb) call debug_tree (aexp)
<parm_decl 0x7ffff61fce80 unit_num
type <integer_type 0x7ffff60c85e8 int asm_written public SI
size <integer_cst 0x7ffff60cc0a0 constant 32>
unit size <integer_cst 0x7ffff60cc0c0 constant 4>
align 32 symtab -165706496 alias set 2 canonical type 0x7ffff60c85e8
precision 32 min <integer_cst 0x7ffff60cc040 -2147483648> max <integer_cst
0x7ffff60cc060 2147483647>
pointer_to_this <pointer_type 0x7ffff60d02a0>>
used SI file /space/rguenther/src/svn/trunk/gcc/genautomata.c line 3573 col
61 size <integer_cst 0x7ffff60cc0a0 32> unit size <integer_cst 0x7ffff60cc0c0
4>
align 32 context <function_decl 0x7ffff61ffe00 test_unit_reserv> arg-type
<integer_type 0x7ffff60c85e8 int>>
I'm testing a quick hack. Broken LTO bootstrap is annoying.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug bootstrap/54837] [4.8 Regression] lto bootstrap error: ICE in expand_debug_source_expr, at cfgexpand.c:3538
2012-10-06 17:26 [Bug bootstrap/54837] New: [4.8 Regression] lto bootstrap error: ICE in expand_debug_source_expr, at cfgexpand.c:3538 markus at trippelsdorf dot de
` (2 preceding siblings ...)
2012-10-09 14:15 ` rguenth at gcc dot gnu.org
@ 2012-10-09 14:40 ` rguenth at gcc dot gnu.org
2012-10-09 15:15 ` rguenth at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-10-09 14:40 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54837
--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-10-09 14:40:12 UTC ---
Author: rguenth
Date: Tue Oct 9 14:40:01 2012
New Revision: 192255
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=192255
Log:
2012-10-09 Richard Guenther <rguenther@suse.de>
PR middle-end/54837
* cfgexpand.c (expand_debug_source_expr): Move checking
code conditional on a found decl_debug_args vector.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/cfgexpand.c
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug bootstrap/54837] [4.8 Regression] lto bootstrap error: ICE in expand_debug_source_expr, at cfgexpand.c:3538
2012-10-06 17:26 [Bug bootstrap/54837] New: [4.8 Regression] lto bootstrap error: ICE in expand_debug_source_expr, at cfgexpand.c:3538 markus at trippelsdorf dot de
` (3 preceding siblings ...)
2012-10-09 14:40 ` rguenth at gcc dot gnu.org
@ 2012-10-09 15:15 ` rguenth at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-10-09 15:15 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54837
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> 2012-10-09 15:15:23 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-10-09 15:15 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-06 17:26 [Bug bootstrap/54837] New: [4.8 Regression] lto bootstrap error: ICE in expand_debug_source_expr, at cfgexpand.c:3538 markus at trippelsdorf dot de
2012-10-08 10:51 ` [Bug bootstrap/54837] " rguenth at gcc dot gnu.org
2012-10-08 13:57 ` hjl.tools at gmail dot com
2012-10-09 14:15 ` rguenth at gcc dot gnu.org
2012-10-09 14:40 ` rguenth at gcc dot gnu.org
2012-10-09 15:15 ` 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).